cancel
Showing results for 
Search instead for 
Did you mean: 

Exception saving on List widget with complexType

russtrotter_
Confirmed Champ
Confirmed Champ

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

1 REPLY 1

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

Hi,

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

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.