2 fallencity2011 fallencity2011 于 2015.06.24 14:47 提问

Tomcat7.0 SocketTimeoutException

异常如下,一直查不到怎么解决,忘高手指点

java.net.SocketTimeoutException
at org.apache.coyote.http11.InternalAprInputBuffer.fill(InternalAprInputBuffer.java:607)
at org.apache.coyote.http11.InternalAprInputBuffer$SocketInputBuffer.doRead(InternalAprInputBuffer.java:642)
at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:124)
at org.apache.coyote.http11.InternalAprInputBuffer.doRead(InternalAprInputBuffer.java:534)
at org.apache.coyote.Request.doRead(Request.java:422)
at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:290)
at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:449)
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:315)
at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:200)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:273)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.Reader.read(Reader.java:140)
at com.sun.jersey.core.util.ReaderWriter.readFromAsString(ReaderWriter.java:171)
at com.sun.jersey.core.util.ReaderWriter.readFromAsString(ReaderWriter.java:157)
at com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.readFromAsString(AbstractMessageReaderWriterProvider.java:114)
at com.sun.jersey.core.impl.provider.entity.BaseFormProvider.readFrom(BaseFormProvider.java:67)
at com.sun.jersey.core.impl.provider.entity.FormProvider.readFrom(FormProvider.java:73)
at com.sun.jersey.core.impl.provider.entity.FormProvider.readFrom(FormProvider.java:58)
at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:474)
at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:538)
at com.sun.jersey.server.impl.model.method.dispatch.FormDispatchProvider.processForm(FormDispatchProvider.java:103)
at com.sun.jersey.server.impl.model.method.dispatch.FormDispatchProvider.access$000(FormDispatchProvider.java:68)
at com.sun.jersey.server.impl.model.method.dispatch.FormDispatchProvider$FormParameterProvider.getInjectableValues(FormDispatchProvider.java:115)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:183)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at services.filter.Ipfilter.doFilter(Ipfilter.java:101)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2378)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
JAVA 里关于几个 SocketTimeoutException 对应TCP的状态 for linux
<br />在建立 connect 过程中<br />a. Connection refused: connect 对应的Linux C error : ECONNREFUSED<br />是指的syn包发送, 对方没有对syn ack, 但在你设置的timeout时间里收到了对方的 reset的包<br />b. Connection timed out 对应的Linux C error: ETIMEDOUT<br />指的是syn包发送,对方没有syn ack, 但你设置的timeout的时间里没有收到
解决spring官方编辑器STS的SocketTimeoutException: connect timed out问题
sts是一个定制版的Eclipse,专为Spring开发定制的,方便创建调试运行维护Spring应用。 在创建Spring应用的过程同 https://start.spring.io/ 中所示–实际上访问的接口一致。实际上默认的创建地址使用的时候也是这个地址,而STS默认的访问地址的超时时间为60秒,这样在网络状况不佳的时候就会出现SocketTimeoutException: connect ...
SocketTimeoutException
java.net.SocketTimeoutException: failed to connect to /192.168.10.254 (port 8080) after 10000ms 开发场景: 开发工具:android studio 测试工具:夜神模拟器 异常发生:用okhttp请求数据 解决方法: 将手动改为无,即可测试。
『ANDROID』SocketTimeoutException和ConnectTimeoutException的区别
原文地址:http://www.cnblogs.com/carlosk/archive/2013/03/12/2956502.html 前几天服务器端的产品经理跑来问我是否有做请求超时和响应超时的处理。我一脸迷茫,直接就说:我做了开发这么久,从不知道什么是请求超时什么是响应超时。 后来我静下来仔细想想,确实应该有请求超时和响应超时这两个概念,不然会出很多问题的。 然后
SocketTimeoutException和ConnectException简介
SocketTimeoutException: 一、简介: SocketTimeoutException:指的是服务器响应超时 直接继承自java.io.InterruptedIOException,实现了可序列化接口。 类层次结构: 类声明: public class SocketTimeoutException extends InterruptedIOException
Android SocketTimeoutException异常分析
Android SocketTimeoutException异常分析环境说明Eclipse Android4.0 tcp client客户端程序问题描述在进行Android socket tcp通信开发的过程中碰到了下述异常,具体logcat错误如下:10-29 03:16:16.710: I/recv timeout(7476): java.net.SocketTimeoutException
出现连接超时SocketTimeoutException后一直连接不上的
需求频繁的上传数据,本来使用HttpClient上传数据,每次上传一段时间就会出现连接超时的问题,然后后续的请求统统都是连接超时。后来换了okhttp3.5还是一样的问题。不明白了。ios好好的,用的公司wifi,绑不绑电脑ip代理都会出现,而且只是个别手机出现。基本上运行一个小时才会出现,调试好费时间的。下面是我的解决方法,我也不知道为啥。很简陋 我的OKhttpClient是这样的,默认10秒。
android真机wifi连接本地Tomcat出现SocketTimeOutException连接超时解决方法
项目环境:Tomcat+mysql+eclipse+android,本地pc作为服务器,也发射一个wifi热点(用的是360wifi) 我的Tomcat服务器,搭建的在本地pc上的,内网测试项目的地址在浏览器是可以连通的,但是用android真机连接地址时却会出现SocketTimeOutException连接超时现象,找了很久没发现有直接解答的答案,有的帖子说解决了,楼主却一去不返,郁闷无语,
apache-tomcat-7.0
Tomcat7.0, Tomcat7.0, Tomcat7.0, Tomcat7.0, Tomcat7.0
eclipse 创建springboot 提示socketexcetion问题
问题:使用eclipse 创建spring starter projecct 时候提示无连接,访问 Eclipse Marketplace 也提示:连接失败 处理方法:修改eclipse.ini文件,在文件末尾添加如下内容:-Djava.net.preferIPv4Stack=true...