1 Reply Latest reply on Jun 18, 2010 6:01 PM by Ravi Kiran Bhaskar

    3.3.3.CR1 loading persisted sessions: java.io.EOFException

    Ravi Kiran Bhaskar Newbie

      Hello,

              On redeployment of app or on restart of our glassfish server we get the exception "loading persisted sessions: java.io.EOFException". Can anybody help me get rid of this error please. I have double checked my code and there seems to be no unserializable members/classes. Has anybody encountered the same issue ? From the stacktrace shown below it looks like the AjaxStateHolder is choking. I save state on server side and do use a4j:keepAlive. I have seen lot many people having this issue but there was no solution. Can anybody kindly help me

       

      [#|2010-06-17T19:47:10.483-0400|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=15;_ThreadName=pool-1-thread-14;_RequestID=5ee71612-eddc-4542-88fb-fd676154e2c3;|log4j:WARN  No such property [maxBackupIndex] in  org.apache.log4j.DailyRollingFileAppender.|#]

      [#|2010-06-17T19:51:09.870-0400|SEVERE|sun-appserver2.1|org.apache.catalina.session.ManagerBase|_ThreadID=15;_ThreadName=pool-1-thread-14;_RequestID=5ee71612-eddc-4542-88fb-fd676154e2c3;|PWC2768:  IOException while loading persisted sessions: java.io.EOFException
      java.io.EOFException
               at  java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2500)
                at  java.io.ObjectInputStream.skipCustomData(ObjectInputStream.java:1863)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1837)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                at java.util.HashMap.readObject(HashMap.java:1067)
               at  sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
                at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:592)
               at  java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at  java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at  java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                at java.util.HashMap.readObject(HashMap.java:1067)
               at  sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
                at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:592)
               at  java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                at java.util.HashMap.readObject(HashMap.java:1067)
               at  sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
                at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:592)
               at  java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at  java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
                at  java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:479)
                at  org.ajax4jsf.application.AjaxStateHolder.readObject(AjaxStateHolder.java:204)
                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:592)
               at  java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                at  org.apache.catalina.session.StandardSession.readRemainingObject(StandardSession.java:1827)
                at  org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1759)
                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:592)
               at  java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                at  org.apache.catalina.session.StandardSession.deserialize(StandardSession.java:1125)
                at  org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:501)
                at  org.apache.catalina.session.StandardManager.load(StandardManager.java:418)
                at  org.apache.catalina.session.StandardManager.start(StandardManager.java:810)
                at  org.apache.catalina.core.StandardContext.managerStart(StandardContext.java:4973)
                at  org.apache.catalina.core.StandardContext.start(StandardContext.java:5290)
                at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
                at  com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
                at  com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
                at  com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
                at  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
                at java.util.concurrent.FutureTask.run(FutureTask.java:123)
                at  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
                at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
                at java.lang.Thread.run(Thread.java:595)
      |#]

      [#|2010-06-17T19:51:09.975-0400|SEVERE|sun-appserver2.1|org.apache.catalina.session.ManagerBase|_ThreadID=15;_ThreadName=pool-1-thread-14;_RequestID=5ee71612-eddc-4542-88fb-fd676154e2c3;|PWC2773:  Exception loading sessions from persistent storage
      java.io.EOFException
               at  java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2500)
                at  java.io.ObjectInputStream.skipCustomData(ObjectInputStream.java:1863)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1837)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                at java.util.HashMap.readObject(HashMap.java:1067)
               at  sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
                at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:592)
               at  java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at  java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                at  java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                at java.util.HashMap.readObject(HashMap.java:1067)
               at  sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
                at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:592)
               at  java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                at java.util.HashMap.readObject(HashMap.java:1067)
               at  sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
                at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:592)
               at  java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at  java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
                at  java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:479)
                at  org.ajax4jsf.application.AjaxStateHolder.readObject(AjaxStateHolder.java:204)
                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:592)
               at  java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                at  org.apache.catalina.session.StandardSession.readRemainingObject(StandardSession.java:1827)
                at  org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1759)
                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:592)
               at  java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                at  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
                at  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                at  org.apache.catalina.session.StandardSession.deserialize(StandardSession.java:1125)
                at  org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:501)
                at  org.apache.catalina.session.StandardManager.load(StandardManager.java:418)
                at  org.apache.catalina.session.StandardManager.start(StandardManager.java:810)
                at  org.apache.catalina.core.StandardContext.managerStart(StandardContext.java:4973)
                at  org.apache.catalina.core.StandardContext.start(StandardContext.java:5290)
                at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
                at  com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
                at  com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
                at  com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
                at  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
                at java.util.concurrent.FutureTask.run(FutureTask.java:123)
                at  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
                at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
                at java.lang.Thread.run(Thread.java:595)
      |#]

       

       

       

       

      Thanks,

       

      Ravi Kiran Bhaskar