aspose file tools*
The moose likes JBoss/WildFly and the fly likes IOException while loading persisted sessions: java.io.EOFException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "IOException while loading persisted sessions: java.io.EOFException" Watch "IOException while loading persisted sessions: java.io.EOFException" New topic
Author

IOException while loading persisted sessions: java.io.EOFException

Ravi Vanamala
Greenhorn

Joined: Dec 14, 2004
Posts: 16

Hi,

I do use the JBoss Server & the HTTPApache Server. I use jk_mod connector for JBoss & Apache interraction. Out of 5 different setups only on one machine this is happening. Sometimes the HTTP Apache service uses the 100% memory and then throws the below exception. I use the Apahce Server : "apache_2.0.52-win32-x86-no_ssl".

Could you please someone can suggest how resolve this issue?

2007-03-19 10:34:17,679 ERROR [org.apache.catalina.session.ManagerBase] IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2155)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2621)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:251)
at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:56)
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:384)
at org.apache.catalina.session.StandardManager.load(StandardManager.java:343)
at org.apache.catalina.session.StandardManager.start(StandardManager.java:657)
at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:499)
at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:317)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4270)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
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 org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5456)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2007-03-19 10:34:17,679 ERROR [org.apache.catalina.session.ManagerBase] Exception loading sessions from persistent storage
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2155)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2621)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:251)
at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:56)
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:384)
at org.apache.catalina.session.StandardManager.load(StandardManager.java:343)
at org.apache.catalina.session.StandardManager.start(StandardManager.java:657)
at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:499)
at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:317)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4270)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
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 org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5456)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)





Thanks in advance for any help...!

Thanks & Regards,
Ravi
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
I know that the OP mayn't be interested but I would still answer it so that if somebody look for this kind of exception in future he can have some idea.

I google for this exception and find one or two solutions and none of them was relevant to my situation.

I am using Tomcat and I have created one project using tomcat plugin in MyEclipse 6. One day I start my tomcat tomcat and start getting above exception.If I remove the context definition file from tomcat then it starts without any exception or error. I cleaned up my classes and rebuild the project ofcourse using IDE facility but no help.

After that I concluded that there some problem with my project only so I opened the myProject.xml file under Tomcat 5.5\conf\Catalina\localhost directory and find that it points to work folder also.

So I opened the work folder of my project and remove everything into that including two SER files (tldCache.ser and session.ser) and other Java files(complied JSPs). And, and the error is gone.

Hope this is not Thread Hijecking.
raj nagaraju
Greenhorn

Joined: Nov 21, 2008
Posts: 7
Hi Vikas ,

That has saved my day.

Regards
Raj
Khairul Ikhwan
Greenhorn

Joined: Oct 01, 2009
Posts: 4
Thanks dude.. Also work for me.. Now my embedded tomcat in eclipse can start properly..


Help me..
Caio Cunha
Greenhorn

Joined: May 05, 2010
Posts: 1
Vikas Kapoor wrote:I know that the OP mayn't be interested but I would still answer it so that if somebody look for this kind of exception in future he can have some idea.

I google for this exception and find one or two solutions and none of them was relevant to my situation.

I am using Tomcat and I have created one project using tomcat plugin in MyEclipse 6. One day I start my tomcat tomcat and start getting above exception.If I remove the context definition file from tomcat then it starts without any exception or error. I cleaned up my classes and rebuild the project ofcourse using IDE facility but no help.

After that I concluded that there some problem with my project only so I opened the myProject.xml file under Tomcat 5.5\conf\Catalina\localhost directory and find that it points to work folder also.

So I opened the work folder of my project and remove everything into that including two SER files (tldCache.ser and session.ser) and other Java files(complied JSPs). And, and the error is gone.

Hope this is not Thread Hijecking.



That's it! Thank you, Dude!!
CaioToOn!
Steve Hiller
Greenhorn

Joined: Jul 25, 2008
Posts: 7
Thanks!!!
Carlos Ballock
Greenhorn

Joined: Jun 03, 2012
Posts: 1
Thank you!!
Sachin S Sharma
Greenhorn

Joined: Jul 16, 2009
Posts: 2
Awesome ! It works !
Thanks a lot !
dibakar sinha
Greenhorn

Joined: Oct 02, 2011
Posts: 15
Did not work for me for the initial solution so i delete the tomcat and reinstall tomcat and the problem is gone!!!
Sai Gowthami
Greenhorn

Joined: May 15, 2013
Posts: 1
You can delete ${CATALINA_HOME}/work/Catalina/localhost/test

where test is your application folder (war name).

This solved my issue
Aayushya Devmurari
Greenhorn

Joined: Jun 24, 2012
Posts: 5

Thanks man you saved the day..


Aayush
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IOException while loading persisted sessions: java.io.EOFException
 
Similar Threads
Netbeans Error
IOException while loading persisted sessions: java.io.EOFException
java.IO.EOFException when deploying war file
Errors while restarting Tomcat
EOFException: Exception loading sessions from persistent storage