0 Replies Latest reply on Oct 31, 2015 6:22 AM by Sudhir Kumar

    java.net.SocketException: Connection reset

    Sudhir Kumar Newbie

      Hi,

       

      We are running web-service in Jboss server using REST and we are accessing the web-service using a client. we get Connection Reset issue only in the production environment we couldn't replicate the case in our local environment.

       

      Any suggestions and feedback for the issue root cause, replication and resolving is appreciated..

       

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ScanSession].[Jersey REST Service]] Servlet.service() for servlet Jersey REST Service threw exception

      java.net.SocketException: Connection reset

          at java.net.SocketInputStream.read(SocketInputStream.java:196)

          at java.net.SocketInputStream.read(SocketInputStream.java:122)

          at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:716)

          at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:746)

          at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116)

          at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:675)

          at org.apache.coyote.Request.doRead(Request.java:428)

          at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:297)

          at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:405)

          at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:312)

          at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)

          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.provider.AbstractMessageReaderWriterProvider.readFromAsString(AbstractMessageReaderWriterProvider.java:89)

          at com.sun.jersey.core.impl.provider.entity.StringProvider.readFrom(StringProvider.java:70)

          at com.sun.jersey.core.impl.provider.entity.StringProvider.readFrom(StringProvider.java:57)

          at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:393)

          at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:139)

          at com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:43)

          at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:126)

          at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:173)

          at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)

          at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163)

          at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)

          at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)

          at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)

          at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:654)

          at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612)

          at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:603)

          at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309)

          at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425)

          at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:590)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

          at java.lang.Thread.run(Thread.java:745)

       

      Regards

      Sudhir