问题描述
<collectiontype code="stringList" elementtype="java.lang.String" autocreate="true" generate="true" type="list" />
<itemtype code="CustomItemType" ...>
<attribute type="stringList" qualifier="productCodes" autocreate="true">
......
</attribute>
</itemtype>
有一个customItemType属性为“productcodes”的类型集合,是一个字符串列表。
当我使用此属性在 hybris 中为此类型创建入站集成对象时,该对象已成功创建,在后台打开 edmx 后,我可以看到也创建了 edmx,但在打开 JSON 示例负载时,它显示为空。
错误 [hybrisHTTP15] (at) [DefaultWidgetInstanceManager] 发送输出时出错 java.lang.classCastException: class de.hybris.platform.core.model.type.CollectionTypeModel 无法转换 类 de.hybris.platform.core.model.type.AtomicTypeModel (de.hybris.platform.core.model.type.CollectionTypeModel 和 de.hybris.platform.core.model.type.AtomicTypeModel 未命名 loader 模块 de.hybris.bootstrap.loader.PlatformInPlaceClassLoader @52158d83)在 de.hybris.platform.integrationbackoffice.widgets.modals.generator.DefaultIntegrationObjectJsonGenerator.determinePrimitiveType(DefaultIntegrationObjectJsonGenerator.java:415) ~[?:?] 在 de.hybris.platform.integrationbackoffice.widgets.modals.generator.DefaultIntegrationObjectJsonGenerator.composeJsonPrimitive(DefaultIntegrationObjectJsonGenerator.java:280) ~[?:?].................
我尝试参考this link,但根据它,集合也与其他属性一样使用。但是为什么我无法从中获得任何 JSON 输出?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)