Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 245548 - 17 tests in EntityManagerJUnitTestSuite failed on WebSphere
Summary: 17 tests in EntityManagerJUnitTestSuite failed on WebSphere
Status: RESOLVED 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: 2008-08-28 11:41 EDT by Yiping Zhao CLA
Modified: 2022-06-09 10:26 EDT (History)
1 user (show)

See Also:


Attachments
fixed 17 test failures in JPA fieldaccess-advanced model (2.06 KB, patch)
2008-09-08 16:10 EDT, Yiping Zhao CLA
peter.krogh: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yiping Zhao CLA 2008-08-28 11:41:47 EDT
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="
	&gt;&gt; SERVER (id=4773e3aa, host=yzhao-pc.ca.oracle.com) TRACE START:
	&gt;&gt;    javax.ejb.EJBTransactionRolledbackException
	&gt;&gt;	 at com.ibm.ejs.csi.BeanManaged.postInvoke(BeanManaged.java:311)
	&gt;&gt;	 at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:581)
	&gt;&gt;	 at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:4311)
	&gt;&gt;	 at org.eclipse.persistence.testing.framework.server.EJSRemote0SLTestRunner_ed643271.runTest(EJSRemote0SLTestRunner_ed643271.java)
	&gt;&gt;	 at org.eclipse.persistence.testing.framework.server._EJSRemote0SLTestRunner_ed643271_Tie.runTest(_EJSRemote0SLTestRunner_ed643271_Tie.java)
	&gt;&gt;	 at org.eclipse.persistence.testing.framework.server._EJSRemote0SLTestRunner_ed643271_Tie._invoke(_EJSRemote0SLTestRunner_ed643271_Tie.java)
	&gt;&gt;	 at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:621)
	&gt;&gt;	 at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:474)
	&gt;&gt;	 at com.ibm.rmi.iiop.ORB.process(ORB.java:503)
	&gt;&gt;	 at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
	&gt;&gt;	 at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2701)
	&gt;&gt;	 at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2575)
	&gt;&gt;	 at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
	&gt;&gt;	 at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
	&gt;&gt;	 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
	&gt;&gt; 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.
Comment 1 Yiping Zhao CLA 2008-09-08 16:10:12 EDT
Created attachment 112013 [details]
fixed 17 test failures in JPA fieldaccess-advanced model
Comment 2 Yiping Zhao CLA 2008-10-08 13:31:57 EDT
the fix includes moving query's definition after beginTransaction(). 
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:26:20 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink