wood burning stoves*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 9343
    
111

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MDB java lang IllegalStateException: Session was invalidated
 
Similar Threads
IllegalStateException
how do i compare row by row
Persistent Messages, What heppens if a system is started!
I think one of my installation of tomcat has been corrupted????
how to delay MDB?