java.io.NotSerializableException: org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper

Spring JIRA | Shashank Khede | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.io.NotSerializableException while replicating session. Spring security 3.2.5 with tomcat 7.0.42

    Stack Overflow | 2 years ago | Shashank
    java.io.NotSerializableException: org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper
  2. 0

    We are using session replication in tomcat to manage multiple clusters. I am getting below error when I am using spring security 3.2.5. SEVERE: Unable to serialize delta request for sessionid [1E93921A4C9DD4CF69977DE11D7FD497.service.instance01] java.io.NotSerializableException: org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1181) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) at org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.writeExternal(DeltaRequest.java:392) at org.apache.catalina.ha.session.DeltaRequest.writeExternal(DeltaRequest.java:285) at org.apache.catalina.ha.session.DeltaRequest.serialize(DeltaRequest.java:299) at org.apache.catalina.ha.session.DeltaManager.serializeDeltaRequest(DeltaManager.java:623) at org.apache.catalina.ha.session.DeltaManager.requestCompleted(DeltaManager.java:1066) at org.apache.catalina.ha.session.DeltaManager.requestCompleted(DeltaManager.java:1031) at org.apache.catalina.ha.tcp.ReplicationValve.send(ReplicationValve.java:539) at org.apache.catalina.ha.tcp.ReplicationValve.sendMessage(ReplicationValve.java:526) at org.apache.catalina.ha.tcp.ReplicationValve.sendSessionReplicationMessage(ReplicationValve.java:508) at org.apache.catalina.ha.tcp.ReplicationValve.sendReplicationMessage(ReplicationValve.java:421) at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:345) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724)

    Spring JIRA | 2 years ago | Shashank Khede
    java.io.NotSerializableException: org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper
  3. 0

    We are using session replication in tomcat to manage multiple clusters. I am getting below error when I am using spring security 3.2.5. SEVERE: Unable to serialize delta request for sessionid [1E93921A4C9DD4CF69977DE11D7FD497.service.instance01] java.io.NotSerializableException: org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1181) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) at org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.writeExternal(DeltaRequest.java:392) at org.apache.catalina.ha.session.DeltaRequest.writeExternal(DeltaRequest.java:285) at org.apache.catalina.ha.session.DeltaRequest.serialize(DeltaRequest.java:299) at org.apache.catalina.ha.session.DeltaManager.serializeDeltaRequest(DeltaManager.java:623) at org.apache.catalina.ha.session.DeltaManager.requestCompleted(DeltaManager.java:1066) at org.apache.catalina.ha.session.DeltaManager.requestCompleted(DeltaManager.java:1031) at org.apache.catalina.ha.tcp.ReplicationValve.send(ReplicationValve.java:539) at org.apache.catalina.ha.tcp.ReplicationValve.sendMessage(ReplicationValve.java:526) at org.apache.catalina.ha.tcp.ReplicationValve.sendSessionReplicationMessage(ReplicationValve.java:508) at org.apache.catalina.ha.tcp.ReplicationValve.sendReplicationMessage(ReplicationValve.java:421) at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:345) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724)

    Spring JIRA | 2 years ago | Shashank Khede
    java.io.NotSerializableException: org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    spring security custom authentication module, opensso and tomcat clusters

    Oracle Community | 6 years ago | 804089
    java.io.NotSerializableException: com.iplanet.sso.providers.dpro.SSOTokenImpl
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.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper

    at java.io.ObjectOutputStream.writeObject0()
  2. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1181)
    2. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541)
    3. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506)
    4. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
    5. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
    6. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541)
    7. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506)
    8. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
    9. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
    10. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541)
    11. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506)
    12. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
    13. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
    14. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
    14 frames
  3. org.apache.catalina
    ReplicationValve.invoke
    1. org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.writeExternal(DeltaRequest.java:392)
    2. org.apache.catalina.ha.session.DeltaRequest.writeExternal(DeltaRequest.java:285)
    3. org.apache.catalina.ha.session.DeltaRequest.serialize(DeltaRequest.java:299)
    4. org.apache.catalina.ha.session.DeltaManager.serializeDeltaRequest(DeltaManager.java:623)
    5. org.apache.catalina.ha.session.DeltaManager.requestCompleted(DeltaManager.java:1066)
    6. org.apache.catalina.ha.session.DeltaManager.requestCompleted(DeltaManager.java:1031)
    7. org.apache.catalina.ha.tcp.ReplicationValve.send(ReplicationValve.java:539)
    8. org.apache.catalina.ha.tcp.ReplicationValve.sendMessage(ReplicationValve.java:526)
    9. org.apache.catalina.ha.tcp.ReplicationValve.sendSessionReplicationMessage(ReplicationValve.java:508)
    10. org.apache.catalina.ha.tcp.ReplicationValve.sendReplicationMessage(ReplicationValve.java:421)
    11. org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:345)
    11 frames
  4. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    2. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    3. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    3 frames
  5. org.apache.coyote
    AjpProcessor.process
    1. org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
    1 frame
  6. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    2. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    2 frames
  7. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:724)
    3 frames