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

Bug 365312

Summary: with xmlparser, in test-oxm, 18 Inheritance test cases failed with Missing class for indicator field value
Product: z_Archived Reporter: Praba Vijayaratnam <prabaharan.vijayaratnam>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: blaise.doughan, david.twelves, rick.barkhouse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Praba Vijayaratnam CLA 2011-12-01 09:19:32 EST
Test Config:

Java Development Kit: jdk16
Ant parameters:
-Dxml.platform=org.eclipse.persistence.platform.xml.xdk.XDKPlatform
-Dxml.parser.jar=xmlparserv2.jar

---------
org.eclipse.persistence.testing.oxm.deploymentxml.inheritance.InheritanceCarDefaultNSTestCases.Deployment XML w/DOM Parsing: InheritanceCarDefaultNSTestCase: testXMLToObjectFromInputStream

org.eclipse.persistence.testing.oxm.deploymentxml.inheritance.InheritanceCarDefaultNSTestCases.Deployment XML w/DOM Parsing: InheritanceCarDefaultNSTestCase: testXMLToObjectFromNode

org.eclipse.persistence.testing.oxm.deploymentxml.inheritance.InheritanceCarDefaultNSTestCases.Deployment XML w/DOM Parsing: InheritanceCarDefaultNSTestCase: testXMLToObjectFromXMLStreamReader

org.eclipse.persistence.testing.oxm.deploymentxml.inheritance.InheritanceCarDefaultNSTestCases.Deployment XML w/DOM Parsing: InheritanceCarDefaultNSTestCase: testXMLToObjectFromXMLEventReader

org.eclipse.persistence.testing.oxm.deploymentxml.inheritance.InheritanceCarDefaultNSTestCases.Deployment XML w/DOM Parsing: InheritanceCarDefaultNSTestCase: testXMLToObjectFromURL

org.eclipse.persistence.testing.oxm.deploymentxml.inheritance.InheritanceCarDefaultNSTestCases.Deployment XML w/DOM Parsing: InheritanceCarDefaultNSTestCase: testUnmarshallerHandler

-------------

Exception Description: Missing class for indicator field value [car-type] of type [class java.lang.String]. Descriptor: XMLDescriptor(org.eclipse.persistence.testing.oxm.inheritance.Vehicle --> [DatabaseTable(prefix:vehicle)]) 

Local Exception Stack: 
Exception [EclipseLink-43] (Eclipse Persistence Services - 2.4.0.v20111130-r10478): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: Missing class for indicator field value [car-type] of type [class java.lang.String].
Descriptor: XMLDescriptor(org.eclipse.persistence.testing.oxm.inheritance.Vehicle --> [DatabaseTable(prefix:vehicle)])
at org.eclipse.persistence.exceptions.DescriptorException.missingClassForIndicatorFieldValue(DescriptorException.java:937)
at org.eclipse.persistence.internal.oxm.QNameInheritancePolicy.classFromRow(QNameInheritancePolicy.java:198)
at org.eclipse.persistence.internal.oxm.XMLObjectBuilder.buildObject(XMLObjectBuilder.java:248)
at org.eclipse.persistence.internal.oxm.record.DOMUnmarshaller.xmlToObject(DOMUnmarshaller.java:456)
at org.eclipse.persistence.internal.oxm.record.DOMUnmarshaller.xmlToObject(DOMUnmarshaller.java:382)
at org.eclipse.persistence.internal.oxm.record.DOMUnmarshaller.unmarshal(DOMUnmarshaller.java:162)
at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:364)
at org.eclipse.persistence.testing.oxm.mappings.XMLMappingTestCases.testXMLToObjectFromInputStream(XMLMappingTestCases.java:207)
Comment 1 Rick Barkhouse CLA 2012-05-07 12:52:25 EDT
Created attachment 215192 [details]
Patch
Comment 2 Rick Barkhouse CLA 2012-05-07 12:55:04 EDT
This patch applies the JAXPPlatform fix from  bug 219496 (No name space does not work with inheritance) to the XDKPlatform.
Comment 3 Rick Barkhouse CLA 2012-05-07 13:33:26 EDT
Fixed and checked into trunk (verified in Eclipse).  Reviewed by mmacivor.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:25:53 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink