users@glassfish.java.net

RE: Re: javax.ejb.NoSuchObjectLocalException: Invalid Session Key

From: Markus Karg <karg_at_quipsy.de>
Date: Sat, 14 Mar 2009 10:40:34 +0100

So what is the bug in my code and how to fix it? My code just opens a session at program start and closes it at session end. What could my code do that creates this condition?

> -----Original Message-----
> From: Marina.Vatkina_at_Sun.COM [mailto:Marina.Vatkina_at_Sun.COM]
> Sent: Samstag, 14. März 2009 02:16
> To: users_at_glassfish.dev.java.net
> Subject: Re: javax.ejb.NoSuchObjectLocalException: Invalid Session Key
>
> Hi Markus,
>
> This exception usually happens when there was an error condition that
> cause the
> destruction of the SFSB, but the user continues to use the same
> reference.
>
> HTH,
> -marina
>
> Markus Karg wrote:
> > One of our customers finds this exception in his server.log
> (GlassFish
> > v2ur2). What is the reason and how to fix it?
> >
> >
> >
> > [#|2009-03-12T10:19:28.684+0100|SEVERE|sun-
> appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=150;_Threa
> dName=p:
> > thread-pool-1; w:
> > 245;_RequestID=59f92440-e68a-4dfe-a1e4-aa6174f1f968;|NRU-
> de.quipsy.sessions.datebook.DatebookViewerBean:
> > Cannot load from BACKUPSTORE FOR Key:
> > <c8900a0600501f-ffffffffb36757c4-14>|#]
> >
> >
> >
> > [#|2009-03-12T10:19:28.684+0100|SEVERE|sun-
> appserver9.1|javax.enterprise.resource.corba|_ThreadID=150;_ThreadName=
> p:
> > thread-pool-1; w:
> > 245;_RequestID=59f92440-e68a-4dfe-a1e4-aa6174f1f968;|IOP5011:
> > Ausnahmefehler beim Abrufen des Servant: [{0}]
> >
> > javax.ejb.NoSuchObjectLocalException: Invalid Session Key (
> > c8900a0600501f-ffffffffb36757c4-14)
> >
> > at
> >
> com.sun.ejb.containers.StatefulSessionContainer._getContextForInstance(
> StatefulSessionContainer.java:2138)
> >
> > at
> >
> com.sun.ejb.containers.StatefulSessionContainer.getEJBObjectImpl(Statef
> ulSessionContainer.java:2176)
> >
> > at
> >
> com.sun.ejb.containers.BaseContainer.getTargetObject(BaseContainer.java
> :1104)
> >
> > at
> >
> com.sun.enterprise.iiop.POARemoteReferenceFactory.preinvoke(POARemoteRe
> ferenceFactory.java:464)
> >
> > at
> >
> com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorImpl_NR_USM.internalGetSe
> rvant(POAPolicyMediatorImpl_NR_USM.java:93)
> >
> > at
> >
> com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase.getInvocationServant
> (POAPolicyMediatorBase.java:130)
> >
> > at
> >
> com.sun.corba.ee.impl.oa.poa.POAImpl.getInvocationServant(POAImpl.java:
> 1652)
> >
> > at
> >
> com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServ
> ant(CorbaServerRequestDispatcherImpl.java:352)
> >
> > at
> >
> com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServ
> antWithPI(CorbaServerRequestDispatcherImpl.java:386)
> >
> > at
> >
> com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatc
> h(CorbaServerRequestDispatcherImpl.java:224)
> >
> > at
> >
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRe
> quest(CorbaMessageMediatorImpl.java:1846)
> >
> > at
> >
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(C
> orbaMessageMediatorImpl.java:1706)
> >
> > at
> >
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(Cor
> baMessageMediatorImpl.java:1088)
> >
> > at
> >
> com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callba
> ck(RequestMessage_1_2.java:223)
> >
> > at
> >
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(C
> orbaMessageMediatorImpl.java:806)
> >
> > at
> >
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaM
> essageMediatorImpl.java:563)
> >
> > at
> >
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMes
> sageMediatorImpl.java:2567)
> >
> > at
> >
> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.ru
> n(ThreadPoolImpl.java:555)
> >
> > |#]
> >
> >
> >
> > Thanks!
> >
> >
> >
> > Markus Karg
> >
> > Leiter Implementierung & Design
> >
> >
> >
> > _
> > _
> >
> >
> >
> > * *
> >
> > *QUIPSY QUALITY GmbH & Co. KG*
> >
> > Ein Unternehmen der MES-Gruppe
> >
> > Stuttgarter Strasse 23 | D-75179 Pforzheim
> >
> > Telefon: +49(0)7231/9189-52 | Telefax: +49(0)7231/9189-59
> >
> > E-Mail: karg_at_quipsy.de <mailto:karg_at_quipsy.de> | Internet:
> > www.quipsy.de <http://www.quipsy.de/>
> >
> > _
> > _
> >
> >
> >
> > Geschäftsführer: Nils Schroeder
> >
> > Registergericht Mannheim HRA 701214 I USt-IdNr.: DE256549073
> >
> > Telefon: +49(0)7231-9189-0 | Telefax: +49(0)7231-9189-59 I E-
> Mail:
> > info_at_quipsy.de <mailto:info_at_quipsy.de>
> >
> >
> >
> > Diese E-Mail enthält persönliche, vertrauliche und vor Weitergabe
> > geschützte Informationen und ist ausschließlich für den vorgesehenen
> > o.g. Empfänger (Adressaten) bestimmt. Falls Sie diese E-Mail
> > versehentlich erhalten haben und nicht der vorgesehene Empfänger
> sind,
> > bitten wir Sie, die E-Mail und deren Anhänge nicht aufzubewahren,
> nicht
> > zu vervielfältigen, nicht zu nutzen und nicht weiterzugeben. Bitte
> > informieren Sie uns als Absender über diesen Zustellungsfehler und
> > löschen Sie die E-Mail.
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net