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

Last updated on DECEMBER 05, 2016

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.
***Checked for relevance on 28-Sep-2015***

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");

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms