Tomcat:IOException while loading persisted sessions: java.io.EOFException解决

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_28066437/article/details/48493465


omcat:IOException while loading persisted sessions: java.io.EOFException解决手记
一直用tomcat一段时间都正常无事,最近一次启动tomcat就发生以下异常:

严重: IOException while loading persisted sessions: java.io.EOFException
严重: Exception loading sessions from persistent storage

原因是tomcat对硬盘的session读取失败,彻底解决办法一下:将tomcat下的webapps打开,找出本项目work下面的文件清空,(主要是*.ser文件),或者只是删除掉session.ser即可以解决。 

展开阅读全文

重启tomcat报错,IOException while loading persisted sessions

05-31

已经试过两种解决方法:(还没有解决,请大神们帮忙!先谢过了)rn第一种:rn在server.xml中Context下添加如下的内容:rnrn rn rn第二种:rn让类实现接口java.io.Serializablernrn错误: rn[code=java]严重: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: cn.com.qzinfo.module.menu.model.SubMenu rnjava.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: cn.com.qzinfo.module.menu.model.SubMenu rn at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) rn at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) rn at java.util.ArrayList.readObject(ArrayList.java:733) rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) rn at java.lang.reflect.Method.invoke(Method.java:601) rn at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991) rn at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866) rn at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) rn at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) rn at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) rn at java.util.HashMap.readObject(HashMap.java:1043) rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) rn at java.lang.reflect.Method.invoke(Method.java:601) rn at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991) rn at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866) rn at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [/code] 论坛

TOMCAT启动问题 java.io.EOFException

12-29

2005-12-29 12:39:35 org.apache.coyote.http11.Http11BaseProtocol pausern信息: Pausing Coyote HTTP/1.1 on http-80rn2005-12-29 12:39:46 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.path: D:\Java\jdk1.5.0_05\bin;.;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\WBEM;d:\j2sdk1.4.2_07;d:\j2sdk1.4.2_07\bin;.;d:\j2sdk1.4.2_07\lib ;d:\Program Files\Microsoft SQL Server\80\Tools\BINN;\;\DOS;rn2005-12-29 12:39:46 org.apache.coyote.http11.Http11BaseProtocol initrn信息: Initializing Coyote HTTP/1.1 on http-80rn2005-12-29 12:39:46 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1937 msrn2005-12-29 12:39:47 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2005-12-29 12:39:47 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/5.5.12rn2005-12-29 12:39:47 org.apache.catalina.core.StandardHost startrn信息: XML validation disabledrn2005-12-29 12:39:47 org.apache.catalina.core.StandardContext processTldsrn严重: Error reading tld listeners java.io.EOFExceptionrnjava.io.EOFExceptionrn at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2232)rn at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2698)rn at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:750)rn at java.io.ObjectInputStream.(ObjectInputStream.java:268)rn at org.apache.catalina.startup.TldConfig.processCache(TldConfig.java:387)rn at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:288)rn at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4216)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4072)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:680)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:536)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2005-12-29 12:39:48 org.apache.catalina.startup.ContextConfig applicationWebConfigrn信息: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/gdmo] 论坛

Exception loading sessions from persistent storage

07-21

Eclipse的这种异常怎么解决rnException loading sessions from persistent storagernjava.io.EOFExceptionrn at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281)rn at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)rn at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)rn at java.io.ObjectInputStream.(ObjectInputStream.java:280)rn at org.apache.catalina.util.CustomObjectInputStream.(CustomObjectInputStream.java:58)rn at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:362)rn at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)rn at org.apache.catalina.session.StandardManager.start(StandardManager.java:637)rn at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 论坛

请教一个java.io.EOFException异常的解决

08-14

下面的代码,没有文件user.ini运行时正常,有的时候会出现Reading Error123:java.io.EOFException,此时的rnallconfigfile及currentfile也尚未赋值,但感觉跟这个没关系,请大家指点下新手rn=========================rnclass Usersetup implements Serializable rn private Vector allconfigfile = new Vector();rnrn private String currentfile;rnrn public Usersetup() rnrn rnrn public void init() rn File configfile = new File("Data\\user.ini");rn if (configfile.exists()) rn try rn FileInputStream fi = new FileInputStream(configfile);rn ObjectInputStream si = new ObjectInputStream(fi);rn this.currentfile = ((Usersetup) si.readObject()).currentfile;rn this.allconfigfile = ((Usersetup) si.readObject()).allconfigfile;rn si.close();rn catch (Exception e) rn System.out.print("Reading Error123:" + e);rn System.exit(1);rn rn else rn try rn FileOutputStream fo = new FileOutputStream(configfile);rn ObjectOutputStream so = new ObjectOutputStream(fo);rn so.writeObject(this);rn so.close();rn catch (Exception e) rn System.out.println("Saving Error:" + e);rn System.exit(1);rn rn rn rnrn public int getFileNumber() rn return (allconfigfile.size());rn rnrn public void print() rn int i;rn for (i = 1; i < 10; i++) rn System.out.print("[" + i + "]");rn if (i <= allconfigfile.size()) rn System.out.print(allconfigfile.elementAt(i));rn rn System.out.println();rn rn System.out.println("[0]返回");rn rn rn 论坛

TOMCAT出错 java.io.EOFException,这是什么问题呢?

08-05

错误日志:rn** BEGIN NESTED EXCEPTION ** rnrnjava.io.EOFExceptionrnrnSTACKTRACE:rnrnjava.io.EOFExceptionrn at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1913)rn at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2304)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2803)rn at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)rn at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:3170)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:3099)rn at com.mysql.jdbc.Statement.execute(Statement.java:695)rn at com.mchange.v2.c3p0.impl.NewProxyStatement.execute(NewProxyStatement.java:1006)rn at server.dao.PagcountDao.addpagcount(PagcountDao.java:24)rn at server.dao.BusinessDelegate.addpagcount(BusinessDelegate.java:130)rn at face.servlet.updatemsg.doGet(updatemsg.java:49)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at face.filter.ConCloseFilter.doFilter(ConCloseFilter.java:27)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)rn at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)rn at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)rn at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)rn at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)rn at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)rn at java.lang.Thread.run(Thread.java:595)rnrnrn** END NESTED EXCEPTION **rnrnrnrnLast packet sent to the server was 14 ms ago.rncom.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: rnrn** BEGIN NESTED EXCEPTION ** rnrnjava.io.EOFExceptionrnrnSTACKTRACE:rnrnjava.io.EOFExceptionrn at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1913)rn at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2304)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2803)rn at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)rn at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:3170)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:3099)rn at com.mysql.jdbc.Statement.executeQuery(Statement.java:1169)rn at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)rn at server.dao.ProgramDao.Selectprogram(ProgramDao.java:22)rn at server.dao.BusinessDelegate.Selectprogram(BusinessDelegate.java:20)rn at org.apache.jsp.index_jsp._jspService(index_jsp.java:97)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:390)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at face.filter.ConCloseFilter.doFilter(ConCloseFilter.java:27)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)rn at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)rn at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)rn at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)rn at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)rn at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)rn at java.lang.Thread.run(Thread.java:595)rnrnrn** END NESTED EXCEPTION **rnrnrnrnLast packet sent to the server was 9 ms ago.rn2009-8-5 9:15:30 org.apache.catalina.core.ApplicationContext logrn信息: java.lang.NullPointerExceptionrn 论坛

One or more errors encountered while loading the designer.

07-02

在一个Winform程序中新建一个Resource File,生成Resource1.resx和Resource1.Designer.cs文件,之后在Resource1.Designer.cs文件中添加一个方法:rn[code=C#]rnpublic static string GetString(string name)rnrn return ResourceManager.GetString(name);rnrn[/code]rn然后在Form1.Designer.cs中:rn[code=C#]this.Text = Resource1.GetString("String1");[/code]rnrn之后双击Form1.cs,窗口显示异常:rn One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. rnrnMethod 'WindowsApplication1.Resource1.GetString' not found. rnHide rnrnat Microsoft.VisualStudio.Shell.Design.VirtualType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)rnat System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)rnat System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)rnat System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)rnat System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement) rnrn但是运行程序,程序运行正常,且Resource1中的String1也能成功显示。rnrn望高手指点!~~ 论坛

java.io.EOFException

03-11

急求这个问题的解决办法,是在LINUX下才会出现我用的是dbcp数据源,系统运行一段时间就回报:rnjava.io.EOFExceptionrnMESSAGE: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.rnrnSTACKTRACE:rnrnjava.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.rn at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997)rn at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2411)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916)rn at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)rn at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)rn at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)rn at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1448)rn at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)rn at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:139)rn at org.hibernate.loader.Loader.getResultSet(Loader.java:1669)rn at org.hibernate.loader.Loader.doQuery(Loader.java:662)rn at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)rn at org.hibernate.loader.Loader.doList(Loader.java:2145)rn at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)rn at org.hibernate.loader.Loader.list(Loader.java:2024)rn at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)rn at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1533)rn at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)rn at org.springframework.orm.hibernate3.HibernateTemplate$37.doInHibernate(HibernateTemplate.java:988)rn at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:366)rn at org.springframework.orm.hibernate3.HibernateTemplate.findByCriteria(HibernateTemplate.java:978)rn at org.springframework.orm.hibernate3.HibernateTemplate.findByCriteria(HibernateTemplate.java:971)rn at com.zhguo.fygl.dao.hibernate.MessageInfoDaoHibernate.messageList(MessageInfoDaoHibernate.java:1043)rn at com.zhguo.fygl.service.impl.MessageInfoServiceImpl.messageList(MessageInfoServiceImpl.java:337)rn at sun.reflect.GeneratedMethodAccessor633.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)rn at $Proxy13.messageList(Unknown Source)rn at com.zhguo.webapp.listener.IndexHtml.service(IndexHtml.java:117)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)rn at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)rn at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)rn at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)rn at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)rn at java.lang.Thread.run(Thread.java:619)rnrnrn** END NESTED EXCEPTION ** 论坛

java.io.EOFException at com.mysql.jdbc.MysqlIO.readFully

10-23

做压力测试,前三分钟还好 ,程序数据库和数据库服务器的cpu还可以,三分钟左右 ,数据库服务器(都是linux服务器)的cpu占用率几乎为0,程序也慢的没法用了,看tomcat log的文件,有两个错误,一个是本身的程序查询方法(经过了功能测试没问题),还有就是[code=text]Caused by: org.springframework.dao.DataAccessResourceFailureException: SqlMapClient operation; SQL []; rn--- The error occurred while applying a parameter map. rn--- Check the Izbhdpl.find-InlineParameterMap. rn--- Check the statement (query failed). rn--- Cause: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: rnrn** BEGIN NESTED EXCEPTION ** rnrnjava.io.EOFExceptionrnrnSTACKTRACE:rnrnjava.io.EOFExceptionrn at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1913)rn at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2357)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2803)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:812)rn at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1295)rn at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2262)rn at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:439)rn at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:1970)rn at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1387)rn at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1195)rn at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:693)rn at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:794)rn at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:168)rn at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:185)rn at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221)rn at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189)rn at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139)rn at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567)rn at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541)rn at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)rn at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:298)rn at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:209)rn at org.springframework.orm.ibatis.SqlMapClientTemplate.executeWithListResult(SqlMapClientTemplate.java:249)rn at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:296)rn at com.tfkj.core.dao.BaseDaoImpl.findAll(BaseDaoImpl.java:540)rn at com.tfkj.core.dao.BaseDaoImpl.findByPage(BaseDaoImpl.java:94)rn at com.tfkj.core.service.BaseCRUDService.findByPage(BaseCRUDService.java:260)rn at com.tfkj.zbhd.zbhd.handle.Impl.IzbhdplListHandleImpl.executeHandle(IzbhdplListHandleImpl.java:47)rn at com.tfkj.core.handle.BaseHandleImpl.init(BaseHandleImpl.java:57)rn at com.tfkj.zbhd.zbhd.action.IzbhdplListAction.before(IzbhdplListAction.java:61)rn at com.tfkj.core.action.BaseAction.execute(BaseAction.java:114)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:446)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:285)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.tfkj.zbhd.common.interceptor.ZbhdLoginInterceptor.intercept(ZbhdLoginInterceptor.java:23)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:544)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:662)rnrnrn** END NESTED EXCEPTION **rnrnrnrnLast packet sent to the server was 84554 ms ago.; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: rn--- The error occurred while applying a parameter map. rn--- Check the Izbhdpl.find-InlineParameterMap. rn--- Check the statement (query failed). rn--- Cause: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: [/code]rn不知道是怎么回事儿了 ,求大神帮忙 论坛

没有更多推荐了,返回首页