首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

在代码上怎样避免内存溢出异常: IOException while loading persisted sessions: java.io.

2014-01-26 
代码开发的时候,偶然会出现内存溢出异常,不知道怎么避免,相信在系统使用中也会出现这个异常。以下是出异常的

代码开发的时候,偶然会出现内存溢出异常,不知道怎么避免,相信在系统使用中也会出现这个异常。
  以下是出异常的信息,请帮忙看一下
  信息: validateJarFile(E:\HZSZ\hzsz\oa\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
 
  2005-07-22 15:18:31,765 ERROR catalina.session.ManagerBase:395 -> IOException while loading persisted sessions: java.io.EOFException
 
  java.io.EOFException
 
  at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2165)
 
  at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2631)
 
  at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
 
  at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
 
  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:315)
 
  at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:635)
 
  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:4290)
 
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
 
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 
  at org.apache.catalina.core.StandardService.start(StandardService.java:480)
 
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
 
  at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 
  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.catalina.startup.Bootstrap.start(Bootstrap.java:284)
 
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
 
  2005-07-22 15:18:31,890 ERROR catalina.session.ManagerBase:659 -> Exception loading sessions from persistent storage
 
  java.io.EOFException
 
  at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2165)
 
  at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2631)
 
  at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
 
  at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
 
  at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:56)
          

热点排行