Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-761

ErrorPage itself is not serializable, resulting in stack traces in the log.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • viewer-wicket-1.4.1
    • viewer-wicket-1.5.0
    • Viewer Wicket
    • None

    Description

      17:10:15,550 [JavaSerializer                ] Error serializing object class org.apache.isis.viewer.wicket.ui.pages.error.ErrorPage [object=[Page class = org.apache.isis.viewer.wicket.ui.pages.error.ErrorPage, id = 9, render count = 0]]
      org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream$ObjectCheckException: The object type is not Serializable!
      A problem occurred while checking object with type: org.apache.wicket.RequestListenerInterface
      Field hierarchy is:
        9 [class=org.apache.isis.viewer.wicket.ui.pages.error.ErrorPage, path=9]
          private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
            java.lang.Object org.apache.wicket.Component.data[1] [class=org.apache.wicket.markup.html.WebMarkupContainer, path=9:theme]
              private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
                private final java.lang.annotation.Annotation org.apache.wicket.guice.GuiceProxyTargetLocator.bindingAnnotation[9] [class=org.apache.isis.viewer.wicket.ui.errors.ExceptionStackTracePanel, path=9:theme:exceptionStackTrace]
                  java.lang.Object org.apache.wicket.Component.data [class=org.apache.isis.viewer.wicket.ui.errors.ExceptionModel]
                    private java.lang.Exception org.apache.isis.viewer.wicket.ui.errors.ExceptionModel.exception [class=org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException]
                      private final org.apache.wicket.RequestListenerInterface org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException.iface [class=org.apache.wicket.RequestListenerInterface] <----- field that is causing the problem
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:387)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.checkFields(CheckingObjectOutputStream.java:645)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:569)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.checkFields(CheckingObjectOutputStream.java:645)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:569)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.checkFields(CheckingObjectOutputStream.java:645)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:569)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:432)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.checkFields(CheckingObjectOutputStream.java:645)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:569)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:432)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.checkFields(CheckingObjectOutputStream.java:645)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:569)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361)
      	at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.writeObjectOverride(CheckingObjectOutputStream.java:713)
      	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:343)
      	at org.apache.wicket.serialize.java.JavaSerializer$SerializationCheckerObjectOutputStream.writeObjectOverride(JavaSerializer.java:268)
      	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:343)
      	at org.apache.wicket.serialize.java.JavaSerializer.serialize(JavaSerializer.java:78)
      	at org.apache.wicket.pageStore.DefaultPageStore.serializePage(DefaultPageStore.java:376)
      	at org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:150)
      	at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:410)
      	at org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:181)
      	at org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:98)
      	at org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:73)
      	at org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:258)
      	at org.apache.wicket.Application$2.onDetach(Application.java:1628)
      	at org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:105)
      	at org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:101)
      	at org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:120)
      	at org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:144)
      	at org.apache.wicket.util.listener.ListenerCollection.reversedNotifyIgnoringExceptions(ListenerCollection.java:113)
      	at org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:100)
      	at org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:640)
      	at org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:589)
      	at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
      	at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
      	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
      	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
      	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
      	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
      	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
      	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
      	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
      	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      	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:724)
      Caused by: java.io.NotSerializableException: org.apache.wicket.RequestListenerInterface
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1181)
      	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
      	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
      	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
      	at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1375)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1171)
      	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
      	at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1375)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1171)
      	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
      	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
      	at org.apache.wicket.serialize.java.JavaSerializer$SerializationCheckerObjectOutputStream.writeObjectOverride(JavaSerializer.java:260)
      	... 47 more
      

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: