Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314340 - Massive test failures in jpa static weaving, non weaving and beanvalidation tests in trunk
Summary: Massive test failures in jpa static weaving, non weaving and beanvalidation t...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 15:33 EDT by Yiping Zhao CLA
Modified: 2022-06-09 10:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yiping Zhao CLA 2010-05-25 15:33:57 EDT
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)
Comment 1 Andrei Ilitchev CLA 2010-05-25 17:15:23 EDT
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.
Comment 2 Andrei Ilitchev CLA 2010-05-26 17:29:11 EDT
Checked in the patch for bean validation tests (see bug 244124).
Some static weaving tests still fail.
Comment 3 Andrei Ilitchev CLA 2010-05-28 19:22:41 EDT
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.
Comment 4 Tom Ware CLA 2010-06-07 14:36:16 EDT
Closing - fixes for bug 244124 resolve the issue.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:22:56 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink