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

Bug 328634

Summary: with JDK 1.5, some of org.eclipse.persistence.testing.jaxb tests failed in with Descriptor is missing for class
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: david.twelves, eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Proposed Fix none

Description Praba Vijayaratnam CLA 2010-10-25 12:41:49 EDT
Test Env:
EclipseLink 2.2.0.v20101022-r8382
JDK 1.5.0_22-b03
OS: Linux

There were 13 failures in org.eclipse.persistence.testing.jaxb, all with similar exception as listed below.
These are new failures and not testcase bug.
===========================

Exception in constructor: testRoundTrip (javax.xml.bind.JAXBException: Descriptor Exceptions: --------------------------------------------------------- Exception [EclipseLink-110] (Eclipse Persistence Services - 2.2.0.v20101022-r8382): org.eclipse.persistence.exceptions.DescriptorException Exception Description: Descriptor is missing for class [org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.unmappable.package2.Unmappable]. Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[containerProperty] Descriptor: XMLDescriptor(org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.unmappable.package1.Container --> [DatabaseTable(ns0:CONTAINER)]) Runtime Exceptions: --------------------------------------------------------- - with linked exception: [Exception [EclipseLink-0] (Eclipse Persistence Services - 2.2.0.v20101022-r8382): org.eclipse.persistence.exceptions.IntegrityException Descriptor Exceptions: --------------------------------------------------------- Exception [EclipseLink-110] (Eclipse Persistence Services - 2.2.0.v20101022-r8382): org.eclipse.persistence.exceptions.DescriptorException Exception Description: Descriptor is missing for class [org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.unmappable.package2.Unmappable]. Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[containerProperty] Descriptor: XMLDescriptor(org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.unmappable.package1.Container --> [DatabaseTable(ns0:CONTAINER)]) Runtime Exceptions: --------------------------------------------------------- ] at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:247) at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:207) at org.eclipse.persistence.testing.jaxb.JAXBTestCases.setTypes(JAXBTestCases.java:137) at org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.unmappable.ClassLevelTestCases.<init>(ClassLevelTestCases.java:46) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:501) at junit.framework.TestSuite.createTest(TestSuite.java:65) at junit.framework.TestSuite.addTestMethod(TestSuite.java:283) at junit.framework.TestSuite.<init>(TestSuite.java:146) at junit.framework.TestSuite.addTestSuite(TestSuite.java:198) at org.eclipse.persistence.testing.jaxb.externalizedmetadata.ExternalizedMetadataTestSuite.suite(ExternalizedMetadataTestSuite.java:86) at org.eclipse.persistence.testing.jaxb.JAXBTestSuite.suite(JAXBTestSuite.java:146) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:356) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768) Caused by: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.2.0.v20101022-r8382): org.eclipse.persistence.exceptions.IntegrityException Descriptor Exceptions: --------------------------------------------------------- Exception [EclipseLink-110] (Eclipse Persistence Services - 2.2.0.v20101022-r8382): org.eclipse.persistence.exceptions.DescriptorException Exception Description: Descriptor is missing for class [org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.unmappable.package2.Unmappable]. Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[containerProperty] Descriptor: XMLDescriptor(org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.unmappable.package1.Container --> [DatabaseTable(ns0:CONTAINER)]) Runtime Exceptions: --------------------------------------------------------- at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:471) at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:406) at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:667) at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:628) at org.eclipse.persistence.oxm.XMLContext.<init>(XMLContext.java:213) at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:336) at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:245) ... 20 more )

junit.framework.AssertionFailedError: Exception in constructor: testRoundTrip (javax.xml.bind.JAXBException:
Descriptor Exceptions:
---------------------------------------------------------

Exception [EclipseLink-110] (Eclipse Persistence Services - 2.2.0.v20101022-r8382): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: Descriptor is missing for class [org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.unmappable.package2.Unmappable].
Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[containerProperty]
Descriptor: XMLDescriptor(org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.unmappable.package1.Container --> [DatabaseTable(ns0:CONTAINER)])

Runtime Exceptions:
---------------------------------------------------------

- with linked exception:
[Exception [EclipseLink-0] (Eclipse Persistence Services - 2.2.0.v20101022-r8382): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
---------------------------------------------------------

Exception [EclipseLink-110] (Eclipse Persistence Services - 2.2.0.v20101022-r8382): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: Descriptor is missing for class [org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.unmappable.package2.Unmappable].
Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[containerProperty]
Descriptor: XMLDescriptor(org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.unmappable.package1.Container --> [DatabaseTable(ns0:CONTAINER)])
Comment 1 Matt MacIvor CLA 2010-11-09 13:24:30 EST
Created attachment 182741 [details]
Proposed Fix
Comment 2 Matt MacIvor CLA 2010-11-09 13:55:11 EST
Attached patch checked in to SVN
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:33:37 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink