Bug 264582 - two tests in jpa.fieldaccess.advanced.OptimisticConcurrencyJUnitTestSuite failed on all application servers
Summary: two tests in jpa.fieldaccess.advanced.OptimisticConcurrencyJUnitTestSuite fai...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2009-02-11 14:51 EST by Kevin Yuan CLA
Modified: 2022-06-09 10:22 EDT (History)
2 users (show)

See Also:


Attachments
patch for the bug (8.98 KB, application/octet-stream)
2009-07-09 14:06 EDT, Kevin Yuan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2009-02-11 14:51:05 EST
The following exceptions are occurred during running WAS6.1 with testVersionUpdateWithIncorrectValue and testVersionUpdateWithNullValue:

updating object version with wrong value threw a wrong exception: javax.transaction.RollbackException

junit.framework.AssertionFailedError: updating object version with wrong value threw a wrong exception: javax.transaction.RollbackException
at org.eclipse.persistence.testing.tests.jpa.fieldaccess.advanced.OptimisticConcurrencyJUnitTestSuite.testVersionUpdateWithIncorrectValue(OptimisticConcurrencyJUnitTestSuite.java:173)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:391)
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:621)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:474)
at com.ibm.rmi.iiop.ORB.process(ORB.java:503)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2701)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2575)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)

============
employee2.setVersion(null) threw a wrong exception: javax.transaction.RollbackException

junit.framework.AssertionFailedError: employee2.setVersion(null) threw a wrong exception: javax.transaction.RollbackException
at org.eclipse.persistence.testing.tests.jpa.fieldaccess.advanced.OptimisticConcurrencyJUnitTestSuite.testVersionUpdateWithNullValue(OptimisticConcurrencyJUnitTestSuite.java:204)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:391)
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:621)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:474)
at com.ibm.rmi.iiop.ORB.process(ORB.java:503)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2701)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2575)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Comment 1 Kevin Yuan CLA 2009-07-09 14:06:42 EDT
Created attachment 141228 [details]
patch for the bug

Remove an wrapping exceptions such as rollback, runtime, etc. to get nested exception in Server, here should be OptimisticLocakException.
Comment 2 Kevin Yuan CLA 2009-07-09 14:07:55 EDT
Checked in both 2.0 and 1.1 branch. Code reviewed by Edwin Tang.

Revision in 2.0: 4636
Comment 3 Peter Krogh CLA 2009-08-26 09:47:38 EDT
Mass update to change fixed in target.
Comment 4 Peter Krogh CLA 2009-08-26 09:50:05 EDT
Mass update to change fixed in target.
Comment 5 Peter Krogh CLA 2009-08-26 09:55:35 EDT
Mass update to change fixed in target.
Comment 6 Peter Krogh CLA 2009-08-26 09:57:50 EDT
Mass update to change fixed in target.
Comment 7 Yiping Zhao CLA 2009-08-28 13:31:19 EDT
The two tests still failed on GlassFish, so the fix needs to be revisited.
Comment 8 Tom Ware CLA 2009-10-01 14:46:51 EDT
defer to 2.0 - the initial target of 1.2 was due to the initial test going into 1.2.  The issue that caused reopening is a candiate for 2.0.
Comment 9 Peter Krogh CLA 2009-11-27 13:41:48 EST
This bug fix did not make the cut off for 2.0.0. We are deferring the bugs to Future where we can properly sort them all together based on community votes and severity. We will then assign them accordingly to future patch sets and releases.
Comment 10 Peter Krogh CLA 2009-11-30 11:37:40 EST
Changing the priority of the bugs that have been recently triaged to future.  Targetting them to P2 will differentiate them from the P3s that have been triaged into future earlier.
Comment 11 Kevin Yuan CLA 2010-03-09 16:00:07 EST
Already fixed on all branch. Verified on both Glassfish v2 and v3.
Comment 12 Eclipse Webmaster CLA 2022-06-09 10:22:59 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink