Hi,
While using TopLink, we occasionally get the following exception:
Exception [TOPLINK-7001] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.ValidationException
Exception Description: You must login to the ServerSession before acquiring ClientSessions.
at oracle.toplink.exceptions.ValidationException.loginBeforeAllocatingClientSessions(ValidationException.java:800)
at oracle.toplink.threetier.ServerSession.acquireClientSession(ServerSession.java:310)
at oracle.toplink.threetier.ServerSession.acquireClientSession(ServerSession.java:273)
at oracle.toplink.threetier.ServerSession.acquireUnitOfWork(ServerSession.java:369)
at oracle.toplink.transaction.AbstractTransactionController.getActiveUnitOfWork(AbstractTransactionController.java:250)
at oracle.toplink.publicinterface.Session.getActiveUnitOfWork(Session.java:1110)
at oracle.toplink.util.SessionFactory.acquireUnitOfWork(SessionFactory.java:194)
at oracle.toplink.util.SessionFactory.acquireUnitOfWork(SessionFactory.java:184)
at com.xxxxxxx.rose.model.common.facades.DocumentFacadeBean.createDocument(DocumentFacadeBean.java:113)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava.lang.Object;(Unknown Source)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
[/pre]
Could anyone give me a clue as to why this might be happening? Normally, that same code works fine. We rarely get this exception, but we get it.
The Application Server is OAS 10.1.3.1. We use EJB3 stateless beans.
Best regards,
Bisser