Session already invalidated
Hi all! I'm a newbie user of Axis! I'm running a .jws webservice with Axis 1.4 and Tomcat 4. Checking tomcat's logfiles, there's an error message that keeps appearing (see bellow). I tried to research about it, and all I found was related to the webservice scope being specificed to session instead of application or so, like: parameter name=scope value=session/ However, I believe this kind of configuration is done with WSDD files... Since I'm deploying a .jws directly, I have no such descriptor file. Therefore, how can this error be happening as I'm not defining a specific scope anywhere (and I assume the default behaviour is being applied, which is probably not session)? Thanks in advance Error message: IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:953) at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:171) at org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43) at org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:658) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:607) at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:793) at org.apache.catalina.session.StandardManager.run(StandardManager.java:870) at java.lang.Thread.run(Thread.java:534) -- View this message in context: http://old.nabble.com/Session-already-invalidated-tp26440187p26440187.html Sent from the Axis - User mailing list archive at Nabble.com.
Axis tomcat Session already invalidated
Hi all, My client can send requests to web-service. After some time of inactivity, this exception is thrown. 2005-11-25 16:00:48 StandardManager[/axis] Session event listener threw exception java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:925) at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:124) at org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43) at org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:623) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:572) at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:746) at org.apache.catalina.session.StandardManager.run(StandardManager.java:823) at java.lang.Thread.run(Thread.java:534) -- Can anyone explains to me what this error means and how can I solve it? Thanks
Re: Axis tomcat Session already invalidated
Sessions can be invalidated automatically after a max time of inactivity. Check sessions api to set that max time manually. NaStY On Fri, 25 Nov 2005, Nuno Martins wrote: Hi all, My client can send requests to web-service. After some time of inactivity, this exception is thrown. 2005-11-25 16:00:48 StandardManager[/axis] Session event listener threw exception java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:925) at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:124) at org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43) at org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:623) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:572) at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:746) at org.apache.catalina.session.StandardManager.run(StandardManager.java:823) at java.lang.Thread.run(Thread.java:534) -- Can anyone explains to me what this error means and how can I solve it? Thanks
Re: Axis tomcat Session already invalidated
Hi, The problem is that my web-service only receives a request and return a String; My client, sends a request and write server response. How can server says that session is invalidated if there isn't any access to web-service in that moment? Thanks nastytweety wrote: Sessions can be invalidated automatically after a max time of inactivity. Check sessions api to set that max time manually. NaStY On Fri, 25 Nov 2005, Nuno Martins wrote: Hi all, My client can send requests to web-service. After some time of inactivity, this exception is thrown. 2005-11-25 16:00:48 StandardManager[/axis] Session event listener threw exception java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:925) at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:124) at org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43) at org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:623) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:572) at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:746) at org.apache.catalina.session.StandardManager.run(StandardManager.java:823) at java.lang.Thread.run(Thread.java:534) -- Can anyone explains to me what this error means and how can I solve it? Thanks --
Re: Axis tomcat Session already invalidated
Hi, Did you set your scope to session like that parameter name=scope value=session/ ??? If so, when your client call your web-service it is creating a new session you keep alive this session until you close your client and after a while doing nothing your session is invalidated. Maybe you can define this parameter as an application, it means your web-service will be instanciate only once (singleton) or you can delete this line and live this parameter by default and create a new instance for each call. I hope I have been helpful. Best regards, Camille Hi, The problem is that my web-service only receives a request and return a String; My client, sends a request and write server response. How can server says that session is invalidated if there isn't any access to web-service in that moment? Thanks nastytweety wrote: Sessions can be invalidated automatically after a max time of inactivity. Check sessions api to set that max time manually. NaStY On Fri, 25 Nov 2005, Nuno Martins wrote: Hi all, My client can send requests to web-service. After some time of inactivity, this exception is thrown. 2005-11-25 16:00:48 StandardManager[/axis] Session event listener threw exception java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:925) at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:124) at org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43) at org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:623) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:572) at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:746) at org.apache.catalina.session.StandardManager.run(StandardManager.java:823) at java.lang.Thread.run(Thread.java:534) -- Can anyone explains to me what this error means and how can I solve it? Thanks --