org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: 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] private java.lang.Object org.apache.wicket.model.CompoundPropertyModel.target [class=com.prosc.safetynet.SafetyNetSession$2] final com.prosc.safetynet.SafetyNetSession com.prosc.safetynet.SafetyNetSession$2.this$0 [class=com.prosc.safetynet.SafetyNetSession] private java.lang.Object com.prosc.safetynet.SafetyNetSession.tryAndSerializeMeBitch [class=com.prosc.safetynet.SafetyNetSession$1] <----- field that is not serializable

  1. 0

    How can I disable serialization in Wicket 1.5?

    Stack Overflow | 4 years ago | Jesse Barnum
    org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: 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] private java.lang.Object org.apache.wicket.model.CompoundPropertyModel.target [class=com.prosc.safetynet.SafetyNetSession$2] final com.prosc.safetynet.SafetyNetSession com.prosc.safetynet.SafetyNetSession$2.this$0 [class=com.prosc.safetynet.SafetyNetSession] private java.lang.Object com.prosc.safetynet.SafetyNetSession.tryAndSerializeMeBitch [class=com.prosc.safetynet.SafetyNetSession$1] <----- field that is not serializable

    Root Cause Analysis

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

      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] private java.lang.Object org.apache.wicket.model.CompoundPropertyModel.target [class=com.prosc.safetynet.SafetyNetSession$2] final com.prosc.safetynet.SafetyNetSession com.prosc.safetynet.SafetyNetSession$2.this$0 [class=com.prosc.safetynet.SafetyNetSession] private java.lang.Object com.prosc.safetynet.SafetyNetSession.tryAndSerializeMeBitch [class=com.prosc.safetynet.SafetyNetSession$1] <----- field that is not serializable

      at org.apache.wicket.util.io.SerializableChecker.internalCheck()
    2. Wicket Util
      SerializableChecker.writeObjectOverride
      1. org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:395)
      2. org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:374)
      3. org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:655)
      4. org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:578)
      5. org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:374)
      6. org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:655)
      7. org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:578)
      8. org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:374)
      9. org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:655)
      10. org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:578)
      11. org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:374)
      12. org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:655)
      13. org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:578)
      14. org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:374)
      15. org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:724)
      15 frames
    3. Java RT
      ObjectOutputStream.writeObject
      1. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      1 frame
    4. Wicket Core
      JavaSerializer$CheckerObjectOutputStream.writeObjectOverride
      1. org.apache.wicket.serialize.java.JavaSerializer$CheckerObjectOutputStream.writeObjectOverride(JavaSerializer.java:258)
      1 frame
    5. Java RT
      ObjectOutputStream.writeObject
      1. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      1 frame
    6. Wicket Core
      RequestCycleListenerCollection$3.notify
      1. org.apache.wicket.serialize.java.JavaSerializer.serialize(JavaSerializer.java:77)
      2. org.apache.wicket.pageStore.DefaultPageStore.serializePage(DefaultPageStore.java:368)
      3. org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:146)
      4. org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:383)
      5. org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:171)
      6. org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:94)
      7. org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:68)
      8. org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:281)
      9. org.apache.wicket.Application$2.onDetach(Application.java:1598)
      10. org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:99)
      11. org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:97)
      11 frames
    7. Wicket Util
      ListenerCollection.reversedNotifyIgnoringExceptions
      1. org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:119)
      2. org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:143)
      3. org.apache.wicket.util.listener.ListenerCollection.reversedNotifyIgnoringExceptions(ListenerCollection.java:113)
      3 frames
    8. Wicket Core
      WicketFilter.doFilter
      1. org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:95)
      2. org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:603)
      3. org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:542)
      4. org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:287)
      5. org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
      6. org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
      6 frames
    9. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      8 frames
    10. Grizzly HTTP
      LeaderFollowerWorkerThread.runIt
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
      2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      4 frames
    11. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
      1 frame
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame