tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid...@pidster.com>
Subject Re: StreamCorruptedException - where to look to fix
Date Tue, 16 Oct 2007 08:40:04 GMT
David kerber wrote:
> Running TC 5.5.15 on Windows server 2003, JRE 1.5.0_12.
> 
> Where do I start looking to try to fix the exception below?  I get this
> on most startups of Tomcat.  I know it's related to reloading sessions
> that were saved on the previous shutdown, and I've fixed a few
> serialization errors in my classes, but can't figure this one out.  The
> shutdown appears to be normal in the log:

Do you actually need to reload the saved sessions?

p


> Oct 15, 2007 4:17:14 PM org.apache.coyote.http11.Http11AprProtocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8081
> Oct 15, 2007 4:17:14 PM org.apache.coyote.ajp.AjpAprProtocol pause
> INFO: Pausing Coyote AJP/1.3 on ajp-8009
> Oct 15, 2007 4:17:15 PM org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> 2007-10-15 16:17:15:  debugValue = 1: Context destroyed:
> org.apache.catalina.core.ApplicationContextFacade@1829e6f
> Oct 15, 2007 4:17:15 PM org.apache.coyote.http11.Http11AprProtocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8081
> Oct 15, 2007 4:17:15 PM org.apache.coyote.ajp.AjpAprProtocol destroy
> INFO: Stopping Coyote AJP/1.3 on ajp-8009
> 
> 
> 
> 
> Oct 15, 2007 4:17:29 PM org.apache.coyote.http11.Http11AprProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8081
> Oct 15, 2007 4:17:29 PM org.apache.coyote.ajp.AjpAprProtocol init
> INFO: Initializing Coyote AJP/1.3 on ajp-8009
> Oct 15, 2007 4:17:29 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 500 ms
> Oct 15, 2007 4:17:29 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Oct 15, 2007 4:17:29 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
> Oct 15, 2007 4:17:29 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Oct 15, 2007 4:17:29 PM org.apache.catalina.startup.ContextConfig
> applicationWebConfig
> INFO: Missing application web.xml, using defaults only
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[]
> Oct 15, 2007 4:17:29 PM org.apache.catalina.session.StandardManager doLoad
> SEVERE: IOException while loading persisted sessions:
> java.io.StreamCorruptedException
> java.io.StreamCorruptedException
>    at
> java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Unknown
> Source)
>    at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
>    at
> java.io.ObjectInputStream$BlockDataInputStream.skipBlockData(Unknown
> Source)
>    at java.io.ObjectInputStream.skipCustomData(Unknown Source)
>    at java.io.ObjectInputStream.readSerialData(Unknown Source)
>    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>    at java.io.ObjectInputStream.readObject0(Unknown Source)
>    at java.io.ObjectInputStream.readObject(Unknown Source)
>    at java.util.ArrayList.readObject(Unknown Source)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>    at java.lang.reflect.Method.invoke(Unknown Source)
>    at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
>    at java.io.ObjectInputStream.readSerialData(Unknown Source)
>    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>    at java.io.ObjectInputStream.readObject0(Unknown Source)
>    at java.io.ObjectInputStream.readObject(Unknown Source)
>    at
> org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1384)
> 
>    at
> org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:919)
> 
>    at
> org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:393)
> 
>    at
> org.apache.catalina.session.StandardManager.load(StandardManager.java:320)
>    at
> org.apache.catalina.session.StandardManager.start(StandardManager.java:636)
>    at
> org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)
>    at
> org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:403)
> 
>    at
> org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1066)
>    at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
> 
>    at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 
>    at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4111)
>    at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> 
>    at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>    at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
> 
>    at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
> 
>    at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
>    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>    at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>    at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 
>    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>    at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>    at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>    at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>    at java.lang.reflect.Method.invoke(Unknown Source)
>    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Oct 15, 2007 4:17:29 PM org.apache.catalina.session.StandardManager start
> SEVERE: Exception loading sessions from persistent storage
> java.io.StreamCorruptedException
>    at
> java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Unknown
> Source)
>    at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
>    at
> java.io.ObjectInputStream$BlockDataInputStream.skipBlockData(Unknown
> Source)
>    at java.io.ObjectInputStream.skipCustomData(Unknown Source)
>    at java.io.ObjectInputStream.readSerialData(Unknown Source)
>    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>    at java.io.ObjectInputStream.readObject0(Unknown Source)
>    at java.io.ObjectInputStream.readObject(Unknown Source)
>    at java.util.ArrayList.readObject(Unknown Source)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>    at java.lang.reflect.Method.invoke(Unknown Source)
>    at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
>    at java.io.ObjectInputStream.readSerialData(Unknown Source)
>    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>    at java.io.ObjectInputStream.readObject0(Unknown Source)
>    at java.io.ObjectInputStream.readObject(Unknown Source)
>    at
> org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1384)
> 
>    at
> org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:919)
> 
>    at
> org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:393)
> 
>    at
> org.apache.catalina.session.StandardManager.load(StandardManager.java:320)
>    at
> org.apache.catalina.session.StandardManager.start(StandardManager.java:636)
>    at
> org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)
>    at
> org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:403)
> 
>    at
> org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1066)
>    at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
> 
>    at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 
>    at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4111)
>    at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> 
>    at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>    at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
> 
>    at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
> 
>    at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
>    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>    at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>    at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 
>    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>    at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>    at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>    at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>    at java.lang.reflect.Method.invoke(Unknown Source)
>    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 2007-10-15 16:17:29:  debugValue = 1: Context initialized: 
> org.apache.catalina.core.ApplicationContextFacade@d1c778
> Oct 15, 2007 4:17:29 PM org.apache.coyote.http11.Http11AprProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8081
> Oct 15, 2007 4:17:29 PM org.apache.coyote.ajp.AjpAprProtocol start
> INFO: Starting Coyote AJP/1.3 on ajp-8009
> Oct 15, 2007 4:17:29 PM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Oct 15, 2007 4:17:30 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 640 ms
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


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


Mime
View raw message