AnsweredAssumed Answered

CMLCreate fails

Question asked by cburghardt on Oct 9, 2006
Latest reply on Oct 19, 2006 by cburghardt
I have Alfresco 1.3 and my own model. The following code throws an exception:
CMLCreate create = new CMLCreate(name, parentReference, "http://www.inovox.de/model/1.0/email", props);
            CML cml = new CML();
            cml.setCreate(new CMLCreate[]{create});
            // create the node without content
            UpdateResult[] result = repositoryService.update(cml);

The NamedValue[] include the properties of my own model.
The error message:

22:55:41,280 ERROR [org.apache.axis.encoding.ser.BeanSerializer] Exception:
java.io.IOException: Non nillable element 'message1' is null.
   at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:215)
   at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1502)
   at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:978)
   at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:678)
   at org.alfresco.repo.webservice.repository.RepositoryFault.writeDetails(RepositoryFault.java:156)

Outcomes