org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException

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 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private java.lang.Object org.apache.wicket.MarkupContainer.children[0] [class=se.sb.epsos.web.auth.UserinfoPanel, path=2:userinfo] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.markupHelper[3] [class=se.sb.epsos.web.auth.UserinfoPanel$2, path=2:userinfo:locales] final se.sb.epsos.web.EpsosAuthenticatedWebSession se.sb.epsos.web.auth.UserinfoPanel$2.val$session [class=se.sb.epsos.web.EpsosAuthenticatedWebSession] private se.sb.epsos.web.service.NcpServiceFacade se.sb.epsos.web.EpsosAuthenticatedWebSession.serviceFacade [class=se.sb.epsos.web.service.NcpServiceFacade$$EnhancerByMockitoWithCGLIB$$147ee4d] private org.mockito.cglib.proxy.MethodInterceptor se.sb.epsos.web.service.NcpServiceFacade$$EnhancerByMockitoWithCGLIB$$147ee4d.CGLIB$CALLBACK_0 [class=org.mockito.internal.creation.MethodInterceptorFilter] private final org.mockito.internal.IMockHandler org.mockito.internal.creation.MethodInterceptorFilter.mockHandler [class=org.mockito.internal.MockHandler] org.mockito.internal.stubbing.MockitoStubber org.mockito.internal.MockHandler.mockitoStubber [class=org.mockito.internal.stubbing.MockitoStubber] private final java.util.LinkedList org.mockito.internal.stubbing.MockitoStubber.stubbed [class=java.util.LinkedList] private final java.util.LinkedList org.mockito.internal.stubbing.MockitoStubber.stubbed[write:1] [class=org.mockito.internal.stubbing.StubbedInvocationMatcher] private final java.util.Queue org.mockito.internal.stubbing.StubbedInvocationMatcher.answers [class=java.util.concurrent.ConcurrentLinkedQueue] private final java.util.Queue org.mockito.internal.stubbing.StubbedInvocationMatcher.answers[write:1] [class=org.mockito.internal.stubbing.answers.ThrowsException] private final org.mockito.internal.exceptions.base.ConditionalStackTraceFilter org.mockito.internal.stubbing.answers.ThrowsException.filter [class=org.mockito.internal.exceptions.base.ConditionalStackTraceFilter] <----- field that is not serializable

Solutions on the web24

  • via JIRA by Anders Nyström, 11 months 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 JIRA by Dennis Spathis, 1 year ago
    Unable to serialize class: org.springframework.web.context.support.XmlWebApplicationContext Field hierarchy is: 3 [class=org.obiba.onyx.webapp.participant.page.ParticipantReceptionPage, path=3] private java.lang.Object
  • Unable to serialize class: java.util.HashMap$Entry Field hierarchy is
  • Stack trace

    • org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: 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 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private java.lang.Object org.apache.wicket.MarkupContainer.children[0] [class=se.sb.epsos.web.auth.UserinfoPanel, path=2:userinfo] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.markupHelper[3] [class=se.sb.epsos.web.auth.UserinfoPanel$2, path=2:userinfo:locales] final se.sb.epsos.web.EpsosAuthenticatedWebSession se.sb.epsos.web.auth.UserinfoPanel$2.val$session [class=se.sb.epsos.web.EpsosAuthenticatedWebSession] private se.sb.epsos.web.service.NcpServiceFacade se.sb.epsos.web.EpsosAuthenticatedWebSession.serviceFacade [class=se.sb.epsos.web.service.NcpServiceFacade$$EnhancerByMockitoWithCGLIB$$147ee4d] private org.mockito.cglib.proxy.MethodInterceptor se.sb.epsos.web.service.NcpServiceFacade$$EnhancerByMockitoWithCGLIB$$147ee4d.CGLIB$CALLBACK_0 [class=org.mockito.internal.creation.MethodInterceptorFilter] private final org.mockito.internal.IMockHandler org.mockito.internal.creation.MethodInterceptorFilter.mockHandler [class=org.mockito.internal.MockHandler] org.mockito.internal.stubbing.MockitoStubber org.mockito.internal.MockHandler.mockitoStubber [class=org.mockito.internal.stubbing.MockitoStubber] private final java.util.LinkedList org.mockito.internal.stubbing.MockitoStubber.stubbed [class=java.util.LinkedList] private final java.util.LinkedList org.mockito.internal.stubbing.MockitoStubber.stubbed[write:1] [class=org.mockito.internal.stubbing.StubbedInvocationMatcher] private final java.util.Queue org.mockito.internal.stubbing.StubbedInvocationMatcher.answers [class=java.util.concurrent.ConcurrentLinkedQueue] private final java.util.Queue org.mockito.internal.stubbing.StubbedInvocationMatcher.answers[write:1] [class=org.mockito.internal.stubbing.answers.ThrowsException] private final org.mockito.internal.exceptions.base.ConditionalStackTraceFilter org.mockito.internal.stubbing.answers.ThrowsException.filter [class=org.mockito.internal.exceptions.base.ConditionalStackTraceFilter] <----- field that is not serializable at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:386) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:656) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:579) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:64) at org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:535) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1124) 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.writeObject(ObjectOutputStream.java:330) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:542) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:656) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:579) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:64) at org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:535) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1124) 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.writeObject(ObjectOutputStream.java:330) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:542) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:656) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:579) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:656) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:579) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:656) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:579) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:656) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:579) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:656) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:579) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:656) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:579) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:432) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:656) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:579) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:432) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:656) at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:579) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:365) at org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:725) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:129) 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) Caused by: 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) ... 48 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    6 times, 2 months ago
    Once, 1 year ago
    11 times, 1 month ago
    Unknown user
    Once, 2 months ago
    2 times, 3 months ago
    84 more bugmates