axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nicolas de loof (JIRA)" <>
Subject [jira] Created: (AXIS-2206) use of session.getAttribute on HttpSession expiration
Date Fri, 02 Sep 2005 06:44:12 GMT
use of session.getAttribute on HttpSession expiration

         Key: AXIS-2206
     Project: Apache Axis
        Type: Bug
  Components: Basic Architecture  
    Versions: 1.2.1    
 Environment: tomcat 4.1.30 / Windows 2000 / JDK sun 1.4.2_06
 Reporter: nicolas de loof
    Priority: Minor

from a Tomcat server runing Axis 1.2.1, I get stack trace on console :

java.lang.IllegalStateException: "getAttribute": Session déjà invalidée
   at org.apache.catalina.session.StandardSession.getAttribute(
   at org.apache.catalina.session.StandardSessionFacade.getAttribute(
   at org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(
   at org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(
   at org.apache.catalina.session.StandardSession.expire(
   at org.apache.catalina.session.StandardSession.expire(
   at org.apache.catalina.session.StandardManager.processExpires(

In AxisHTTPSessionListener, on sessionDestroyed event, static destroySession() is called.
It uses getAttribute on session to search for AXIS_SESSION_MARKER. As session is currently
invalidated, this exception occurs. 

It may be possible to use a HttpSessionBindingListener having references to ServiceLifecycle
instances and call destroy when session expires/invalidates.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message