tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <paul.ocklef...@nhs.net>
Subject Tomcat IO exception on startup
Date Wed, 18 Feb 2009 10:40:51 GMT
Hi,

I am using tomcat version 5.5.23 and I have noticed that tomcat is now
giving the following exception on startup:

- IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputSt
.java:2228)
        at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectIn
tream.java:2694)
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java
)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:277)
        at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObj
nputStream.java:58)
        at org.apache.catalina.session.StandardManager.doLoad(StandardManage
va:362)
        at org.apache.catalina.session.StandardManager.load(StandardManager.
:321)
        at org.apache.catalina.session.StandardManager.start(StandardManager
a:637)
        at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.j
432)
        at org.apache.catalina.core.StandardContext.start(StandardContext.ja
160)
        at org.apache.catalina.core.ContainerBase.addChildInternal(Container
.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.jav
0)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig
a:920)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConf
ava:883)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Life
eSupport.java:120)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
)
        at org.apache.catalina.core.StandardService.start(StandardService.ja
48)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
- Exception loading sessions from persistent storage
java.io.EOFException
        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputSt
.java:2228)
        at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectIn
tream.java:2694)
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java
)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:277)
        at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObj
nputStream.java:58)
        at org.apache.catalina.session.StandardManager.doLoad(StandardManage
va:362)
        at org.apache.catalina.session.StandardManager.load(StandardManager.
:321)
        at org.apache.catalina.session.StandardManager.start(StandardManager
a:637)
        at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.j
432)
        at org.apache.catalina.core.StandardContext.start(StandardContext.ja
160)
        at org.apache.catalina.core.ContainerBase.addChildInternal(Container
.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.jav
0)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig
a:920)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConf
ava:883)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Life
eSupport.java:120)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
)
        at org.apache.catalina.core.StandardService.start(StandardService.ja
48)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

This has only just started I think and I have recently added a new web app
descriptor so they could be related:

<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

I added this as I need to add support for jstl to my web app. I have also
noticed that now tomcat also seems to be using some cached version of
classes, even if I remove a class file and restart tomcat it is still using
a constant defined in an older version of a class.

Can anybody help? I have removed the file SESSIONS.ser that is getting
created but this doesn't make any difference.

Thanks


***********************************************************************
This  message  may  contain  confidential and  privileged  information.
If you  are not the  intended recipient  you should not  disclose, copy
or distribute information in this e-mail or take any action in reliance
on its contents.  To do so is strictly  prohibited and may be unlawful.
Please  inform  the  sender that  this  message has  gone astray before
deleting it.  Thank you.

2008 marks the 60th anniversary of the NHS.  It's an opportunity to pay
tribute to the NHS staff and volunteers who help shape the service, and
celebrate their achievements.

If you work for the NHS  and  would like  an NHSmail  email account, go
to: www.connectingforhealth.nhs.uk/nhsmail
***********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message