Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320504

Summary: jpa.fetchgroups.SimpleSerializeFetchGroupTests.simpleSerializeAndMerge failed on WAS
Product: z_Archived Reporter: Kevin Yuan <kevin.yuan>
Component: EclipselinkAssignee: Kevin Yuan <kevin.yuan>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: test
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch for bug fix none

Description Kevin Yuan CLA 2010-07-21 09:25:41 EDT
This test is first time to run on WAS, and it passed on other application servers (JBoss/WLS/GlassFish). The following is stack trace:

========================
FetchGroup on entity is null

java.lang.AssertionError: FetchGroup on entity is null
at org.eclipse.persistence.testing.tests.jpa.fetchgroups.FetchGroupAssert.assertFetched(FetchGroupAssert.java:167)
at org.eclipse.persistence.testing.tests.jpa.fetchgroups.BaseFetchGroupTests.assertFetched(BaseFetchGroupTests.java:422)
at org.eclipse.persistence.testing.tests.jpa.fetchgroups.SimpleSerializeFetchGroupTests.simpleSerializeAndMerge(SimpleSerializeFetchGroupTests.java:809)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:490)
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 Kevin Yuan CLA 2010-07-21 10:55:40 EDT
Created attachment 174865 [details]
patch for bug fix

WAS need to add all query within transaction, all other application servers didn't care it. So just move "beginTransaction(em)" before "em.createQuery".

Code reviewed by Yiping Zhao.
Comment 2 Kevin Yuan CLA 2010-07-21 10:59:14 EDT
Checked into trunk (2.2.0), revision: 7885.
Back port to 2.1.1, revision: 7886.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:02:25 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink