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 Apereo Issues by Ammar Belakhel, 1 year ago
via Apereo Issues by Ammar Belakhel, 2 years ago
via Oracle Community by 879513, 1 year ago
via codegur.net by Unknown author, 1 year ago
via Stack Overflow by Jason Mac
, 2 years ago
via Oracle Community by 843790, 1 year ago
java.util.HashMap$EntrySet
java.io.NotSerializableException: java.util.HashMap$KeySet	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)	at java.util.HashMap.writeObject(HashMap.java:1129)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1495)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)	at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:440)	at net.sf.ehcache.Element.writeObject(Element.java:851)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1495)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)	at net.sf.ehcache.util.MemoryEfficientByteArrayOutputStream.serialize(MemoryEfficientByteArrayOutputStream.java:97)	at net.sf.ehcache.store.disk.DiskStorageFactory.serializeElement(DiskStorageFactory.java:399)	at net.sf.ehcache.store.disk.DiskStorageFactory.write(DiskStorageFactory.java:381)	at net.sf.ehcache.store.disk.DiskStorageFactory$DiskWriteTask.call(DiskStorageFactory.java:473)	at net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1067)	at net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1051)	at java.util.concurrent.FutureTask.run(FutureTask.java:262)	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)	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:745)