My Oracle Support Banner

IllegalStateException: Session was invalidated when doing invalidation in 10.1.3.0.0 OC4J cluster (Doc ID 393149.1)

Last updated on JUNE 22, 2018

Applies to:

Oracle Containers for J2EE - Version 10.1.3.0.0 to 10.1.3.2.0 [Release AS10gR3]
Information in this document applies to any platform.

Symptoms

In a 10.1.3 clustered environment, when accessing normally to a web application, the user receives some errors caused by Java exceptions:

500 Internal Server Error
java.lang.IllegalStateException: Session was invalidated at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)].
server.http.EvermindHttpSession.getId(EvermindHttpSession.java:473) at
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)].
server.http.JGroupHttpSession.invalidate(JGroupHttpSession.java:285) at
mypackage.EndAction.execute(EndAction.java:33) at


This happens in Oracle AS 10.1.3 when in previous version 9.0.4, the application code worked correctly.

By reviewing the code it has been tracked down to Servlet listener sessionDestroyed method that executes:

public void sessionDestroyed(HttpSessionEvent event).

session = event.getSession();
String data  = (String) session.getAttribute("attname");

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.