java.lang.RuntimeException: java.io.NotSerializableException: org.terracotta.modules.tomcat.tomcat_6_0.SessionRequest60

Terracotta Project Issue Tracker | Hung Huynh | 5 years ago
  1. 0

    We have a known issue with Tomcat valve org.apache.catalina.valves.CometConnectionManagerValve This valve stores Http Servlet requests in session object, which if clustered with Terracotta, requests would have to be serialized. Hence the stack trace {code} SEVERE: An exception or error occurred in the container during the request processing java.lang.RuntimeException: java.io.NotSerializableException: org.terracotta.modules.tomcat.tomcat_6_0.SessionRequest60 at com.terracotta.session.SerializedAttributeStore$SerializedAttribute.<init>(SerializedAttributeStore.java:98) at com.terracotta.session.SerializedAttributeStore$SerializedAttributeWithCache.<init>(SerializedAttributeStore.java:141) at com.terracotta.session.SerializedAttributeStore.put(SerializedAttributeStore.java:60) at com.terracotta.session.SessionData.bindAttribute(SessionData.java:455) at com.terracotta.session.SessionData.setAttributeReturnOld(SessionData.java:322) at com.terracotta.session.SessionData.setAttribute(SessionData.java:313) at org.apache.catalina.valves.CometConnectionManagerValve.invoke(CometConnectionManagerValve.java:265) at org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.tcInvoke(SessionValve55.java:100) at org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.invoke(SessionValve55.java:85) at org.terracotta.session.ModernTomcatSessionValve.invoke(ModernTomcatSessionValve.java:66) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:886) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2256) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.NotSerializableException: org.terracotta.modules.tomcat.tomcat_6_0.SessionRequest60 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) at org.terracotta.cache.serialization.DsoSerializationStrategy.serialize(DsoSerializationStrategy.java:60) at com.terracotta.session.SerializedAttributeStore$SerializedAttribute.<init>(SerializedAttributeStore.java:96) ... 20 more {code} There is no workaround. This issue here is for documentation purpose

    Terracotta Project Issue Tracker | 5 years ago | Hung Huynh
    java.lang.RuntimeException: java.io.NotSerializableException: org.terracotta.modules.tomcat.tomcat_6_0.SessionRequest60
  2. 0

    We have a known issue with Tomcat valve org.apache.catalina.valves.CometConnectionManagerValve This valve stores Http Servlet requests in session object, which if clustered with Terracotta, requests would have to be serialized. Hence the stack trace {code} SEVERE: An exception or error occurred in the container during the request processing java.lang.RuntimeException: java.io.NotSerializableException: org.terracotta.modules.tomcat.tomcat_6_0.SessionRequest60 at com.terracotta.session.SerializedAttributeStore$SerializedAttribute.<init>(SerializedAttributeStore.java:98) at com.terracotta.session.SerializedAttributeStore$SerializedAttributeWithCache.<init>(SerializedAttributeStore.java:141) at com.terracotta.session.SerializedAttributeStore.put(SerializedAttributeStore.java:60) at com.terracotta.session.SessionData.bindAttribute(SessionData.java:455) at com.terracotta.session.SessionData.setAttributeReturnOld(SessionData.java:322) at com.terracotta.session.SessionData.setAttribute(SessionData.java:313) at org.apache.catalina.valves.CometConnectionManagerValve.invoke(CometConnectionManagerValve.java:265) at org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.tcInvoke(SessionValve55.java:100) at org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.invoke(SessionValve55.java:85) at org.terracotta.session.ModernTomcatSessionValve.invoke(ModernTomcatSessionValve.java:66) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:886) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2256) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.NotSerializableException: org.terracotta.modules.tomcat.tomcat_6_0.SessionRequest60 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) at org.terracotta.cache.serialization.DsoSerializationStrategy.serialize(DsoSerializationStrategy.java:60) at com.terracotta.session.SerializedAttributeStore$SerializedAttribute.<init>(SerializedAttributeStore.java:96) ... 20 more {code} There is no workaround. This issue here is for documentation purpose

    Terracotta Project Issue Tracker | 5 years ago | Hung Huynh
    java.lang.RuntimeException: java.io.NotSerializableException: org.terracotta.modules.tomcat.tomcat_6_0.SessionRequest60
  3. 0

    Why am I getting error while trying to access a portal on Liferay 4.2.1?

    Stack Overflow | 5 years ago | Sergiu
    java.io.NotSerializableException: com.liferay.portal.kernel.servlet.PortletSessionTracker
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to run a job with OutputTags

    Stack Overflow | 2 months ago | Haden Hooyeon Lee
    java.lang.IllegalArgumentException: unable to serialize tmp.dataflow.experimental.TestSideOutput$Filter@6986852
  6. 0

    Spark Streaming and Avro Objects

    Google Groups | 4 years ago | Craig Vanderborgh
    java.io.NotSerializableException: org.foo.avro.enriched_event
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.NotSerializableException

    org.terracotta.modules.tomcat.tomcat_6_0.SessionRequest60

    at java.io.ObjectOutputStream.writeObject0()
  2. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
    2. java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
    3. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
    4. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
    4 frames
  3. org.terracotta.cache
    DsoSerializationStrategy.serialize
    1. org.terracotta.cache.serialization.DsoSerializationStrategy.serialize(DsoSerializationStrategy.java:60)
    1 frame
  4. com.terracotta.session
    SessionData.setAttribute
    1. com.terracotta.session.SerializedAttributeStore$SerializedAttribute.<init>(SerializedAttributeStore.java:96)
    2. com.terracotta.session.SerializedAttributeStore$SerializedAttributeWithCache.<init>(SerializedAttributeStore.java:141)
    3. com.terracotta.session.SerializedAttributeStore.put(SerializedAttributeStore.java:60)
    4. com.terracotta.session.SessionData.bindAttribute(SessionData.java:455)
    5. com.terracotta.session.SessionData.setAttributeReturnOld(SessionData.java:322)
    6. com.terracotta.session.SessionData.setAttribute(SessionData.java:313)
    6 frames
  5. Glassfish Core
    CometConnectionManagerValve.invoke
    1. org.apache.catalina.valves.CometConnectionManagerValve.invoke(CometConnectionManagerValve.java:265)
    1 frame
  6. org.terracotta.modules
    SessionValve55.invoke
    1. org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.tcInvoke(SessionValve55.java:100)
    2. org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.invoke(SessionValve55.java:85)
    2 frames
  7. org.terracotta.session
    ModernTomcatSessionValve.invoke
    1. org.terracotta.session.ModernTomcatSessionValve.invoke(ModernTomcatSessionValve.java:66)
    1 frame
  8. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    3. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
    4. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    5. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    5 frames
  9. Grizzly HTTP
    NioEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:886)
    2. org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
    3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2256)
    3 frames
  10. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    3. java.lang.Thread.run(Thread.java:662)
    3 frames