Java – error getting client session in TopLink
•
Java
I face a special problem Here is the wrong stack trace I got Please help.
@H_ 502_ 8@
@H_ 502_ 8@
Exception [TOPLINK-7001] (Oracle TopLink - 11g Release 1 (11.1.1.1.0) (Build 090527)): oracle.toplink.exceptions.ValidationException Exception Description: You must login to the ServerSession before acquiring ClientSessions. at oracle.toplink.exceptions.ValidationException.loginBeforeAllocatingClientSessions(ValidationException.java:1155) at oracle.toplink.threetier.ServerSession.acquireClientSession(ServerSession.java:313) at oracle.toplink.threetier.ServerSession.acquireClientSession(ServerSession.java:303) at com.ofss.elcm.domain.Session.fetchClientSession(Session.java:113) at com.ofss.elcm.domain.Session.acquireUnitOfWork(Session.java:132)
Solution
Eclipse link has the ability to check for classloader changes when the application is redeployed This can cause problems when calling the session manager for a specific session from the web container and EJB container
@H_ 502_ 8@
Make sure to disable this classloader check using API getsession (null, sessionname, classloader, true, false) or the same method with a longer signature If you want to construct xmlsessionconfigloader directly, you can use xmlsessionconfigloader Setshouldcheckclassloader (false) disables classloader checking directly@ H_ 502_ 8@
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码