Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368293 - XmlAdapterListSingleBarTestCase failures with jdk 1.7.0_02 and eclipselink 2.3
Summary: XmlAdapterListSingleBarTestCase failures with jdk 1.7.0_02 and eclipselink 2.3
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: 2012-01-10 15:33 EST by Denise Smith CLA
Modified: 2022-06-09 10:29 EDT (History)
0 users

See Also:


Attachments
2.3 Proposed patch (821 bytes, patch)
2012-01-12 15:54 EST, 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 2012-01-10 15:33:52 EST
Test cases XmlAdapterListSingleBarTestCase fail running against jdk 1.7.0_02 but passed running 1.7.0_01.   Only fail in 2.3 (pass in 2.4)

[Exception [EclipseLink-3001] (Eclipse Persistence Services - 2.3.3.qualifier): org.eclipse.persistence.exceptions.ConversionException
Exception Description: The object [00], of class [class java.lang.String], could not be converted to [class java.lang.Object].]
at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:509)
at org.eclipse.persistence.testing.jaxb.JAXBTestCases.testObjectToXMLStreamWriterRecord(JAXBTestCases.java:362)
Caused by: Exception [EclipseLink-3001] (Eclipse Persistence Services - 2.3.3.qualifier): org.eclipse.persistence.exceptions.ConversionException
Exception Description: The object [00], of class [class java.lang.String], could not be converted to [class java.lang.Object].
at org.eclipse.persistence.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:71)
at org.eclipse.persistence.internal.jaxb.XMLJavaTypeConverter.convertObjectValueToDataValue(XMLJavaTypeConverter.java:163)
at org.eclipse.persistence.internal.jaxb.JAXBElementRootConverter.convertObjectValueToDataValue(JAXBElementRootConverter.java:83)
at org.eclipse.persistence.internal.oxm.XMLChoiceCollectionMappingMarshalNodeValue.marshalSingleValue(XMLChoiceCollectionMappingMarshalNodeValue.java:116)
at org.eclipse.persistence.internal.oxm.XMLChoiceCollectionMappingMarshalNodeValue.marshal(XMLChoiceCollectionMappingMarshalNodeValue.java:107)
at org.eclipse.persistence.internal.oxm.NodeValue.marshal(NodeValue.java:151)
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:331)
at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:391)
at org.eclipse.persistence.oxm.XMLMarshaller.marshal(XMLMarshaller.java:941)
at org.eclipse.persistence.oxm.XMLMarshaller.marshal(XMLMarshaller.java:819)
at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:507)
Comment 1 Denise Smith CLA 2012-01-12 15:54:03 EST
Created attachment 209408 [details]
2.3 Proposed patch
Comment 2 Denise Smith CLA 2012-01-12 15:55:16 EST
Looks like a change to Property.java made for a similar issue in trunk bug 365484 fixes this issue.
Comment 3 Denise Smith CLA 2012-01-12 16:27:31 EST
Fixed in 2.3.3
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:14:37 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:29:36 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink