Community
Participate
Working Groups
Trying to use jaxbUnmarshaller.unmarshal(node, String[].class) will cause an error when the class is an array. org.eclipse.persistence.exceptions.XMLMarshalException Exception Description: A descriptor for class [Ljava.lang.Float; was not found in the project. For JAXB, if the JAXBContext was bootstrapped using TypeMappingInfo[] you must call a marshal method that accepts TypeMappingInfo as an input parameter. at org.eclipse.persistence.exceptions.XMLMarshalException.descriptorNotFoundInPro ject(XMLMarshalException.java:120) at org.eclipse.persistence.oxm.XMLContext$XMLContextState.getReadSession(XMLConte xt.java:957) at org.eclipse.persistence.oxm.XMLContext$XMLContextState.access$500(XMLContext.j ava:770) at org.eclipse.persistence.oxm.XMLContext.getReadSession(XMLContext.java:292) at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmar shaller.java:414) at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmar shaller.java:379) at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:496 ) at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java: 262)
Created attachment 200750 [details] Proposed change and test
Fixed in JAXBUnmarshaller to get the appropriate class to unmarshal to.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink