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

Bug 337585

Summary: testSetup failed in JPA-SRG with clipselink.weaving.fetchgroups setting false
Product: z_Archived Reporter: Kevin Yuan <kevin.yuan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jamesssss, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kevin Yuan CLA 2011-02-18 11:39:35 EST
EclipseLink: trunk (2.3)
JDK: 1.6.0_23
DB: Oracle 11.1.0.7
When set "clipselink.weaving.fetchgroups=false", and all other options keep
default level. Most tests in JPA-SRG
(org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite)
failed since testSetup failed with the following error:

Stack Trace:
------------
Exception [EclipseLink-0] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.IntegrityException Descriptor Exceptions: --------------------------------------------------------- Exception [EclipseLink-199] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: In order to use Fetch Group, the domain class (class org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.HockeyGear) has to implement FetchGroupTracker interface. Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.HockeyGear --> [DatabaseTable(JPA_HOCKEY_GEAR)]) Exception [EclipseLink-199] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: In order to use Fetch Group, the domain class (class org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.ChestProtector) has to implement FetchGroupTracker interface. Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.ChestProtector --> [DatabaseTable(JPA_HOCKEY_GEAR), DatabaseTable(JPA_CHEST_PROTECT)]) Exception [EclipseLink-199] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: In order to use Fetch Group, the domain class (class org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.Pads) has to implement FetchGroupTracker interface. Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.Pads --> [DatabaseTable(JPA_HOCKEY_GEAR), DatabaseTable(JPA_PADS)]) Runtime Exceptions: ---------------------------------------------------------

javax.persistence.PersistenceException: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
---------------------------------------------------------

Exception [EclipseLink-199] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: In order to use Fetch Group, the domain class (class org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.HockeyGear) has to implement FetchGroupTracker interface.
Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.HockeyGear --> [DatabaseTable(JPA_HOCKEY_GEAR)])

Exception [EclipseLink-199] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: In order to use Fetch Group, the domain class (class org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.ChestProtector) has to implement FetchGroupTracker interface.
Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.ChestProtector --> [DatabaseTable(JPA_HOCKEY_GEAR), DatabaseTable(JPA_CHEST_PROTECT)])

Exception [EclipseLink-199] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: In order to use Fetch Group, the domain class (class org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.Pads) has to implement FetchGroupTracker interface.
Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.Pads --> [DatabaseTable(JPA_HOCKEY_GEAR), DatabaseTable(JPA_PADS)])

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

at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:423)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:185)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:242)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:230)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.getServerSession(JUnitTestCase.java:393)
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testSetup(EntityManagerJUnitTestSuite.java:414)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:503)
Caused by: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
---------------------------------------------------------

Exception [EclipseLink-199] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: In order to use Fetch Group, the domain class (class org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.HockeyGear) has to implement FetchGroupTracker interface.
Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.HockeyGear --> [DatabaseTable(JPA_HOCKEY_GEAR)])

Exception [EclipseLink-199] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: In order to use Fetch Group, the domain class (class org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.ChestProtector) has to implement FetchGroupTracker interface.
Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.ChestProtector --> [DatabaseTable(JPA_HOCKEY_GEAR), DatabaseTable(JPA_CHEST_PROTECT)])

Exception [EclipseLink-199] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: In order to use Fetch Group, the domain class (class org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.Pads) has to implement FetchGroupTracker interface.
Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.fetchgroup.Pads --> [DatabaseTable(JPA_HOCKEY_GEAR), DatabaseTable(JPA_PADS)])

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

at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:477)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:408)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:681)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:642)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:235)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:395)
Comment 1 James Sutherland CLA 2011-04-13 09:49:23 EDT
See, https://bugs.eclipse.org/bugs/show_bug.cgi?id=341153 for diff
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:28:20 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink