Community
Participate
Working Groups
When configuring a direct mapping to an attribute via external metadata if the xml-path does not contain an '@' a null pointer exception will occur. See the following trace: Caused by: java.lang.NullPointerException at org.eclipse.persistence.internal.oxm.XMLDirectMappingNodeValue.marshalSingleValue(XMLDirectMappingNodeValue.java:76) at org.eclipse.persistence.internal.oxm.XMLDirectMappingNodeValue.marshal(XMLDirectMappingNodeValue.java:57) at org.eclipse.persistence.internal.oxm.NodeValue.marshal(NodeValue.java:104) at org.eclipse.persistence.internal.oxm.record.ObjectMarshalContext.marshal(ObjectMarshalContext.java:60) at org.eclipse.persistence.internal.oxm.XPathNode.marshal(XPathNode.java:336) at org.eclipse.persistence.internal.oxm.XPathNode.marshal(XPathNode.java:324) at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:327) at org.eclipse.persistence.oxm.XMLMarshaller.marshal(XMLMarshaller.java:919) at org.eclipse.persistence.oxm.XMLMarshaller.marshal(XMLMarshaller.java:734) ... 21 more
Created attachment 171723 [details] proposed fix and updated tests
Attached patch checked into trunk branch in SVN Leaving bug open pending check in into 2.1.1 Reviewed by Blaise Doughan
Fix backported into 2.1 stream.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink