码迷,mamicode.com
首页 > Web开发 > 详细

关于org.apache.catalina.session.StandardManager doLoad错误的解决

时间:2015-01-12 17:28:52      阅读:259      评论:0      收藏:0      [点我收藏+]

标签:

2008-7-10 12:48:36 org.apache.catalina.session.StandardManager doLoad 严重: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: vo.OrderInfoVO java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: vo.OrderInfoVO  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:1392)  at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:921)  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.core.StandardContext.start(StandardContext.java:4155)  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.deployDirectory(HostConfig.java:904)  at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)  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:1021)  at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)  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:709)  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:294)  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: java.io.NotSerializableException: vo.OrderInfoVO  at java.io.ObjectOutputStream.writeObject0(Unknown Source)  at java.io.ObjectOutputStream.writeObject(Unknown Source)  at java.util.ArrayList.writeObject(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.invokeWriteObject(Unknown Source)  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)  at java.io.ObjectOutputStream.writeObject0(Unknown Source)  at java.io.ObjectOutputStream.writeObject(Unknown Source)  at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1468)  at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:938)  at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:516)  at org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)  at org.apache.catalina.session.StandardManager.stop(StandardManager.java:666)  at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4358)  at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)  at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1164)  at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1135)  at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)  at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1054)  at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)  at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)  at org.apache.catalina.core.StandardService.stop(StandardService.java:512)  at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)  at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)  at org.apache.catalina.startup.Catalina.start(Catalina.java:576)  ... 6 more 2008-7-10 12:48:36 org.apache.catalina.session.StandardManager start 严重: Exception loading sessions from persistent storage java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: vo.OrderInfoVO  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:1392)  at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:921)  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.core.StandardContext.start(StandardContext.java:4155)  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.deployDirectory(HostConfig.java:904)  at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)  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:1021)  at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)  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:709)  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:294)  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: java.io.NotSerializableException: vo.OrderInfoVO  at java.io.ObjectOutputStream.writeObject0(Unknown Source)  at java.io.ObjectOutputStream.writeObject(Unknown Source)  at java.util.ArrayList.writeObject(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.invokeWriteObject(Unknown Source)  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)  at java.io.ObjectOutputStream.writeObject0(Unknown Source)  at java.io.ObjectOutputStream.writeObject(Unknown Source)  at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1468)  at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:938)  at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:516)  at org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)  at org.apache.catalina.session.StandardManager.stop(StandardManager.java:666)  at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4358)  at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)  at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1164)  at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1135)  at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)  at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1054)  at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)  at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)  at org.apache.catalina.core.StandardService.stop(StandardService.java:512)  at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)  at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)  at org.apache.catalina.startup.Catalina.start(Catalina.java:576)  ... 6 more

网络上的解决方案:   (1) Tomcat/work/Catalina/localhost/工程名/SESSIONS.ser session未超时的情况下服务器关闭大的时候被序列化为工程名/SESSIONS.ser 启动的时候再加载进来,加载的时候报错了,把该文件删除,重新启动     补充:有时候不一定是SESSIONS.ser,我的那个下面就多了一个tldCache.ser,反正将里面以.ser结尾的都删除就是的 (2)tomcat 启动的问题(org.apache.catalina.session.StandardManager.doLoad: IOException while loading persisted sessions) 大概是说tomcat上次关闭时还有一些活动连接,所以在重启时tomcat尝试去恢复这些session造成的。 tomcat的work目录下面的东西删一遍。

关于org.apache.catalina.session.StandardManager doLoad错误的解决

标签:

原文地址:http://www.cnblogs.com/htys/p/4218736.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!