Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    Exception in thread "main" java.io.NotSerializableException: java.util.Hashtable$Enumerator at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSe

  2. ,
    via Stack Overflow by Matthias

    Your object contains member variables which are themselves not serializable 'ReportDataStoreRegion'. If you really want to serialize your object. One option would be to declare the variable as transient so that it is not serialized.

Solutions on the web

via ZK-Tracker by JoseWalker, 1 year ago
via ZK-Tracker by JoseWalker, 2 years ago
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)