Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353622 - Unmarshal from node, class not working when class is an Array
Summary: Unmarshal from node, class not working when class is an Array
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-02 13:14 EDT by Denise Smith CLA
Modified: 2022-06-09 10:24 EDT (History)
1 user (show)

See Also:


Attachments
Proposed change and test (4.12 KB, patch)
2011-08-02 13:28 EDT, Denise Smith CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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