Bug 296634 - Two tests in jpa.lob.LobJUnitTestCase failed on all non-Oracle DB against WLS
Summary: Two tests in jpa.lob.LobJUnitTestCase failed on all non-Oracle DB against WLS
Status: CLOSED INVALID
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: test
Depends on:
Blocks:
 
Reported: 2009-12-01 16:06 EST by Kevin Yuan CLA
Modified: 2022-06-09 10:36 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2009-12-01 16:06:20 EST
These are not regressions because this is the first time to run on this
configuration. They all failed on DB2 9.5, SQL Server 2008, and MySQL
5.1.39 with the similar exceptions, the following error messages are from MySQL.
All WLS version (10.3.0, 10.3.1 and 10.3.2) got the same errors.

Stack Trace (1st testMerge):
============================
Error during postInvoke.; nested exception is: java.lang.Exception: [EJB:011063]Stateless session beans with bean-managed transactions must commit or rollback their transactions before completing a business method. The method runTest(java.lang.String,java.lang.String,java.util.Properties) of EJB 'TestRunner' either returned or threw an Exception without properly completing a transaction.; nested exception is: java.lang.Exception: [EJB:011063]Stateless session beans with bean-managed transactions must commit or rollback their transactions before completing a business method. The method runTest(java.lang.String,java.lang.String,java.util.Properties) of EJB 'TestRunner' either returned or threw an Exception without properly completing a transaction.

javax.ejb.EJBException: Error during postInvoke.; nested exception is:
java.lang.Exception: [EJB:011063]Stateless session beans with bean-managed transactions must commit or rollback their transactions before completing a business method. The method runTest(java.lang.String,java.lang.String,java.util.Properties) of EJB 'TestRunner' either returned or threw an Exception without properly completing a transaction.; nested exception is: java.lang.Exception: [EJB:011063]Stateless session beans with bean-managed transactions must commit or rollback their transactions before completing a business method. The method runTest(java.lang.String,java.lang.String,java.util.Properties) of EJB 'TestRunner' either returned or threw an Exception without properly completing a transaction.
java.lang.Exception: [EJB:011063]Stateless session beans with bean-managed transactions must commit or rollback their transactions before completing a business method. The method runTest(java.lang.String,java.lang.String,java.util.Properties) of EJB 'TestRunner' either returned or threw an Exception without properly completing a transaction.
at weblogic.ejb.container.manager.StatelessManager.postInvoke(StatelessManager.java:184)
at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:481)
at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:60)
at weblogic.ejb.container.internal.BaseRemoteObject.postInvokeTxRetry(BaseRemoteObject.java:441)
at org.eclipse.persistence.testing.framework.server.TestRunner_q0mh0s_TestRunnerImpl.runTest(TestRunner_q0mh0s_TestRunnerImpl.java:77)
at org.eclipse.persistence.testing.framework.server.TestRunner_q0mh0s_TestRunnerImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
javax.ejb.EJBException: Error during postInvoke.; nested exception is:
java.lang.Exception: [EJB:011063]Stateless session beans with bean-managed transactions must commit or rollback their transactions before completing a business method. The method runTest(java.lang.String,java.lang.String,java.util.Properties) of EJB 'TestRunner' either returned or threw an Exception without properly completing a transaction.; nested exception is: java.lang.Exception: [EJB:011063]Stateless session beans with bean-managed transactions must commit or rollback their transactions before completing a business method. The method runTest(java.lang.String,java.lang.String,java.util.Properties) of EJB 'TestRunner' either returned or threw an Exception without properly completing a transaction.
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:109)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:91)
at $Proxy0.runTest(Unknown Source)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareClient(JUnitTestCase.java:452)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:426)
Caused by: java.lang.Exception: [EJB:011063]Stateless session beans with bean-managed transactions must commit or rollback their transactions before completing a business method. The method runTest(java.lang.String,java.lang.String,java.util.Properties) of EJB 'TestRunner' either returned or threw an Exception without properly completing a transaction.
at weblogic.ejb.container.manager.StatelessManager.postInvoke(StatelessManager.java:184)
at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:481)
at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:60)
at weblogic.ejb.container.internal.BaseRemoteObject.postInvokeTxRetry(BaseRemoteObject.java:441)
at org.eclipse.persistence.testing.framework.server.TestRunner_q0mh0s_TestRunnerImpl.runTest(TestRunner_q0mh0s_TestRunnerImpl.java:77)
at org.eclipse.persistence.testing.framework.server.TestRunner_q0mh0s_TestRunnerImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Stack Trace (2nd testMerge):
============================
Exception Description: Cannot persist detached object [org.eclipse.persistence.testing.models.jpa.lob.Image@18339a2]. Class> org.eclipse.persistence.testing.models.jpa.lob.Image Primary Key> [5001]

javax.persistence.EntityExistsException:
Exception Description: Cannot persist detached object [org.eclipse.persistence.testing.models.jpa.lob.Image@18339a2].
Class> org.eclipse.persistence.testing.models.jpa.lob.Image Primary Key> [5001]
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.persist(EntityManagerImpl.java:371)
at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:93)
at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:91)
at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:80)
at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:26)
at $Proxy121.persist(Unknown Source)
at org.eclipse.persistence.testing.tests.jpa.lob.LobJUnitTestCase.testMerge(LobJUnitTestCase.java:168)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:460)
at org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:55)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy123.runTest(Unknown Source)
at org.eclipse.persistence.testing.framework.server.TestRunner_q0mh0s_TestRunnerImpl.runTest(TestRunner_q0mh0s_TestRunnerImpl.java:61)
at org.eclipse.persistence.testing.framework.server.TestRunner_q0mh0s_TestRunnerImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: Exception [EclipseLink-7231] (Eclipse Persistence Services - 2.0.0.qualifier): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Cannot persist detached object [org.eclipse.persistence.testing.models.jpa.lob.Image@18339a2].
Class> org.eclipse.persistence.testing.models.jpa.lob.Image Primary Key> [5001]
at org.eclipse.persistence.exceptions.ValidationException.cannotPersistExistingObject(ValidationException.java:2364)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerNotRegisteredNewObjectForPersist(UnitOfWorkImpl.java:4196)
at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.registerNotRegisteredNewObjectForPersist(RepeatableWriteUnitOfWork.java:424)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerNewObjectForPersist(UnitOfWorkImpl.java:4154)
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.persist(EntityManagerImpl.java:368)
Comment 1 Tom Ware CLA 2009-12-03 10:13:20 EST
This is an issue with the test framework.  The error discusses issues with the StatelessSessionBean setup.  No other diagnosis of this issue is possible until that issue is resolved.
Comment 2 Kevin Yuan CLA 2009-12-03 15:36:32 EST
Passed on clean DB (DB2/MySQL) on WLS 10.3.2/10.3.1.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:36:23 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink