Community
Participate
Working Groups
In JPA fieldaccess advanced test model, testFindDeleteAllPersist(), testWRITELock() and 15 tests of transaction isolation failed on WebSphere with following exception: testcase classname="org.eclipse.persistence.testing.tests.jpa.fieldaccess.advanced.EntityManagerJUnitTestSuite" name="testReadTransactionIsolation_CustomUpdate_Refresh" time="0.031"> <error message=" >> SERVER (id=4773e3aa, host=yzhao-pc.ca.oracle.com) TRACE START: >> javax.ejb.EJBTransactionRolledbackException >> at com.ibm.ejs.csi.BeanManaged.postInvoke(BeanManaged.java:311) >> at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:581) >> at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:4311) >> 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) >> SERVER (id=4773e3aa, host=yzhao-pc.ca.oracle.com) TRACE END. Note: I have tried to move query's definition after beginTransaction() in those test methods, the tests will pass on WebSphere, I also tried that modified tests passed on JBOSS and WLS too. So I am wondering if I could change the tests.
Created attachment 112013 [details] fixed 17 test failures in JPA fieldaccess-advanced model
the fix includes moving query's definition after beginTransaction().
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink