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

Bug 355719

Summary: Exception during marshal and unmarshal with XmlValue on a collection or 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: blaise.doughan, eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
2.3 patch
none
2.4 patch
none
2.3 patch none

Description Denise Smith CLA 2011-08-24 11:27:27 EDT
To reproduce this run the following tests
org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmlvalue.XmlValueInternationalPricesTestCases and 
org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmlvalue.XmlValueCdnPricesTestCases

When fixed uncomment the following lines in ExternalizedMetadataTestSuite 
     //suite.addTestSuite(XmlValueInternationalPricesTestCases.class);
     //suite.addTestSuite(XmlValueCdnPricesTestCases.class);
   
Currently there is a NPE during marshal operations and nothing is read in during the unmarshal.
Comment 1 Denise Smith CLA 2011-09-16 13:31:40 EDT
Created attachment 203504 [details]
2.3 patch
Comment 2 Denise Smith CLA 2011-09-16 13:32:01 EDT
Created attachment 203505 [details]
2.4 patch
Comment 3 Denise Smith CLA 2011-09-16 13:34:26 EDT
Created attachment 203506 [details]
2.3 patch
Comment 4 Denise Smith CLA 2011-09-16 14:05:44 EDT
Fixed in MappingsGenerator to turn on usesSingleNode on a CompositeDirectCollectionMapping if an XmlValue annotation is on a List property.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:31:28 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink