Hi supporters,

I can not add global variable on ivy designer. Please refer to below logs and help to provide the idea.

Error Id: 1720D648AFF19A16

Stacktrace:
ch.ivyteam.ivy.persistence.PersistencyException: Could not add default value

    at ch.ivyteam.ivy.config.internal.ConfigurationClass.createEmptyConfig(ConfigurationClass.java:213)

    at ch.ivyteam.ivy.config.internal.ConfigurationClass.addConfiguration(ConfigurationClass.java:116)

    at ch.ivyteam.ivy.designer.config.ui.editor.ConfigEditorPanel$12.run(ConfigEditorPanel.java:607)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)

    at java.awt.EventQueue.access$500(EventQueue.java:97)

    at java.awt.EventQueue$3.run(EventQueue.java:709)

    at java.awt.EventQueue$3.run(EventQueue.java:703)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Caused by: ch.ivyteam.ivy.cm.exceptions.UnsupportedLanguageException: Language <en> is not supported by cms

    at ch.ivyteam.ivy.cm.internal.ContentObject.addValue_aroundBody54(ContentObject.java:784)

    at ch.ivyteam.ivy.cm.internal.ContentObject.addValue_aroundBody55$advice(ContentObject.java:34)

    at ch.ivyteam.ivy.cm.internal.ContentObject.addValue(ContentObject.java:1)

    at ch.ivyteam.ivy.config.internal.ConfigurationClass.createEmptyConfig(ConfigurationClass.java:209)

    ... 16 more

Many thanks.

asked 13.05.2020 at 05:41

nqphuc's gravatar image

nqphuc
(suspended)
accept rate: 0%

edited 14.05.2020 at 02:53

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958


Hi @nqphuc

It happens when your project files are corrupt.

You can fix the corrupt store as follows:

  1. Open the 'package explorer' view. (Quick access or Menu: Windows/Show View/Other)
  2. Open the affected project -> config/cms.meta with a text editor (Context menu: open with/Text editor)
  3. Add the EN language entry
  4. Save the cms.meta
  5. Restart the Designer
  6. DONE: use a Global vars as usual....

A correct config/cms.meta looks as follows:

cms: description={Configuration DB} defaultLanguage={en} defaultPageLayout={} defaultPageStyleSheet={}
lang: language={de} id={}
lang: language={en} id={}
lang: language={fr} id={}

alt text

link

answered 14.05.2020 at 02:57

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

Thanks for your support. It works fine; but on step 5, we must re-import the module instead of restart the Designer.

(14.05.2020 at 05:51) nqphuc nqphuc's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6

Asked: 13.05.2020 at 05:41

Seen: 1,145 times

Last updated: 14.05.2020 at 05:53