最近启动tomcat时总是报有一些错,一开始没怎么注意,因为对项目操作没什么大的影响,今天闲下来看了看。
[2011-02-28 10:36:01] - getParameters()
org.apache.commons.fileupload.FileUploadException: Connection reset
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:381)
at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
at eg.java.net.web.jspx.engine.util.RequestUtil.getParameters(RequestUtil.java:44)
at eg.java.net.web.jspx.ui.pages.Page.loadMultiPartForm(Page.java:394)
at eg.java.net.web.jspx.ui.pages.Page.continueServing(Page.java:220)
at eg.java.net.web.jspx.engine.RequestHandler.start(RequestHandler.java:156)
at eg.java.net.web.jspx.engine.RequestHandler.doPost(RequestHandler.java:63)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.inspur.filter.CharsetFilter.doFilter(CharsetFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:748)
at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:778)
at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116)
at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:713)
at org.apache.coyote.Request.doRead(Request.java:419)
at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:264)
at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403)
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:279)
at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:977)
at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887)
at java.io.InputStream.read(InputStream.java:89)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:94)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)
at org.apache.commons.fileupload.MultipartStream.readBodyData(MultipartStream.java:593)
at org.apache.commons.fileupload.MultipartStream.discardBodyData(MultipartStream.java:619)
at org.apache.commons.fileupload.MultipartStream.skipPreamble(MultipartStream.java:638)
at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.findNextItem(FileUploadBase.java:961)
at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:942)
at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:349)
... 25 more
Caused by:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:748)
at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:778)
at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116)
at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:713)
at org.apache.coyote.Request.doRead(Request.java:419)
at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:264)
at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403)
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:279)
at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:977)
at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887)
at java.io.InputStream.read(InputStream.java:89)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:94)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)
at org.apache.commons.fileupload.MultipartStream.readBodyData(MultipartStream.java:593)
at org.apache.commons.fileupload.MultipartStream.discardBodyData(MultipartStream.java:619)
at org.apache.commons.fileupload.MultipartStream.skipPreamble(MultipartStream.java:638)
at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.findNextItem(FileUploadBase.java:961)
at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:942)
at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:349)
at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
at eg.java.net.web.jspx.engine.util.RequestUtil.getParameters(RequestUtil.java:44)
at eg.java.net.web.jspx.ui.pages.Page.loadMultiPartForm(Page.java:394)
at eg.java.net.web.jspx.ui.pages.Page.continueServing(Page.java:220)
at eg.java.net.web.jspx.engine.RequestHandler.start(RequestHandler.java:156)
at eg.java.net.web.jspx.engine.RequestHandler.doPost(RequestHandler.java:63)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.inspur.filter.CharsetFilter.doFilter(CharsetFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
网上一些说法:
1,网络编程时未正确捕获java.net.SocketException,客户端先关闭就会报这个异常;
2,数据库和应用服务器的网段不同.
b。好像说防火墙的比较多。。。。
大部分是网络的原因。提交post的东西多,然后服务器接收就超时了。。。
c。如果weblogic server和数据库服务器不在同一台主机,会经常有这种情况,我也遇到过,不过好像的确不怎么影响使用
d。从根本上说是weblogic sp2的bug
e。一般是有些客户端已关闭,一些线程因为延迟等原因觉察不到此连接已结束,继续等到到出错或是 客户端那里不停刷或一个访问/刷新没完成前再刷,要让这个无用的线程死掉和这个错误如果不影响应用运行的话大可不必理会。有一种抛出这个异常的情况是:
浏览器请求了一个服务器端资源,在响应回来之前转而请求其他的资源。这个时候最初的浏览器跟服务器的连接中断,服务器的peer程序就会reset那个connection。
我的Tomcat是在本机启动的,而DB2数据库是用的虚拟机里的,不在一个网段,可能是这个原因吧。把应用部署到虚拟机上,错误消失。
但断掉网线,本机和虚拟机就在一个网段里了,但是依然报错,郁闷。
分享到:
相关推荐
- 不会在服务器端触发“IO: Broken pipe”或“IO: Connection reset”垃圾邮件错误。 - 有服务器端错误的解决方法 (https://bugs.mojang.com/browse/MC-154617) ************************** **********************...
尽管SSH2不直接使用Web界面,但这里可能是为SSH2相关的管理控制台或Web服务提供支持。 10. **ognl-2.6.11.jar** - OGNL(Object-Graph Navigation Language)是一种强大的表达式语言,用于在Java对象图中导航和操作...
在本案例中,我们可以通过修改组策略控制台的设置来解决IPv4无internet访问权限的问题。具体步骤如下: 1. 打开组策略控制台:在Windows 7系统的开场菜单中依次点选“所有程序〞/“附件〞/“运行〞命令,弹出对应...
##### 4.4 连接池中连接使用出错:connection reset by peer, 原因? **原因**: - 数据库连接超时。 - 网络连接问题。 - 数据库服务器重启或故障。 **解决方法**: - 设置合理的连接超时时间。 - 检查网络连接...
#### 三、LoadRunner错误:Connection Reset by Peer **错误描述:** 此错误通常发生在连接被远程端强制关闭的情况下。 **解决方法:** 1. **调整运行时设置:** 在运行时设置的“Internet Protocol Preferences...
if (ex.SocketErrorCode == SocketError.ConnectionReset) { Console.WriteLine("连接断开,尝试重连..."); Reconnect(socket, serverEndPoint); // 自定义的重连方法 } } } ``` 4. **重连方法实现** 重连方法...
您还将在控制台中看到任何棉绒错误。 npm test 在交互式监视模式下启动测试运行器。 有关更多信息,请参见关于的部分。 npm run build 构建生产到应用程序build文件夹。 它在生产模式下正确捆绑了React,并优化了...
SRVPro一个YGOPro服务器。现用于,和。支持功能Linux上运行Windows上运行玩家输入同一房名约战玩家不指定房间名,自动匹配在线玩家房间列表json广播消息召唤台词先行卡一键更新...server.js即可运行简易的控制台在 或
在日常工作中,我们经常需要通过远程桌面连接(Remote Desktop Connection,简称RDP)访问其他计算机或服务器。然而,在某些情况下,可能会遇到远程桌面连接用户数量达到上限的问题,导致无法进行新的连接。这时,...
3. Connection对象:在Java中,Connection对象用于建立应用程序和数据库之间的连接,是处理SQL语句的基础。 4. Python表达式:Python中的`print()`函数用于输出结果,`eval()`函数能执行字符串中的Python代码。在...
打开工具| 库包管理器| 程序包管理器控制台并运行以下命令。此步骤向项目添加了一组启用SignalR功能的脚本文件和程序集引用。 install-package Microsoft.AspNet.SignalR 在解决方案资源管理器中,展开脚本文件夹...
- **MSTSC.EXE** - Remote Desktop Connection远程桌面连接工具,实现远程控制功能。 - **NARRATOR.EXE** - Microsoft Narrator微软讲述人工具,提供文本朗读功能。 - **NETSETUP.EXE** - Network Setup Wizard网络...
- **log**:这是一个用于调试的工具,可以将信息输出到控制台或其他日志系统中。 - **env**:提供环境和YUI组件的相关信息,比如已加载的组件列表及其版本信息等。 - **YUI_config.listener**:允许开发者定义回...
set conn=server.CreateObject("adodb.connection") conn.open"driver={Microsoft Access driver (*.mdb)};dbq="&server.mappath("date/date.mdb") exec="select * from webset" 为程序中空缺处(1)选择正确答案...