Search the FirstSpirit Knowledge Base
Hello,
i am getting below error,
(de.espirit.firstspirit.client.AbstractGuiHost): ExceptionHandler.uncaughtException() - java.lang.IllegalArgumentException: Cannot assimilate value from 'de.espirit.firstspirit.client.access.link.LinkImpl@aa292ba'!
Image 1:
It is an news data source i have added the form details like,(It is in Database schema Template and added the template to datasource)
<CMS_INPUT_LINK name="csExternalTeaserLink" allowEmpty="yes" useLanguages="yes">
<LANGINFOS>
<LANGINFO lang="*" label="External Teaser-Link (http://... or https://...)"/>
<LANGINFO lang="DE" label="Externer Teaser-Verweis (http://... or https://...)"/>
</LANGINFOS>
<LINKEDITORS>
<LINKEDITOR name="lt_overlaylink_news"/>
<LINKEDITOR name="lt_overlaylink_external"/>
<LINKEDITOR name="lt_overlaylink_internal"/>
<LINKEDITOR name="lt_overlaylink_email"/>
<LINKEDITOR name="lt_overlaylink_media"/>
</LINKEDITORS>
</CMS_INPUT_LINK>
Now how to get the selection of radio button(input link type) and value(www.google.com) entered???Based on the result i used to display the link for any kind of news teaser.
Previously it was text box so no problem with code database field name from content i could able to get it.....like
$CMS_IF(content.external_link.isEmpty())$
I am getting error like,
(de.espirit.firstspirit.client.AbstractGuiHost): ExceptionHandler.uncaughtException() - java.lang.IllegalArgumentException: Cannot assimilate value from 'de.espirit.firstspirit.client.access.link.LinkImpl@aa292ba'!
Thanks,
Siva
Hello,
We have resolved the problem by modifiying all the news template with the CMS_INPUT_LINK name="xxxxx",then the problem is no more in the system..Name should be common across all the news templates.
Thanks,
Siva
Could you please post your FirstSpirit version number and the complete failure trace?
Hello Peter,
Thanks for your reply and time.
I am using version Server-Version: 4.2.488.56504.
Trace:
(de.espirit.firstspirit.client.AbstractGuiHost): ExceptionHandler.uncaughtException() - java.lang.IllegalArgumentException: Cannot assimilate value from 'de.espirit.firstspirit.client.access.link.LinkImpl@aa292ba'!
FSVersion=4.2.488.56504#2200;JDK=1.7.0_55 32bit Oracle Corporation;OS=Windows 7 6.1 x86;Date=17.06.2014 08:40:07
java.lang.IllegalArgumentException: Cannot assimilate value from 'de.espirit.firstspirit.client.access.link.LinkImpl@aa292ba'!
at de.espirit.firstspirit.client.access.editor.AbstractEditorValue.assimilate(AbstractEditorValue.java:782)
at de.espirit.firstspirit.store.access.contentstore.ContentUtil$1.get(ContentUtil.java:151)
at de.espirit.firstspirit.store.access.DataUtil.copy(DataUtil.java:94)
at de.espirit.firstspirit.client.gui.tree.store.pagestore.GomModuleView.adopt(GomModuleView.java:370)
at de.espirit.firstspirit.client.gui.GomModulePanel.adopt(GomModulePanel.java:107)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.AbstractGuiXmlPanel.setValuesFromObject(AbstractGuiXmlPanel.java:258)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.AbstractGuiXmlPanel.setValuesFromObject(AbstractGuiXmlPanel.java:235)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.ContentGuiXmlPanel.updateEntity(ContentGuiXmlPanel.java:288)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.ContentGuiXmlPanel.setAndUpdate(ContentGuiXmlPanel.java:280)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.ContentGuiXmlPanel.setEntity(ContentGuiXmlPanel.java:252)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.ContentViewComponent.valueChanged(ContentViewComponent.java:735)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI$Handler.setValueIsAdjusting(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mouseReleased(Unknown Source)
at de.espirit.firstspirit.client.ui.FsBasicTableUI$MyMouseInputHandler.mouseReleased(FsBasicTableUI.java:71)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at de.espirit.firstspirit.client.AWTDispatchingEventQueue.defaultDispatchEvent(AWTDispatchingEventQueue.java:132)
at de.espirit.firstspirit.client.AWTDispatchingEventQueue._dispatchEvent(AWTDispatchingEventQueue.java:116)
at de.espirit.firstspirit.client.AWTDispatchingEventQueue.dispatchEvent(AWTDispatchingEventQueue.java:109)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Would you like more information?Thank you.
Thanks,
Siva
The message says that some content type doesn't match. As you wrote "Previously it was text box", so it seems you try to store the content of a link in a text field. The content type of a link should be FirstSpirit Editor.
I have modified news database
field: external_link as
datatype: First Spirit
Image1:
Image2:
Mapping is also completed for the fiels name:external_link as
Error:
When i click the Reference and add the external link and try to save it i am getting the below error,
java.lang.IllegalStateException: Attribute news.external_link_EN not synced!
at de.espirit.or.impl.EntityImpl.getOldValue(EntityImpl.java:919)
at de.espirit.or.impl.EntityImpl.setValue(EntityImpl.java:789)
at de.espirit.or.impl.EntityImpl.setValue(EntityImpl.java:719)
at de.espirit.or.impl.EntityImpl.setValue(EntityImpl.java:199)
at de.espirit.firstspirit.store.access.contentstore.ContentUtil.setValue(ContentUtil.java:412)
at de.espirit.firstspirit.store.access.contentstore.ContentUtil.storeData(ContentUtil.java:345)
at de.espirit.firstspirit.store.access.contentstore.ContentUtil.storeData(ContentUtil.java:240)
at de.espirit.firstspirit.store.access.contentstore.ContentUtil.nStoreData(ContentUtil.java:226)
at de.espirit.firstspirit.store.access.contentstore.DatasetImpl.setData(DatasetImpl.java:324)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.AbstractGuiXmlPanel.save(AbstractGuiXmlPanel.java:489)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.ContentGuiXmlPanel.persist(ContentGuiXmlPanel.java:408)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.ContentGuiXmlPanel.persist(ContentGuiXmlPanel.java:378)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.ContentViewComponent.persistCurrentRow(ContentViewComponent.java:1026)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.CSContentView.persist(CSContentView.java:183)
at de.espirit.firstspirit.client.gui.tree.store.contentstore.GuiContent.save(GuiContent.java:1018)
at de.espirit.firstspirit.client.gui.tree.store.AbstractGuiStoreElement.save(AbstractGuiStoreElement.java:583)
at de.espirit.firstspirit.client.gui.tree.store.AbstractGuiStoreElement.save(AbstractGuiStoreElement.java:570)
at de.espirit.firstspirit.client.action.SaveAction.actionPerformed(SaveAction.java:78)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at de.espirit.firstspirit.common.gui.FsButton.fireActionPerformed(FsButton.java:86)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at de.espirit.firstspirit.client.AWTDispatchingEventQueue.defaultDispatchEvent(AWTDispatchingEventQueue.java:132)
at de.espirit.firstspirit.client.AWTDispatchingEventQueue._dispatchEvent(AWTDispatchingEventQueue.java:116)
at de.espirit.firstspirit.client.AWTDispatchingEventQueue.dispatchEvent(AWTDispatchingEventQueue.java:109)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Thank you,
Siva
Now i could able to enter the external link value as www.google.com and i am trying to access it like below,
$CMS_VALUE(content.external_link,default:"")$
$CMS_VALUE(content.external_link.getClass())$
Both are giving empty values.
content is the database entity....
How to get the external link value which i entered???
Thanks....
> I have modified news database
You have to save the modifications first.
Hello Peter,
Yes.Database is saved and no error.But if i try to get the value after selecting external link and entered value like www.google.com.
I tried to access the type of the link i have selected and value of the link.Nothing helps,
<!-- ExternalLinkClass: $CMS_VALUE(content.external_link.getClass())$ --> Empty Result.
<!-- First1: $CMS_VALUE(content.external_link.ref)$ --> Empty Result.
$CMS_VALUE(content.external_link,default:"")$ Empty Result
$CMS_VALUE(content.external_link.getClass())$ Empty Result.
As mentioned in the previous comment.How to get the value of the entered external link.???
Thanks for your kind time and reply.
What's content? You are sure it contains the field external_link? What is your log telling?
content is an entity of dataset.In console log there is no error.
Please see the image,external_link is available,
Code inside Format Template:
In the same database table name:news - content.news_headline is working.content.external_link is not working.
<atom:title><![CDATA[$CMS_VALUE(content.news_headline,default:"")$]]></atom:title>
<!-- HeadLine1: $CMS_VALUE(content.news_headline,default:"")$ -->
<!-- HeadLine1Class: $CMS_VALUE(content.news_headline.getClass())$ -->
<!-- HeadLine2: $CMS_VALUE(content.news_headline)$ -->
<!-- First1: $CMS_VALUE(content.external_link.ref)$ -->
<!-- First2: $CMS_VALUE(csExternalTeaserLink.ref)$ -->
<!-- First3: $CMS_VALUE(content.external_link,default:"")$ -->
<!-- First4: $CMS_VALUE(csExternalTeaserLink.getTemplateName(),default:"")$ -->
<!-- First5: $CMS_VALUE(csExternalTeaserLink.getTemplateName().getText(),default:"")$ -->
<!-- First6: $CMS_VALUE(csExternalTeaserLink.getTypeName(),default:"")$ -->
<!-- ExternalLinkClass: $CMS_VALUE(content.external_link.getClass())$ -->
The above code nothing helps..
What could be the problem for returning empty values???
Thanks,
Siva