Coherence*Web: "java.lang.IllegalArgumentException: unknown user type: com.tangosol.net.internal.SessionExpiryExtractor"

(Doc ID 1328876.1)

Last updated on NOVEMBER 21, 2016

Applies to:

Oracle Coherence - Version 3.5.3 and later
Information in this document applies to any platform.
***Checked for relevance on 24-Jan-2014***

Symptoms

With a brand new installation of WebLogic 10.3.0.0 (Patch 6W2W) and Coherence 3.5.3b465, the following exceptions are seen in the log:

1) java.lang.IllegalArgumentException: unknown user type: com.tangosol.net.internal.SessionExpiryExtractor:

2011-06-01 15:09:29.529/320.805 Oracle Coherence GE 3.5.3/465 <Error> (thread=SessionReaperDaemon[cp_ui_paymentinitiation!cp_ui_paymentinitiation_web, 2011-06-01 15:05:29.464], member=2): An exception occurred on Thread[SessionReaperDaemon[cp_ui_paymentinitiation!cp_ui_paymentinitiation_web, 2011-06-01 15:05:29.464],5,SessionReaperDaemon[cp_ui_paymentinitiation!cp_ui_paymentinitiation_web, 2011-06-01 15:05:29.464]] while processing the task: com.tangosol.coherence.servlet.SessionHelper$SessionReaperDaemon$bank@32e579
2011-06-01 15:09:29.529/320.805 Oracle Coherence GE 3.5.3/465 <Error> (thread=SessionReaperDaemon[cp_ui_paymentinitiation!cp_ui_paymentinitiation_web, 2011-06-01 15:05:29.464], member=2): java.lang.IllegalArgumentException: unknown user type: com.tangosol.net.internal.SessionExpiryExtractor
at com.tangosol.io.pof.ConfigurablePofContext.getUserTypeIdentifier(ConfigurablePofContext.java:400)
at com.tangosol.io.pof.ConfigurablePofContext.getUserTypeIdentifier(ConfigurablePofContext.java:389)
at com.tangosol.io.pof.PofBufferWriter.writeObject(PofBufferWriter.java:1432)
at com.tangosol.io.pof.PofBufferWriter$UserTypeWriter.writeObject(PofBufferWriter.java:2092)
at com.tangosol.util.filter.ExtractorFilter.writeExternal(ExtractorFilter.java:174)
at com.tangosol.util.filter.ComparisonFilter.writeExternal(ComparisonFilter.java:238)



2) java.lang.IllegalStateException: no usable session model for id=v1wkkZZjs5jagPBKDooH9H34beKx2JlOBNtwOvPcvqlgHYLD9S0S:

<Jun 1, 2011 3:10:42 PM EDT> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.IllegalStateException: no usable session model for id=v1wkkZZjs5jagPBKDooH9H34beKx2JlOBNtwOvPcvqlgHYLD9S0S.
java.lang.IllegalStateException: no usable session model for id=v1wkkZZjs5jagPBKDooH9H34beKx2JlOBNtwOvPcvqlgHYLD9S0S
at com.tangosol.coherence.servlet.api23.HttpSessionImpl.ensureUsableModel(HttpSessionImpl.java:486)
at weblogic.servlet.internal.session.CoherenceWebSessionData$HttpSessionImpl.ensureActiveModel(CoherenceWebSessionData.java:448)
at com.tangosol.coherence.servlet.api23.HttpSessionImpl.getAttribute(HttpSessionImpl.java:81)
at weblogic.servlet.internal.session.CoherenceWebSessionData$HttpSessionImpl.getAttribute(CoherenceWebSessionData.java:425)
at weblogic.servlet.internal.session.CoherenceWebSessionData.getAttribute(CoherenceWebSessionData.java:347)
Truncated. see log file for complete stacktrace



NOTE:  coherence-session-thread-locking to true in coherence-web.xml per <Note 1328850.1>



Coherence start up parameters are as follows:

java -Xms512m -Xmx512m -cp C:/coherence/coherence-java-v3.5.3b465/coherence/lib/coherence.jar;C:/Docs/coherence-web-spi.war;C:/Docs/cp_ui_common_cache.jar -Dtangosol.coherence.cacheconfig=C:/Docs/session-cache-config.xml -Dtangosol.pof.enabled=true -Dtangosol.pof.config=file:C:/Docs/pof-config.xml -Dtangosol.coherence.override=C:/Docs/tangosol-coherence-override.xml -Dtangosol.coherence.session.localstorage=true -Dtangosol.coherence.distributed.localstorage=true -Dtangosol.coherence.wka=B0026B9B89B98.corp.bank.com com.tangosol.net.DefaultCacheServer



startWebLogic.cmd  Java options are as follows:

set JAVA_OPTIONS=%JAVA_OPTIONS% -Dcoherence.enable.sessioncontext=true -Dtangosol.coherence.session.localstorage=false -Dtangosol.coherence.distributed.localstorage=false -Dtangosol.coherence.cacheconfig=C:/Docs/session-cache-config.xml -Dtangosol.pof.enabled=true -Dtangosol.pof.config=file:C:/Docs/pof-config.xml -Dtangosol.coherence.override=C:/Docs/tangosol-coherence-override.xml -Dtangosol.coherence.wka=B0026B9B89B98.corp.bank.com



Browser log  shows the following error:

Error 500--Internal Server Error
java.lang.IllegalStateException: Failed to retrieve session: no usable session model for id=v1wkkZZjs5jagPBKDooH9H34beKx2JlOBNtwOvPcvqlgHYLD9S0S
at weblogic.servlet.security.internal.SecurityModule.getUserSession(SecurityModule.java:486)
at weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:81)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2116)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)



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