Bug 378170

Summary: Known issue: Application managed persistence unit is not the same as the container managed session on WLS
Product: z_Archived Reporter: Kevin Yuan <kevin.yuan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P4 CC: petros.splinakis, tom.ware
Version: unspecifiedKeywords: test
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kevin Yuan CLA 2012-05-01 11:58:31 EDT
The jpa test "org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testApplicationManagedInServer" failed on WLS 10.3.6/12.1.1 with the same exceptions:

Application managed persistence unit is not the same as the container managed session. Deployment is broken.eclipselink-advanced-modelfile:/net/ottvm002.ca.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/beahome-10.3.6patch/wlserver_10.3/samples/domains/mydomain/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar_default != file:/net/ottvm002.ca.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/beahome-10.3.6patch/wlserver_10.3/samples/domains/mydomain/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar_default

junit.framework.AssertionFailedError: Application managed persistence unit is not the same as the container managed session. Deployment is broken.eclipselink-advanced-modelfile:/net/ottvm002.ca.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/beahome-10.3.6patch/wlserver_10.3/samples/domains/mydomain/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar_default != file:/net/ottvm002.ca.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/beahome-10.3.6patch/wlserver_10.3/samples/domains/mydomain/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar_default
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testApplicationManagedInServer(EntityManagerJUnitTestSuite.java:5136)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:662)
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.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
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 $Proxy68.runTest(Unknown Source)
Comment 1 Petros Splinakis CLA 2015-04-20 07:17:43 EDT
Fixed as part of 455313.
Also introduced 454477 for investigating a better solution.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:34:01 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink