-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: IllegalStateException: Inactive logical session handle call
PostPosted: Wed Jan 25, 2006 8:48 am 
Newbie

Joined: Thu Jan 13, 2005 4:04 am
Posts: 12
Location: Estonia
Hi,

Hibernate ver. 2.1.6
Oracle 9.2.0.1.0
Weblogic 8.1 SP3


During load-tests of application following exception sometimes occures:
Code:
Caused by: java.lang.IllegalStateException: Inactive logical session handle called
    at net.sf.hibernate.jca.ManagedConnectionImpl.getSession(ManagedConnectionImpl.java:357)
...


Have anybody an idea what can cause this? I first thought, that may be it's connected with lack of connections in servers's JDBC pool but monitoring page of pool shows, that maximum connections have never been exceeded.

I tried to get an idea through reviewing hibernate's sources but it was not quite successful... Method from class net.sf.hibernate.jca.ManagedConnectionImpl throwing this error is following:
Code:
   Session getSession(JCASessionImpl handle) {
      // JCA 1.0, 5.5.4
      // Ensure that there is at most one connection handle associated
      // actively with a ManagedConnection instance. [skiped] Any operations
      // on the ManagedConnection from any previously created connection
      // handles should result in an application level exception.

      // this might be pretty bad for performance, profile and find a
      // better way if it is really bad
      synchronized (handles) {
         if ( handles.size() > 0 && handles.get(0) == handle) {
            return session;
         }
         else {
            final String message = "Inactive logical session handle called";
            // cannot throw HibernateException because not all Session
            // methods throws it. This is incompatible with the spec!
            throw new IllegalStateException(message);
         }
      }
   }

Any idea or suggestions about potential cause of this error?
Code:


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.