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

JIRA | Anders Nyström | 4 years ago
  1. 0

    It's a problem with serializable stacktraces on the build. Its some tests that uses a class that aint serializable and that cant be serializable since it's using some external dependencies. So my guess is that something has to be done in mockito. Example output of one stacktrace {code} 13:35:47,949 ERROR [Objects] Error serializing object class se.sb.epsos.web.pages.DispensePrescriptionPage [object=[Page class = se.sb.epsos.web.pages.DispensePrescriptionPage, id = 2, version = 0, ajax = 5]] 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 {code}

    JIRA | 4 years ago | Anders Nyström
    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
  2. 0

    Injecting with @EJB or @Inject? | JBoss Developer

    jboss.org | 8 months ago
    org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: services.__EJB31_Generated__QuoteService__Intf____Bean__ Field hierarchy is:   0 [class=controllers.QuoteBrowse, path=0]     private services.QuoteService controllers.QuoteBrowse.quoteService [class=services.__EJB31_Generated__QuoteService__Intf____Bean__] <----- field that is not serializable
  3. 0

    HttpClient not Serializable Exception

    Stack Overflow | 3 years ago | bsam
    java.lang.RuntimeException: java.io.NotSerializableException: org.apache.http.impl.client.InternalHttpClient
  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

    GSON not serializable in JSF managed bean

    Stack Overflow | 4 years ago | kinkajou
    java.io.NotSerializableException: com.google.gson.Gson

  1. Andreas Häber 1 times, last 6 months ago
  2. kjhdofjosvs 1 times, last 1 week ago
  3. treefolk 1 times, last 2 weeks ago
  4. filpgame 4 times, last 2 weeks ago
  5. Handemelindo 15 times, last 3 weeks ago
11 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.mockito.internal.exceptions.base.ConditionalStackTraceFilter

    at java.io.ObjectOutputStream.writeObject0()
  2. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
    2. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    3. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    4. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    5. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    6. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
    7. java.util.concurrent.ConcurrentLinkedQueue.writeObject(ConcurrentLinkedQueue.java:644)
    8. sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
    9. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    10. java.lang.reflect.Method.invoke(Method.java:597)
    11. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
    12. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
    13. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    14. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    15. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    16. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    17. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    18. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    19. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
    20. java.util.LinkedList.writeObject(LinkedList.java:943)
    21. sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
    22. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    23. java.lang.reflect.Method.invoke(Method.java:597)
    24. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
    25. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
    26. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    27. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    28. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    29. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    30. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    31. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    32. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    33. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    34. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    35. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    36. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    37. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    38. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    39. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    40. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    41. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    42. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    43. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    44. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    45. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    46. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    47. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    48. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    49. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    50. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    51. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    52. java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
    53. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
    54. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    55. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    56. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    57. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    58. java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
    59. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
    60. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    61. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    62. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    63. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    64. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
    64 frames
  3. Wicket Util
    IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride
    1. org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
    1 frame
  4. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
    1 frame
  5. Wicket Util
    Objects.objectToByteArray
    1. org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
    1 frame
  6. org.apache.wicket
    DiskPageStore.storePage
    1. org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
    2. org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:840)
    2 frames
  7. Wicket Core
    BaseWicketTester.clickLink
    1. org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
    2. org.apache.wicket.Session.requestDetached(Session.java:1435)
    3. org.apache.wicket.RequestCycle.detach(RequestCycle.java:1176)
    4. org.apache.wicket.RequestCycle.steps(RequestCycle.java:1462)
    5. org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
    6. org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:527)
    7. org.apache.wicket.util.tester.BaseWicketTester.clickLink(BaseWicketTester.java:780)
    7 frames
  8. se.sb.epsos
    DispensePrescriptionPageTest.testClickViewOriginalKnownNcpExceptionsHandledCorrectly
    1. se.sb.epsos.web.pages.DispensePrescriptionPageTest.verifyFailureViewOriginal(DispensePrescriptionPageTest.java:133)
    2. se.sb.epsos.web.pages.DispensePrescriptionPageTest.testClickViewOriginalKnownNcpExceptionsHandledCorrectly(DispensePrescriptionPageTest.java:91)
    2 frames
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  10. JUnit
    RunBefores.evaluate
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    5 frames
  11. Spring TestContext
    SpringJUnit4ClassRunner.runChild
    1. org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    2. org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
    3. org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
    4. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
    4 frames
  12. JUnit
    ParentRunner$2.evaluate
    1. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    2. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    3. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    4. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    5. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    6. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    6 frames
  13. Spring TestContext
    RunAfterTestClassCallbacks.evaluate
    1. org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    2. org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    2 frames
  14. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    1 frame
  15. Spring TestContext
    SpringJUnit4ClassRunner.run
    1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
    1 frame
  16. JUnit4 Provider
    JUnit4Provider.invoke
    1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
    2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
    3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
    3 frames
  17. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  18. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    3. org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    4. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
    5 frames