Skip to Content
0
Former Member
Jun 24, 2016 at 06:32 PM

Need to create attribute items.xml

481 Views

I need to create an attribute “addedList” which is of type List< Map< String,Object>>

So First I defined collection under

Where I have defined EntryListMap under maptypes

Then declared the attribute under the specific itemtype is defined as:

So I build. Build successful. Then the model class generates the attribute as : List _addedEntryList

But when I run the server and update the extension by selecting update the running system. The process throws an error

de.hybris.platform.jalo.JaloSystemException: error during customercore type initializer initializeCreateTypes() : cannot find requested type 'EntryList'[HY--1] INFO | jvm 1 | main | 2016/06/23 13:38:15.408 | at de.hybris.platform.persistence.AbstractTypeInitializer.initializeCreateTypes(AbstractTypeInitializer.java:2890) INFO | jvm 1 | main | 2016/06/23 13:38:15.416 | at de.hybris.platform.persistence.extension.ExtensionEJB.initializeCreateTypesTypeInitializer(ExtensionEJB.java:59) INFO | jvm 1 | main | 2016/06/23 13:38:15.425 | at de.hybris.platform.persistence.extension.ExtensionManagerEJB.initializeCreateTypes(ExtensionManagerEJB.java:130) INFO | jvm 1 | main | 2016/06/23 13:38:15.447 | at de.hybris.platform.util.EJBTools.performInitialize(EJBTools.java:595) INFO | jvm 1 | main | 2016/06/23 13:38:15.452 | at de.hybris.platform.util.EJBTools.performInitialize(EJBTools.java:564) INFO | jvm 1 | main | 2016/06/23 13:38:15.458 | at de.hybris.platform.persistence.NotifyManagerEJB.initializeCreateTypes(NotifyManagerEJB.java:156) INFO | jvm 1 | main | 2016/06/23 13:38:15.465 | at de.hybris.platform.core.Initialization.initialize(Initialization.java:983) INFO | jvm 1 | main | 2016/06/23 13:38:15.468 | at de.hybris.platform.core.Initialization.createEmptySystemOrUpdate(Initialization.java:665) INFO | jvm 1 | main | 2016/06/23 13:38:15.474 | at de.hybris.platform.core.Initialization.access$5(Initialization.java:644) INFO | jvm 1 | main | 2016/06/23 13:38:15.480 | at de.hybris.platform.core.Initialization$3.call(Initialization.java:455) INFO | jvm 1 | main | 2016/06/23 13:38:15.487 | at de.hybris.platform.core.Initialization$3.call(Initialization.java:1) INFO | jvm 1 | main | 2016/06/23 13:38:15.492 | at de.hybris.platform.core.Initialization$

So I understand that EntryList needs to be defined before defining collection because of which the update is failing. But How do I define the desire map before collection ?

Also If use atomictypes then I can only define java.util.Map and not java.util.Map .

Please help . Let me know if I am missing anything.