Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353622

Summary: Unmarshal from node, class not working when class is an Array
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Proposed change and test none

Description Denise Smith CLA 2011-08-02 13:14:55 EDT
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)
Comment 1 Denise Smith CLA 2011-08-02 13:28:18 EDT
Created attachment 200750 [details]
Proposed change and test
Comment 2 Denise Smith CLA 2011-08-03 09:26:15 EDT
Fixed in JAXBUnmarshaller to get the appropriate class to unmarshal to.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:24:05 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink