Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320117 - Three jpa 2.0 tests in jpa/jpql model failed on WebSphere 7.0.0.11 in EclipseLink 2.0.3
Summary: Three jpa 2.0 tests in jpa/jpql model failed on WebSphere 7.0.0.11 in Eclipse...
Status: CLOSED DUPLICATE of bug 324686
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-07-16 11:01 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-07-16 11:01:17 EDT
We recently upgraded nightly WebSphere install to 7.0.0.11 with JPA2.0 feature pack, so the jpa2.0 tests started to run on WebSphere, all the other jpa2.0 tests passed on WebSphere except following three tests in jpql model, which failed with EclipseLink 2.0.3 branch:

1. org.eclipse.persistence.testing.tests.jpa.jpql.AdvancedQueryTestSuite.testQueryPESSIMISTIC_FORCE_INCREMENTLock

<failure message="The version was not updated on the pessimistic lock." type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: The version was not updated on the pessimistic lock.
	at org.eclipse.persistence.testing.tests.jpa.jpql.AdvancedQueryTestSuite.testQueryPESSIMISTIC_FORCE_INCREMENTLock(AdvancedQueryTestSuite.java:1155)
	at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:476)
	at org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
	at org.eclipse.persistence.testing.framework.server.EJSRemote0SLTestRunner_ed643271.runTest(EJSRemote0SLTestRunner_ed643271.java)
	at org.eclipse.persistence.testing.framework.server._EJSRemote0SLTestRunner_ed643271_Tie.runTest(_EJSRemote0SLTestRunner_ed643271_Tie.java)
	at org.eclipse.persistence.testing.framework.server._EJSRemote0SLTestRunner_ed643271_Tie._invoke(_EJSRemote0SLTestRunner_ed643271_Tie.java)
	at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:622)
	at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:475)
	at com.ibm.rmi.iiop.ORB.process(ORB.java:513)
	at com.ibm.CORBA.iiop.ORB.process(ORB.java:1574)
	at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2841)
	at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2714)
	at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
	at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)

2. org.eclipse.persistence.testing.tests.jpa.jpql.AdvancedQueryTestSuite.testVersionChangeWithReadLock
<failure message="The version was not updated on the pessimistic read lock." type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: The version was not updated on the pessimistic read lock.
	at org.eclipse.persistence.testing.tests.jpa.jpql.AdvancedQueryTestSuite.testVersionChangeWithReadLock(AdvancedQueryTestSuite.java:1403)
	at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:476)
	at org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
	at org.eclipse.persistence.testing.framework.server.EJSRemote0SLTestRunner_ed643271.runTest(EJSRemote0SLTestRunner_ed643271.java)
	at org.eclipse.persistence.testing.framework.server._EJSRemote0SLTestRunner_ed643271_Tie.runTest(_EJSRemote0SLTestRunner_ed643271_Tie.java)
	at org.eclipse.persistence.testing.framework.server._EJSRemote0SLTestRunner_ed643271_Tie._invoke(_EJSRemote0SLTestRunner_ed643271_Tie.java)
	at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:622)
	at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:475)
	at com.ibm.rmi.iiop.ORB.process(ORB.java:513)
	at com.ibm.CORBA.iiop.ORB.process(ORB.java:1574)
	at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2841)
	at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2714)
	at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
	at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)

3. org.eclipse.persistence.testing.tests.jpa.jpql.AdvancedQueryTestSuite.testVersionChangeWithWriteLock
 <failure message="The version was not updated on the pessimistic write lock." type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: The version was not updated on the pessimistic write lock.
	at org.eclipse.persistence.testing.tests.jpa.jpql.AdvancedQueryTestSuite.testVersionChangeWithWriteLock(AdvancedQueryTestSuite.java:1484)
	at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:476)
	at org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
	at org.eclipse.persistence.testing.framework.server.EJSRemote0SLTestRunner_ed643271.runTest(EJSRemote0SLTestRunner_ed643271.java)
	at org.eclipse.persistence.testing.framework.server._EJSRemote0SLTestRunner_ed643271_Tie.runTest(_EJSRemote0SLTestRunner_ed643271_Tie.java)
	at org.eclipse.persistence.testing.framework.server._EJSRemote0SLTestRunner_ed643271_Tie._invoke(_EJSRemote0SLTestRunner_ed643271_Tie.java)
	at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:622)
	at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:475)
	at com.ibm.rmi.iiop.ORB.process(ORB.java:513)
	at com.ibm.CORBA.iiop.ORB.process(ORB.java:1574)
	at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2841)
	at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2714)
	at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
	at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
Comment 1 Tom Ware CLA 2010-08-09 14:22:01 EDT
Requires triage for 2.0.3
Comment 2 Chris Delahunt CLA 2010-11-26 10:14:08 EST
Same issue as in 324686, with the same root cause - tests don't work unless they are run with an extended persistence unit.

*** This bug has been marked as a duplicate of bug 324686 ***
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:22:19 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink