Announcement Announcement Module
Collapse
No announcement yet.
insight.war NotSerializableException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • insight.war NotSerializableException

    I set up a new tc server instance and ran insight just fine. It looks to be a great tool I could make a lot of use of. However once I deploy my application that uses SSL and configure server.xml the insight application no longer works. I just get "The requested resource (/insight/) is not available." Stack trace below:

    Code:
    INFO: Starting Servlet Engine: SpringSource tc Server/6.0.20.C
    Nov 12, 2009 5:07:17 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive insight.war
    Nov 12, 2009 5:07:18 PM org.apache.catalina.session.StandardManager doLoad
    SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.springframework.security.userdetails.hierarchicalroles.RoleHierarchyImpl
    java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.springframework.security.userdetails.hierarchicalroles.RoleHierarchyImpl
    	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
    	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
    	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
    	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
    	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
    	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
    	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
    	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    	at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1441)
    	at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:942)
    	at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
    	at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
    	at org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
    	at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4358)
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
    	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:984)
    	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:907)
    	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
    	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1211)
    	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:741)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:587)
    	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.catalina.startup.Bootstrap.start(Bootstrap.java:290)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
    	at net.covalent.tomcat.wrapper.ThreadDumpWrapper.main(ThreadDumpWrapper.java:63)
    	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.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:197)
    	at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.NotSerializableException: org.springframework.security.userdetails.hierarchicalroles.RoleHierarchyImpl
    	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
    	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
    	at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1517)
    	at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:959)
    	at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
    	at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
    	at org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
    	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4573)
    	at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
    	at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1253)
    	at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1224)
    	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:316)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
    	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
    	at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
    	at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
    	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
    	at org.apache.catalina.startup.Catalina.stop(Catalina.java:637)
    	at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:680)
    Any suggestions? Thanks in advance!
    Last edited by RobbR; Nov 12th, 2009, 11:38 AM.

  • #2
    It looks like you are trying to cluster Tomcat with session replication, and the insight web app does not support session replication clustering, because the objects in its session do not implement 'serializable'. As Insight is not designed for session replication, please disable the session replication clustering.

    Hope that helps,
    Dan

    Comment


    • #3
      Open conf/context.xml in your instance, and uncomment the following lines
      <!--
      <Manager pathname="" />
      -->

      Comment


      • #4
        Thank you! That along with using the example server-with-ssl.xml with some modifications did the trick.

        Comment

        Working...
        X