3 Replies Latest reply on Oct 30, 2002 6:54 PM by William Houck

    Sessions Persisting?!?

    Febbraro Newbie

      I am usign JBoss 3.0.0 with Tomcat 4.0.3

      All of a sudden I started gettign errors when I would do a hot deploy. It has to do with storing and loading active sessions. I have not turned on anything, nor changed my configuration at all.

      I get errors on the undeploy, but also when I redeploy or restart the server. When i get the error on a redeploy I have to start the server access my application and get an error, then restart again to get no errors.

      When I restart the server I get the followign stack trace and my application is unusable:

      Thank you for any help.....

      17:24:11,355 ERROR [Engine] StandardManager[/ve10] IOException while loading persisted sessions: java.io.EOFException
      java.io.EOFException
      at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:347)
      at java.io.ObjectInputStream$BlockDataInputStream.readUnsignedShort(ObjectInputStream.java:2633)
      at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2689)
      at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:989)
      at java.rmi.server.RemoteObject.readObject(RemoteObject.java:394)
      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:324)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:809)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1733)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.readExternal(JRMPInvokerProxy.java:160)
      at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1676)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1634)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
      at java.util.HashMap.readObject(HashMap.java:974)
      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:324)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:809)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1733)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      ...

        • 1. Re: Sessions Persisting?!?
          Febbraro Newbie

          Not sure if this matters, but this is the exception when undeploying.

          Thanks again for any help.

          18:10:29,359 ERROR [Engine] StandardManager[/ve10] IOException while saving persisted sessions: java.rmi.MarshalException: Invalid remote object
          java.rmi.MarshalException: Invalid remote object
          at java.rmi.server.RemoteObject.writeObject(RemoteObject.java:332)
          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:324)
          at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:780)
          at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1294)
          at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
          at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
          at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
          at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.writeExternal(JRMPInvokerProxy.java:149)
          at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1265)
          at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1243)
          at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
          at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
          at java.util.HashMap.writeObject(HashMap.java:946)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          ....

          • 2. Re: Sessions Persisting?!?
            William Houck Newbie

            I am having the same problem can anyone help? Perhaps there is a config setting for persisted sessions?

            • 3. Re: Sessions Persisting?!?
              William Houck Newbie

              Perhaps I'm not being specific enough. With jboss-3.0.2_tomcat-4.0.4, http sessions are written to disk when the app server is shut down. This does not happen when using tomcat by itself. How do I disable this feature? I could really use some feedback on this setting.

              Thanks in advance,
              Will