IllegalStateException: Session was invalidated when doing invalidation in OC4J cluster

(Doc ID 393149.1)

Last updated on DECEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version to [Release AS10gR3]
Information in this document applies to any platform.
***Checked for relevance on 28-Sep-2015***


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 (].
server.http.EvermindHttpSession.getId( at
com.evermind[Oracle Containers for J2EE 10g (].
server.http.JGroupHttpSession.invalidate( at
mypackage.EndAction.execute( 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");



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