My Oracle Support Banner

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

Last updated on JUNE 22, 2018

Applies to:

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


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





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

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