Bug 320504 - jpa.fetchgroups.SimpleSerializeFetchGroupTests.simpleSerializeAndMerge failed on WAS
Summary: jpa.fetchgroups.SimpleSerializeFetchGroupTests.simpleSerializeAndMerge failed...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin Yuan CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2010-07-21 09:25 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:02 EDT (History)
0 users

See Also:


Attachments
patch for bug fix (2.04 KB, patch)
2010-07-21 10:55 EDT, Kevin Yuan CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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