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
>>
>>
>>
>>
>>
>
>
--