Exception saving on List widget with complexType

I get the following exception on a “Save” on from the edit view for a List widget field bound to a nested xpath expression, e.g. myparent/mychild (mychild is a xs:element with minOccurs = 0 and maxOccurs=unbounded)

java.lang.ClassCastException: org.nuxeo.ecm.core.schema.types.ComplexTypeImpl cannot be cast to org.nuxeo.ecm.core.schema.types.ListType

however, if i declare the “mychild” declaration at the root level of the schema (thus the xpath example above becomes just 'mychild'), saving works.

Anyone know if this a just a 5.7.x bug or hopefully fixed in 5.8? thanks

0 votes

1 answers




Looks a lot like https://jira.nuxeo.com/browse/NXP-10053, maybe you're not setting minOccurs and maxOccurs elements as Nuxeo expects it.

0 votes