Community
Participate
Working Groups
It seems that the failures are related to Andrei's changes made on last Wednesday May 19th for check in NestedFetchGroup feature and tests. 1. Error stacktrace for test failures in "test-static-weave": Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@cac268 Internal Exception: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.1.0.v20100522-r7346): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [default] failed. Internal Exception: Exception [EclipseLink-7150] (Eclipse Persistence Services - 2.1.0.v20100522-r7346): org.eclipse.persistence.exceptions.ValidationException Exception Description: Invalid composite primary key specification. The names of the primary key fields or properties in the primary key class [org.eclipse.persistence.testing.models.jpa.advanced.derivedid.MajorId] and those of the entity bean class [class org.eclipse.persistence.testing.models.jpa.advanced.derivedid.Major] must correspond and their types must be the same. Also, ensure that you have specified ID elements for the corresponding attributes in XML and/or an @Id on the corresponding fields or properties of the entity class. 2. Error stacktrace for test failures in "test-no-weave": org.eclipse.persistence.testing.models.jpa.advanced.Employee cannot be cast to org.eclipse.persistence.queries.FetchGroupTracker 3. Error stacktrace for test failures in "run-bean-validation-tests" java.lang.Integer cannot be cast to java.lang.Long java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long at org.eclipse.persistence.testing.models.jpa.beanvalidation.Employee._persistence_set(Employee.java) at org.eclipse.persistence.internal.descriptors.PersistenceObjectAttributeAccessor.setAttributeValueInObject(PersistenceObjectAttributeAccessor.java:46) at org.eclipse.persistence.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:1374) at org.eclipse.persistence.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1265) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:338) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:760) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildWorkingCopyCloneNormally(ObjectBuilder.java:605) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObjectInUnitOfWork(ObjectBuilder.java:558) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:498) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:450) at org.eclipse.persistence.queries.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:691) at org.eclipse.persistence.queries.ReadObjectQuery.conformResult(ReadObjectQuery.java:341) at org.eclipse.persistence.queries.ReadObjectQuery.registerResultInUnitOfWork(ReadObjectQuery.java:756) at org.eclipse.persistence.queries.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:446) at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1044) at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:736) at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1004) at org.eclipse.persistence.queries.ReadObjectQuery.execute(ReadObjectQuery.java:407) at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1082) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2909) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1226) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1208) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1168) at org.eclipse.persistence.internal.jpa.EntityManagerImpl.executeQuery(EntityManagerImpl.java:756) at org.eclipse.persistence.internal.jpa.EntityManagerImpl.findInternal(EntityManagerImpl.java:700) at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:594) at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:473) at org.eclipse.persistence.testing.tests.jpa.beanvalidation.BeanValidationJunitTest.testTraversableResolverPreventsLoadingOfLazyRelationships(BeanValidationJunitTest.java:190) at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:454)
Checked into trunk a weaving patch for fetch groups (see bug 244124). According to Yiping's testing the patch fixes static weaving tests but not bean validation.
Checked in the patch for bean validation tests (see bug 244124). Some static weaving tests still fail.
Weaving patch provided by Tom should have fixed static weaving test failures (see bug 244124). If that's correct then all the tests listed in this bug should pass and the bug should be closed.
Closing - fixes for bug 244124 resolve the issue.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink