java.net.SocketTimeoutException: Read timed out

Atlassian JIRA | Lachlan Dally | 2 years ago
  1. 0

    If JIRA takes more than the default timeout in SAL (10 seconds) then anything that uses the application link, such as the JIRA Issues Macro or the highlighting panel, will fail. *Symptoms:* The following appears in atlassian-confluence.log: {code}java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:152) at java.net.SocketInputStream.read(SocketInputStream.java:122) at sun.security.ssl.InputRecord.readFully(InputRecord.java:442) at sun.security.ssl.InputRecord.read(InputRecord.java:480) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927) at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884) at sun.security.ssl.AppInputStream.read(AppInputStream.java:102) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService.get(HttpClientHttpRetrievalService.java:65){code} *Steps to Reproduce:* # Start up JIRA from source in debug mode. # Start up Confluence, and create an application link between the two instances # Set the Socket Timeout in General Configuration to, for example, 20000 (20 seconds) # Create a project and issue in JIRA # Set a breakpoint in JIRA anywhere that's convenient and hit the breakpoint # Create a new page in Confluence and open up the network tab of your Browser # Create a JIRA Issues Macro in Confluence and search for the new project. This will timeout *Expected Results* The macro times out after 20 seconds, as specified in Confluence's Socket Timeout. *Actual Results* The macro times out after 10 seconds, the default set in {{com.atlassian.sal.core.net.SystemPropertiesConnectionConfig}} *Workaround:* Add the following to your system properties in {{bin/setenv.sh}}: {code}CATALINA_OPTS="$CATALINA_OPTS -Dhttp.socketTimeout=YOUR_NEW_TIMEOUT"{code} For more information please see [Configuring System Properties|https://confluence.atlassian.com/display/DOC/Configuring+System+Properties].

    Atlassian JIRA | 2 years ago | Lachlan Dally
    java.net.SocketTimeoutException: Read timed out
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    If JIRA takes more than the default timeout in SAL (10 seconds) then anything that uses the application link, such as the JIRA Issues Macro or the highlighting panel, will fail. *Symptoms:* The following appears in atlassian-confluence.log: {code}java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:152) at java.net.SocketInputStream.read(SocketInputStream.java:122) at sun.security.ssl.InputRecord.readFully(InputRecord.java:442) at sun.security.ssl.InputRecord.read(InputRecord.java:480) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927) at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884) at sun.security.ssl.AppInputStream.read(AppInputStream.java:102) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService.get(HttpClientHttpRetrievalService.java:65){code} *Steps to Reproduce:* # Start up JIRA from source in debug mode. # Start up Confluence, and create an application link between the two instances # Set the Socket Timeout in General Configuration to, for example, 20000 (20 seconds) # Create a project and issue in JIRA # Set a breakpoint in JIRA anywhere that's convenient and hit the breakpoint # Create a new page in Confluence and open up the network tab of your Browser # Create a JIRA Issues Macro in Confluence and search for the new project. This will timeout *Expected Results* The macro times out after 20 seconds, as specified in Confluence's Socket Timeout. *Actual Results* The macro times out after 10 seconds, the default set in {{com.atlassian.sal.core.net.SystemPropertiesConnectionConfig}} *Workaround:* Add the following to your system properties in {{bin/setenv.sh}}: {code}CATALINA_OPTS="$CATALINA_OPTS -Dhttp.socketTimeout=YOUR_NEW_TIMEOUT"{code} For more information please see [Configuring System Properties|https://confluence.atlassian.com/display/DOC/Configuring+System+Properties].

    Atlassian JIRA | 2 years ago | Lachlan Dally
    java.net.SocketTimeoutException: Read timed out

  1. Nikolay Rybak 1 times, last 1 month ago
  2. tvrmsmith 1 times, last 4 months ago
  3. poroszd 3 times, last 5 months ago
  4. aldrinleal 1 times, last 5 months ago
  5. poroszd 2 times, last 8 months 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:152)
    3. java.net.SocketInputStream.read(SocketInputStream.java:122)
    3 frames
  3. Java JSSE
    AppInputStream.read
    1. sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
    2. sun.security.ssl.InputRecord.read(InputRecord.java:480)
    3. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
    4. sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
    5. sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
    5 frames
  4. Java RT
    BufferedInputStream.read
    1. java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    2. java.io.BufferedInputStream.read(BufferedInputStream.java:254)
    2 frames
  5. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
    2. org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
    3. org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
    4. org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
    5. org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
    6. org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
    7. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    8. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    9. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    10. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    10 frames