• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MDB java lang IllegalStateException: Session was invalidated

 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic