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 JIRA by Anders Nyström, 1 year ago
Unable to serialize class: org.mockito.internal.exceptions.base.ConditionalStackTraceFilter Field hierarchy is: 2 [class=se.sb.epsos.web.pages.DispensePrescriptionPage, path=2] private java.lang.Object
via Stack Overflow by xeraa
, 2 years ago
Unable to serialize class: org.codehaus.jackson.map.ObjectMapper Field hierarchy is: 1 [class=....web.backend.overview.OverviewPage, path=1] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object
via Google Groups by Unknown author, 10 months ago
Unable to serialize class: org.openengsb.ui.web.model.OpenEngSBVersion Field hierarchy is: 0 [class=org.openengsb.ui.web.BasePage, path=0] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object
via Google Groups by Andreas Pieber (JIRA), 11 months ago
Unable to serialize class: java.util.HashMap$Entry Field hierarchy is
via Stack Overflow by Jesse Barnum
, 1 year ago
Unable to serialize class: com.prosc.safetynet.SafetyNetSession$1 Field hierarchy is: 0 [class=com.prosc.safetynet.Administer, path=0] java.lang.Object org.apache.wicket.Component.data [class=org.apache.wicket.model.CompoundPropertyModel
via Google Groups by Unknown author, 10 months ago
Unable to serialize class: org.openengsb.ui.web.model.OpenEngSBVersion Field hierarchy is: 0 [class=org.openengsb.ui.web.BasePage, path=0] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object
java.io.NotSerializableException: org.mockito.internal.exceptions.base.ConditionalStackTraceFilter	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)	at java.util.concurrent.ConcurrentLinkedQueue.writeObject(ConcurrentLinkedQueue.java:644)	at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)	at java.util.LinkedList.writeObject(LinkedList.java:943)	at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)	at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)	at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)	at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)	at org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:840)	at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)	at org.apache.wicket.Session.requestDetached(Session.java:1435)	at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1176)	at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1462)	at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)	at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:527)	at org.apache.wicket.util.tester.BaseWicketTester.clickLink(BaseWicketTester.java:780)	at se.sb.epsos.web.pages.DispensePrescriptionPageTest.verifyFailureViewOriginal(DispensePrescriptionPageTest.java:133)	at se.sb.epsos.web.pages.DispensePrescriptionPageTest.testClickViewOriginalKnownNcpExceptionsHandledCorrectly(DispensePrescriptionPageTest.java:91)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)	at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)