java.io.NotSerializableException: org.zkoss.zss.ui.impl.ua.ApplyBorderHandler

ZK-Tracker | JoseWalker | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When having an application with the ZSS Open Source running on Tomcat 7.x in cluster mode, since the class *org.zkoss.zss.ui.impl.ua.ApplyBorderHandler* is not serializable, session objects between servers can synchronize failing and compromising the cluster and the load balancer settings, because if a server fails, the session cannot be restored for the whole application even though the ZSS is a part of the whole application. PLEASE MAKE ALL CLASSES SERIALIZABLE ! this doesn't take long and will help on scenarios like this. The following is the error SEVERE: Unable to serialize delta request for sessionid [3043B07147067501637ED93F7506BFBF] java.io.NotSerializableException: org.zkoss.zss.ui.impl.ua.ApplyBorderHandler at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at java.util.LinkedList.writeObject(LinkedList.java:1131) at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at java.util.HashMap.internalWriteEntries(HashMap.java:1777) at java.util.HashMap.writeObject(HashMap.java:1354) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractPage.writeObject(AbstractPage.java:232) at sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at java.util.LinkedList.writeObject(LinkedList.java:1131) at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:441) at org.zkoss.zk.ui.impl.DesktopImpl.writeObject(DesktopImpl.java:1044) at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at java.util.LinkedHashMap.internalWriteEntries(LinkedHashMap.java:333) at java.util.HashMap.writeObject(HashMap.java:1354) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:441) at org.zkoss.util.CacheMap.writeObject(CacheMap.java:633) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.http.SimpleSession.writeThis(SimpleSession.java:433) at org.zkoss.zk.ui.http.SerializableSession.writeObject(SerializableSession.java:71) at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) 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.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    ZK-Tracker | 2 years ago | JoseWalker
    java.io.NotSerializableException: org.zkoss.zss.ui.impl.ua.ApplyBorderHandler
  2. 0

    When having an application with the ZSS Open Source running on Tomcat 7.x in cluster mode, since the class *org.zkoss.zss.ui.impl.ua.ApplyBorderHandler* is not serializable, session objects between servers can synchronize failing and compromising the cluster and the load balancer settings, because if a server fails, the session cannot be restored for the whole application even though the ZSS is a part of the whole application. PLEASE MAKE ALL CLASSES SERIALIZABLE ! this doesn't take long and will help on scenarios like this. The following is the error SEVERE: Unable to serialize delta request for sessionid [3043B07147067501637ED93F7506BFBF] java.io.NotSerializableException: org.zkoss.zss.ui.impl.ua.ApplyBorderHandler at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at java.util.LinkedList.writeObject(LinkedList.java:1131) at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at java.util.HashMap.internalWriteEntries(HashMap.java:1777) at java.util.HashMap.writeObject(HashMap.java:1354) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.AbstractPage.writeObject(AbstractPage.java:232) at sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at java.util.LinkedList.writeObject(LinkedList.java:1131) at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:441) at org.zkoss.zk.ui.impl.DesktopImpl.writeObject(DesktopImpl.java:1044) at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at java.util.LinkedHashMap.internalWriteEntries(LinkedHashMap.java:333) at java.util.HashMap.writeObject(HashMap.java:1354) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:441) at org.zkoss.util.CacheMap.writeObject(CacheMap.java:633) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.zkoss.zk.ui.http.SimpleSession.writeThis(SimpleSession.java:433) at org.zkoss.zk.ui.http.SerializableSession.writeObject(SerializableSession.java:71) at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) 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.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    ZK-Tracker | 2 years ago | JoseWalker
    java.io.NotSerializableException: org.zkoss.zss.ui.impl.ua.ApplyBorderHandler
  3. 0

    NotSerializableException occuring where it shouldn't

    Stack Overflow | 6 months ago | Ryan
    java.io.NotSerializableException: resources.Sample$Ball
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Social gives error with Enabling RedisHttpSession

    Stack Overflow | 2 years ago | Ruby
    org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: org.springframework.social.connect.support.ConnectionFactoryRegistry
  6. 0

    FormattingConversionService NotSerializableException

    Stack Overflow | 2 years ago | mnpr
    java.io.NotSerializableException: org.springframework.format.support.DefaultFormattingConversionService

  1. batwalrus76 14 times, last 2 weeks ago
  2. treefolk 12 times, last 3 weeks ago
  3. Hronom 1 times, last 1 month ago
  4. kjhdofjosvs 1 times, last 3 months ago
  5. filpgame 4 times, last 3 months ago
13 more registered users
50 unregistered visitors
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.zkoss.zss.ui.impl.ua.ApplyBorderHandler

    at java.io.ObjectOutputStream.writeObject0()
  2. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
    2. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    3. java.util.LinkedList.writeObject(LinkedList.java:1131)
    4. sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
    5. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    6. java.lang.reflect.Method.invoke(Method.java:497)
    7. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    8. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    9. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    10. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    11. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    12. java.util.HashMap.internalWriteEntries(HashMap.java:1777)
    13. java.util.HashMap.writeObject(HashMap.java:1354)
    14. sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
    15. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    16. java.lang.reflect.Method.invoke(Method.java:497)
    17. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    18. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    19. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    20. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    21. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
    22. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
    23. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    24. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    25. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
    26. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
    27. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    28. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    29. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    29 frames
  3. ZK Kernel
    AbstractComponent.writeObject
    1. org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011)
    1 frame
  4. Java RT
    ObjectOutputStream.writeObject
    1. sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    4. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    8. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    8 frames
  5. ZK Kernel
    AbstractComponent.writeObject
    1. org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011)
    1 frame
  6. Java RT
    ObjectOutputStream.writeObject
    1. sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    4. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    8. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    8 frames
  7. ZK Kernel
    AbstractComponent.writeObject
    1. org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011)
    1 frame
  8. Java RT
    ObjectOutputStream.writeObject
    1. sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    4. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    8. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    8 frames
  9. ZK Kernel
    AbstractComponent.writeObject
    1. org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011)
    1 frame
  10. Java RT
    ObjectOutputStream.writeObject
    1. sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    4. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    8. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    8 frames
  11. ZK Kernel
    AbstractComponent.writeObject
    1. org.zkoss.zk.ui.AbstractComponent.writeObject(AbstractComponent.java:3011)
    1 frame
  12. Java RT
    ObjectOutputStream.writeObject
    1. sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    4. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    8. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    8 frames
  13. ZK Kernel
    AbstractPage.writeObject
    1. org.zkoss.zk.ui.AbstractPage.writeObject(AbstractPage.java:232)
    1 frame
  14. Java RT
    ObjectOutputStream.defaultWriteObject
    1. sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    4. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    8. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    9. java.util.LinkedList.writeObject(LinkedList.java:1131)
    10. sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
    11. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    12. java.lang.reflect.Method.invoke(Method.java:497)
    13. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    14. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    15. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    16. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    17. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
    18. java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:441)
    18 frames
  15. ZK Kernel
    DesktopImpl.writeObject
    1. org.zkoss.zk.ui.impl.DesktopImpl.writeObject(DesktopImpl.java:1044)
    1 frame
  16. Java RT
    ObjectOutputStream.defaultWriteObject
    1. sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    4. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    8. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
    9. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
    10. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    11. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    12. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    13. java.util.LinkedHashMap.internalWriteEntries(LinkedHashMap.java:333)
    14. java.util.HashMap.writeObject(HashMap.java:1354)
    15. sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
    16. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    17. java.lang.reflect.Method.invoke(Method.java:497)
    18. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    19. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    20. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    21. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    22. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
    23. java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:441)
    23 frames
  17. The ZKoss Common Library
    CacheMap.writeObject
    1. org.zkoss.util.CacheMap.writeObject(CacheMap.java:633)
    1 frame
  18. Java RT
    ObjectOutputStream.writeObject
    1. sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    4. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    8. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
    9. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
    10. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    11. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    12. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    12 frames
  19. ZK Kernel
    SerializableSession.writeObject
    1. org.zkoss.zk.ui.http.SimpleSession.writeThis(SimpleSession.java:433)
    2. org.zkoss.zk.ui.http.SerializableSession.writeObject(SerializableSession.java:71)
    2 frames
  20. Java RT
    ObjectOutputStream.writeObject
    1. sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    4. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    8. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    8 frames
  21. 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
  22. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    1 frame
  23. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    3 frames
  24. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames