My Oracle Support Banner

ClassCastException Occurs in ReleaseSessionsListener Class when HTTP Session Sharing is Enabled (Doc ID 1076402.1)

Last updated on FEBRUARY 20, 2018

Applies to:

Oracle WebLogic Portal - Version 9.2.0 and later
Information in this document applies to any platform.
ClassCastException Occurs in ReleaseSessionsListener, HTTP Session Sharing is Enabled, WLP


Symptoms

Enabling HTTP session sharing via the weblogic.xml file with WebLogic Portal (WLP):

<wls:sharing-enabled>true</wls:sharing-enabled>


can cause ClassCastExceptions in the ReleaseSessionsListener class, during runtime:

<Warning> <HTTP> <BEA-101162> <User defined listener com.bea.wsrp.consumer.markup.ReleaseSessionsListener failed: java.lang.ClassCastException: com.bea.wsrp.consumer.markup.SessionContext.
java.lang.ClassCastException: com.bea.wsrp.consumer.markup.SessionContext
at com.bea.wsrp.consumer.markup.SessionManager.getSessionStore(SessionManager.java:129)
at com.bea.wsrp.consumer.markup.SessionManager.releaseSessions(SessionManager.java:88)
at com.bea.wsrp.consumer.markup.ReleaseSessionsListener.sessionDestroyed(ReleaseSessionsListener.java:28)
at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:265)
at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:278)
at weblogic.servlet.internal.session.SessionData.remove(SessionData.java:873)
at weblogic.servlet.internal.session.ReplicatedSessionData.remove(ReplicatedSessionData.java:466)
at weblogic.servlet.internal.session.ReplicatedSessionContext.invalidateSession(ReplicatedSessionContext.java:454)
at weblogic.servlet.internal.session.SessionContext$InvalidationAction.run(SessionContext.java:944)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.session.SessionContext$SessionInvalidator.cleanupExpiredSessions(SessionContext.java:862)
at weblogic.servlet.internal.session.SessionContext$SessionInvalidator$1.run(SessionContext.java:794)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.session.SessionContext$SessionInvalidator.timerExpired(SessionContext.java:788)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

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