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

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目录下面的东西删一遍。

时间: 2024-10-15 03:59:54

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

org.apache.catalina.session.StandardManager doLoad

转载自:http://www.cnblogs.com/java727/p/3300613.html SEVERE: IOException while loading persisted sessions: java.io.EOFExceptionjava.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2323) at java.io.ObjectInpu

session自定义存储,如何更好地进行session共享;读tomcat7源码,org.apache.catalina.session.FileStore可知

session自定义存储,如何更好地进行session共享: 读tomcat源码,org.apache.catalina.session.FileStore可知 一.详见: 方法1 public void save(Session session) try { ((StandardSession)session).writeObjectData(oos); } finally { oos.close(); } 方法2 public Session load(String id) ois = ne

ubuntu下apache虚拟主机出现forbidden错误的解决办法

交换两个变量:例如num1=5,num2=6→num1=6,num=5 怎么样?是不是觉得灰常简单,你是不是用下面的方法做的: int num1=5: int num2=6: int temp=num1: num1=num2; num2=temp; Console.WriteLine("num1={0},num2={1}",num1,num2); 好吧!你赢了!你做的非常对!就就是所谓的值传递 声明一个中间变量temp!没有可说的!大家都懂的! 接着我们来看下面这个比较犀利的出题人:

tomcat单独启动成功, eclipse启动tomcat报错, 错误一:找不到或无法加载主类 org.apache.catalina.startup.Bootstrap;错误二:端口被占用

针对刚遇到的tomcat单独启动成功,但是在eclipse启动tomcat就报错问题作出总结如下: 软件版本: 1. eclipse版本 ① Luna Service Release 2(4.4.2)    64位 ② Helios Service Release 2   64位 2. tomcat版本 ①apache-tomcat-6.0.14 ②apache-tomcat-6.0.35 3. JDK版本 jdk1.6.0_45 64位 错误详情: 1.  tomcat启动失败,错误提示: j

Linux centOS编译安装Apache报APR not found.错误的解决办法

我在编译安装完Nginx.MySQL和PHP(见之前一篇博客:LNMP环境搭建详细教程)之后,进行apache的编译安装: cd /usr/local/src wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.4.34.tar.gz tar zxvf httpd-2.4.34.tar.gz cd httpd-2.4.34 ./configure --prefix=/usr/local/httpd 就在这个时候提示:configure: erro

ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component解决

第一:先确定一下开发流程是否正确 1.写好servlet组件类 2.写好web.xml文件--向服务器介绍组件 3.发布--就是拷贝 注意:要拷贝包结构,不要只拷贝组件类文件 另外,拷贝的是.class文件,不是.java文件. 4.启动Tomcat服务器 如果流程正确还是如标题的问题,那就是web.xml肯定有问题 结构如下: <?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns=&

tomcat(11)org.apache.catalina.core.StandardWrapper源码剖析

[0]README 0.0)本文部分文字描述转自 "how tomcat works",旨在学习 "tomcat(11)StandardWrapper源码剖析" 的基础知识: 0.1)StandardWrapper 是 Catalina中对Wrapper接口的标准实现:要知道,tomcat 中有4种类型的容器:Engine,Host,Context 和 Wrapper:(干货--review  tomcat 中有4种类型的容器:Engine,Host,Context

org.apache.shiro.session.InvalidSessionException: java.lang.IllegalStateException: getAttribute: Session already invalidated] with root cause

1.遇到以下异常,找了好长时间,终于解决,报的异常如下: 七月 07, 2017 3:02:16 下午 org.apache.catalina.core.StandardWrapperValve invoke严重: Servlet.service() for servlet [SpringMVC] in context with path [/IMP] threw exception [org.apache.shiro.session.InvalidSessionException: java.

java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader

eclipse tomcat报错:org.apache.catalina.loader.DevLoader 这个错误是因为在eclipse的项目中配置了 tomcat属性为 active Devloader. 并且tomcat文件夹下 \Tomcat \conf\Catalina\localhost  xx.xm中有 <Context path="/permission" reloadable="true" docBase="F:\workspace