This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes MDB  java lang IllegalStateException: Session was invalidated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "MDB  java lang IllegalStateException: Session was invalidated" Watch "MDB  java lang IllegalStateException: Session was invalidated" New topic
Author

MDB java lang IllegalStateException: Session was invalidated

Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
HI

AM MDB is running on OC4J once it drains the input Queue its waiting for new messages in that time am getting "java.lang.IllegalStateException: Session was invalidated". If again I sent some messages to the Queue the MDB getting some time delay and calling the ejbcreate() and the onmessage ..May I know the cause of this ??


java.lang.IllegalStateException: Session was invalidated
08/10/20 11:03:41 at com.evermind.server.http.EvermindHttpSession.invalidate(EvermindHttpSession.java:390)
08/10/20 11:03:41 at com.evermind.server.http.SessionAsyncInvalidateHandler.invalidateSession(SessionAsyncInvalidateHandler.java:178)
08/10/20 11:03:41 at com.evermind.server.http.SessionAsyncInvalidateHandler.run(SessionAsyncInvalidateHandler.java:138)
08/10/20 11:03:41 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
08/10/20 11:03:41 at java.lang.Thread.run(Thread.java:595)
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

ava.lang.IllegalStateException: Session was invalidated
08/10/20 11:03:41 at com.evermind.server.http.EvermindHttpSession.invalidate(EvermindHttpSession.java:390)
08/10/20 11:03:41 at com.evermind.server.http.SessionAsyncInvalidateHandler.invalidateSession(SessionAsyncInvalidateHandler.java:178)


This looks like a HTTP session timeout. And its coming from the com.evermind.server.http.EvermindHttpSession class, which i guess is part of your application. I think you are trying to invalidate a session which is already closed.


[My Blog] [JavaRanch Journal]
Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
No.. I didn't code anything like that..Am connecting an Oracle AQ using Datasource. And the MDB is picking messages from the AQ. Once the AQ is drained the MDB is waiting for new messages that time am getting this message after that If I polled some new message to the AQ the MDB is start working This is not a problem for Me.. But I want to know the cause of this..
[ October 20, 2008: Message edited by: Meet Gaurav ]
 
GeeCON Prague 2014
 
subject: MDB java lang IllegalStateException: Session was invalidated