Community
Participate
Working Groups
The test is in org.eclipse.persistence.testing.tests.jpa.proxyauthentication.ProxyAuthenticationServerTestSuite.java, it seems that it's related to changes Chris made on Oct 18th as for fix of bug 323370. The exception is: java.lang.NullPointerException at org.eclipse.persistence.internal.sessions.AbstractSession.writesCompleted(AbstractSession.java:3393) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.writesCompleted(UnitOfWorkImpl.java:5568) at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.writeChanges(RepeatableWriteUnitOfWork.java:421) at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush(EntityManagerImpl.java:742) at org.eclipse.persistence.internal.jpa.EJBQueryImpl.performPreQueryFlush(EJBQueryImpl.java:1237) at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:430) at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:714) at org.eclipse.persistence.testing.tests.jpa.proxyauthentication.ProxyAuthenticationServerTestSuite.testUpdateWithProxy(ProxyAuthenticationServerTestSuite.java:231) at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:534) at org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87) at com.oracle.pitchfork.util.aop.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:15) at com.oracle.pitchfork.aop.internal.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:90) at com.oracle.pitchfork.aop.internal.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:74) at com.oracle.pitchfork.aop.internal.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:58) at com.oracle.pitchfork.aop.internal.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:78) at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34) at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
Created attachment 181408 [details] proposed fix
Checked into 2.2, revision 8382 -AbstractSession's writesCompleted now checks if the value from getAccessor() is null before calling writesCompleted on it. This would be null only when an ExclusiveIsolatedClientSession is used, and flush is called without any changes being made.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink