Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IOException while loading persisted sessions: java.io.EOFException

 
Ravi Vanamala
Greenhorn
Posts: 16
Eclipse IDE Java Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1374
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vikas ,

That has saved my day.

Regards
Raj
 
Khairul Ikhwan
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks dude.. Also work for me.. Now my embedded tomcat in eclipse can start properly..
 
Caio Cunha
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!!
 
Carlos Ballock
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!!
 
Sachin S Sharma
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Awesome ! It works !
Thanks a lot !
 
dibakar sinha
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can delete ${CATALINA_HOME}/work/Catalina/localhost/test

where test is your application folder (war name).

This solved my issue
 
Aayushya Devmurari
Greenhorn
Posts: 8
Fedora
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks man you saved the day..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic