java.net.SocketTimeoutException: Read timed out

Atlassian JIRA | Pelle Kirkeby | 4 years ago
  1. 0

    h3. Steps to reproduce If a project has a high number of Components the Create Issue popup is either slow to load(Chrome & Firefox) or will return a "Read timed out" in Internet Explorer. This was tested with 20,000+ Components. h3. Results - Internet Explorer throws error when clicking the 'Create Issue' link in navigation header: {code} {"message":"Read timed out","status-code":500,"stack-trace":"java.net.SocketTimeoutException: Read timed out\n\tat java.net.SocketInputStream.socketRead0(Native Method)\n\tat java.net.SocketInputStream.read(SocketInputStream.java:129)\n\tat org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:532)\n\tat org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:501)\n\tat org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:563)\n\tat org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:118)\n\tat org.apache.coyote.http11.AbstractInputBuffer.doRead(AbstractInputBuffer.java:346)\n\tat org.apache.coyote.Request.doRead(Request.java:422)\n\tat org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:290)\n\tat org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:431)\n\tat org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:315)\n\tat org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:200)\n\tat org.codehaus.jackson.impl.ByteSourceBootstrapper.ensureLoaded(ByteSourceBootstrapper.java:507)\n\tat org.codehaus.jackson.impl.ByteSourceBootstrapper.detectEncoding(ByteSourceBootstrapper.java:129)\n\tat org.codehaus.jackson.impl.ByteSourceBootstrapper.constructParser(ByteSourceBootstrapper.java:224)\n\tat org.codehaus.jackson.JsonFactory._createJsonParser(JsonFactory.java:785)\n\tat org.codehaus.jackson.JsonFactory.createJsonParser(JsonFactory.java:561)\n\tat org.codehaus.jackson.jaxrs.JacksonJsonProvider.readFrom(JacksonJsonProvider.java:414)\n\tat com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:474)\n\tat com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)\n\tat com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:46)\n\tat com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$EntityParamInInvoker.getParams(DispatchProviderHelper.java:159)\n\tat com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:228)\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)\n\tat com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:795)\n\tat com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73)\n\tat com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)\n\tat com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)\n\tat com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)\n\tat com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)\n\tat com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)\n\tat com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)\n\tat com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)\n\tat com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilterInternal(RestServletUtilsUpdaterFilter.java:26)\n\tat com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilter(RestServletUtilsUpdaterFilter.java:40)\n\tat com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)\n\tat {code} - Chrome will load the Create Issue popup slowly, and entering anything in the Components field will cause high CPU load and 10sec+ for anything entered in the field to register. - Firefox appears to be the least affected browser. Although not as fast as one might desire, the load time is only a few seconds for both Create Issue popup and for anything to register in the Components field. h3. Workaround Any slow load time during Auto-Complete in the Components field will not be affected by this. This can be used to work around the problem in Internet Explorer, in case it is not possible to use a different browser. - Disable the Create Issue popup. See more details on how to do that here: https://confluence.atlassian.com/display/JIRAKB/How+to+disable+Create+Issue+popup

    Atlassian JIRA | 4 years ago | Pelle Kirkeby
    java.net.SocketTimeoutException: Read timed out
  2. 0

    h3. Steps to reproduce If a project has a high number of Components the Create Issue popup is either slow to load(Chrome & Firefox) or will return a "Read timed out" in Internet Explorer. This was tested with 20,000+ Components. h3. Results - Internet Explorer throws error when clicking the 'Create Issue' link in navigation header: {code} {"message":"Read timed out","status-code":500,"stack-trace":"java.net.SocketTimeoutException: Read timed out\n\tat java.net.SocketInputStream.socketRead0(Native Method)\n\tat java.net.SocketInputStream.read(SocketInputStream.java:129)\n\tat org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:532)\n\tat org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:501)\n\tat org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:563)\n\tat org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:118)\n\tat org.apache.coyote.http11.AbstractInputBuffer.doRead(AbstractInputBuffer.java:346)\n\tat org.apache.coyote.Request.doRead(Request.java:422)\n\tat org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:290)\n\tat org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:431)\n\tat org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:315)\n\tat org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:200)\n\tat org.codehaus.jackson.impl.ByteSourceBootstrapper.ensureLoaded(ByteSourceBootstrapper.java:507)\n\tat org.codehaus.jackson.impl.ByteSourceBootstrapper.detectEncoding(ByteSourceBootstrapper.java:129)\n\tat org.codehaus.jackson.impl.ByteSourceBootstrapper.constructParser(ByteSourceBootstrapper.java:224)\n\tat org.codehaus.jackson.JsonFactory._createJsonParser(JsonFactory.java:785)\n\tat org.codehaus.jackson.JsonFactory.createJsonParser(JsonFactory.java:561)\n\tat org.codehaus.jackson.jaxrs.JacksonJsonProvider.readFrom(JacksonJsonProvider.java:414)\n\tat com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:474)\n\tat com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)\n\tat com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:46)\n\tat com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$EntityParamInInvoker.getParams(DispatchProviderHelper.java:159)\n\tat com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:228)\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)\n\tat com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:795)\n\tat com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73)\n\tat com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)\n\tat com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)\n\tat com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)\n\tat com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)\n\tat com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)\n\tat com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)\n\tat com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)\n\tat com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilterInternal(RestServletUtilsUpdaterFilter.java:26)\n\tat com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilter(RestServletUtilsUpdaterFilter.java:40)\n\tat com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)\n\tat {code} - Chrome will load the Create Issue popup slowly, and entering anything in the Components field will cause high CPU load and 10sec+ for anything entered in the field to register. - Firefox appears to be the least affected browser. Although not as fast as one might desire, the load time is only a few seconds for both Create Issue popup and for anything to register in the Components field. h3. Workaround Any slow load time during Auto-Complete in the Components field will not be affected by this. This can be used to work around the problem in Internet Explorer, in case it is not possible to use a different browser. - Disable the Create Issue popup. See more details on how to do that here: https://confluence.atlassian.com/display/JIRAKB/How+to+disable+Create+Issue+popup

    Atlassian JIRA | 4 years ago | Pelle Kirkeby
    java.net.SocketTimeoutException: Read timed out
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Need to finish handling IE11 Slowness on relaod of tabs and DWR

    GitHub | 2 years ago | jtesser
    com.dotcms.repackage.org.directwebremoting.extend.ServerException: Failed to read input
  5. 0

    org.apache.solr.common.SolrException - SocketTimeoutException: Read timed out

    Stack Overflow | 2 years ago | Pavel Polivka
    java.lang.RuntimeException: [was class java.net.SocketTimeoutException] Read timed out

  1. Aria Pahlavan 4 times, last 2 weeks ago
  2. poroszd 4 times, last 3 weeks ago
  3. mauritius 24 times, last 1 month ago
  4. aldrinleal 1 times, last 1 month ago
  5. Nikolay Rybak 1 times, last 1 month ago
11 more registered users
70 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketTimeoutException

    Read timed out

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    SocketInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.read(SocketInputStream.java:129)
    2 frames
  3. Grizzly HTTP
    Request.doRead
    1. org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:532)
    2. org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:501)
    3. org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:563)
    4. org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:118)
    5. org.apache.coyote.http11.AbstractInputBuffer.doRead(AbstractInputBuffer.java:346)
    6. org.apache.coyote.Request.doRead(Request.java:422)
    6 frames
  4. Glassfish Core
    InputBuffer.realReadBytes
    1. org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:290)
    1 frame
  5. Tomcat Util
    ByteChunk.substract
    1. org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:431)
    1 frame
  6. Glassfish Core
    CoyoteInputStream.read
    1. org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:315)
    2. org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:200)
    2 frames
  7. Jackson
    JsonFactory.createJsonParser
    1. org.codehaus.jackson.impl.ByteSourceBootstrapper.ensureLoaded(ByteSourceBootstrapper.java:507)
    2. org.codehaus.jackson.impl.ByteSourceBootstrapper.detectEncoding(ByteSourceBootstrapper.java:129)
    3. org.codehaus.jackson.impl.ByteSourceBootstrapper.constructParser(ByteSourceBootstrapper.java:224)
    4. org.codehaus.jackson.JsonFactory._createJsonParser(JsonFactory.java:785)
    5. org.codehaus.jackson.JsonFactory.createJsonParser(JsonFactory.java:561)
    5 frames
  8. JAX-RS provider for JSON content type
    JacksonJsonProvider.readFrom
    1. org.codehaus.jackson.jaxrs.JacksonJsonProvider.readFrom(JacksonJsonProvider.java:414)
    1 frame
  9. Jersey
    InjectableValuesProvider.getInjectableValues
    1. com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:474)
    2. com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)
    3. com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:46)
    3 frames
  10. com.atlassian.plugins
    DispatchProviderHelper$ResponseOutInvoker._dispatch
    1. com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$EntityParamInInvoker.getParams(DispatchProviderHelper.java:159)
    2. com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:228)
    2 frames
  11. Jersey
    WebApplicationImpl.handleRequest
    1. com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
    2. com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
    3. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    4. com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
    5. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    6. com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
    7. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
    8. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
    9. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
    10. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
    10 frames
  12. Jersey
    ServletContainer.service
    1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
    2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
    2 frames
  13. com.atlassian.plugins
    RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter
    1. com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178)
    1 frame
  14. Jersey
    ServletContainer.doFilter
    1. com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:795)
    1 frame
  15. com.atlassian.plugins
    RestDelegatingServletFilter.doFilter
    1. com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73)
    1 frame
  16. com.atlassian.plugin
    DelegatingPluginFilter$1.doFilter
    1. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
    2. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
    3. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)
    4. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)
    5. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
    6. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
    7. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)
    7 frames
  17. com.atlassian.plugins
    RestServletUtilsUpdaterFilter.doFilter
    1. com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilterInternal(RestServletUtilsUpdaterFilter.java:26)
    2. com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilter(RestServletUtilsUpdaterFilter.java:40)
    2 frames
  18. com.atlassian.plugin
    DelegatingPluginFilter.doFilter
    1. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
    1 frame