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

Bug 365309

Summary: with XDK/xmlparserv2, in test-jaxb, XmlLocationTestCases.Java Project Source w/SAX Parsing Failed
Product: z_Archived Reporter: Praba Vijayaratnam <prabaharan.vijayaratnam>
Component: EclipselinkAssignee: Rick Barkhouse <rick.barkhouse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: blaise.doughan, rick.barkhouse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Praba Vijayaratnam CLA 2011-12-01 08:57:11 EST
org.eclipse.persistence.testing.jaxb.annotations.xmllocation.XmlLocationTestCases.Java Project Source w/SAX Parsing: XmlLocationTestCase: testXMLToObjectFromURL

-----------------
junit.framework.AssertionFailedError: expected:<
Data(dat325) L15 C89 file:/net/ottvm033/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/resource/org/eclipse/persistence/testing/jaxb/annotations/xmllocation/data.xml
DetailData(name|rbarkhouse) L20 C35 file:/net/ottvm033/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/resource/org/eclipse/persistence/testing/jaxb/annotations/xmllocation/data.xml
SubData(phone|6132832684) L30 C26 file:/net/ottvm033/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/resource/org/eclipse/persistence/testing/jaxb/annotations/xmllocation/data.xml
LeafData(id|8827) L32 C33 file:/net/ottvm033/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/resource/org/eclipse/persistence/testing/jaxb/annotations/xmllocation/data.xml
> but was:<
Data(dat325) L9 C89 file:/net/ottvm033/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/resource/org/eclipse/persistence/testing/jaxb/annotations/xmllocation/data.xml
DetailData(name|rbarkhouse) L14 C35 file:/net/ottvm033/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/resource/org/eclipse/persistence/testing/jaxb/annotations/xmllocation/data.xml
SubData(phone|6132832684) L24 C26 file:/net/ottvm033/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/resource/org/eclipse/persistence/testing/jaxb/annotations/xmllocation/data.xml
LeafData(id|8827) L26 C33 file:/net/ottvm033/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/resource/org/eclipse/persistence/testing/jaxb/annotations/xmllocation/data.xml
>
at org.eclipse.persistence.testing.oxm.mappings.XMLMappingTestCases.xmlToObjectTest(XMLMappingTestCases.java:272)
at org.eclipse.persistence.testing.jaxb.JAXBTestCases.xmlToObjectTest(JAXBTestCases.java:499)
at org.eclipse.persistence.testing.jaxb.JAXBTestCases.testXMLToObjectFromURL(JAXBTestCases.java:416)
Comment 1 Rick Barkhouse CLA 2011-12-05 15:17:08 EST
This appears to be due to a bug in XDK.  I have filed a bug against them:

https://bug.oraclecorp.com/pls/bug/webbug_print.show?c_rptno=13466214
Comment 2 Rick Barkhouse CLA 2012-04-25 14:04:34 EDT
Created attachment 214556 [details]
Patch
Comment 3 Rick Barkhouse CLA 2012-04-25 14:05:45 EDT
Changed instance doc to not have whitespace in the xml declaration (which is the XDK bug)
Comment 4 Rick Barkhouse CLA 2012-04-25 14:48:22 EDT
Fixed and checked into trunk.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:05:32 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink