java.net.SocketTimeoutException: Read timed out

GitHub | YdjJervis | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Read timed out:程序直接结束掉了

    GitHub | 8 months ago | YdjJervis
    java.net.SocketTimeoutException: Read timed out
  2. 0

    [JIRA] (JENKINS-37894) Unmarshall error when provisoning instance

    Google Groups | 9 months ago | rxim...@ciandt.com (JIRA)
    com.amazonaws.AmazonClientException: Unable to unmarshall response (Read timed out). Response Code: 200, Response Text: OK
  3. 0

    I opted to provide slaves on demand using Amazon EC2 Plugin, but sometimes it takes 30+ minutes to spawn an Instance. All I have in Jenkins logs are some exceptions like the one below. Then.. with no apparent reason it works.. I don't know if it is a serious problem or not since the stacktrace is not clear to me. {code:java} Exception during provisioning com.amazonaws.AmazonClientException: Unable to unmarshall response (Read timed out). Response Code: 200, Response Text: OK at com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:1219) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:874) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:597) at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:363) at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:329) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:308) at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:13032) at com.amazonaws.services.ec2.AmazonEC2Client.describeImages(AmazonEC2Client.java:9133) at com.amazonaws.services.ec2.AmazonEC2Client.describeImages(AmazonEC2Client.java:12577) at hudson.plugins.ec2.SlaveTemplate.getAmiBlockDeviceMappings(SlaveTemplate.java:671) at hudson.plugins.ec2.SlaveTemplate.getNewEphemeralDeviceMapping(SlaveTemplate.java:628) at hudson.plugins.ec2.SlaveTemplate.setupEphemeralDeviceMapping(SlaveTemplate.java:658) at hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:458) at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:377) at hudson.plugins.ec2.EC2Cloud.getNewOrExistingAvailableSlave(EC2Cloud.java:515) at hudson.plugins.ec2.EC2Cloud.provision(EC2Cloud.java:532) at hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:701) at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:307) at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:60) at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:798) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 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) Caused by: com.ctc.wstx.exc.WstxIOException: Read timed out at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:708) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086) at com.ctc.wstx.evt.WstxEventReader.peek(WstxEventReader.java:306) at com.amazonaws.transform.StaxUnmarshallerContext.nextEvent(StaxUnmarshallerContext.java:207) at com.amazonaws.services.ec2.model.transform.BlockDeviceMappingStaxUnmarshaller.unmarshall(BlockDeviceMappingStaxUnmarshaller.java:42) at com.amazonaws.services.ec2.model.transform.ImageStaxUnmarshaller.unmarshall(ImageStaxUnmarshaller.java:123) at com.amazonaws.services.ec2.model.transform.DescribeImagesResultStaxUnmarshaller.unmarshall(DescribeImagesResultStaxUnmarshaller.java:47) at com.amazonaws.services.ec2.model.transform.DescribeImagesResultStaxUnmarshaller.unmarshall(DescribeImagesResultStaxUnmarshaller.java:32) at com.amazonaws.http.StaxResponseHandler.handle(StaxResponseHandler.java:99) at com.amazonaws.http.StaxResponseHandler.handle(StaxResponseHandler.java:42) at com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:1174) ... 27 more Caused by: 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.readV3Record(InputRecord.java:554) at sun.security.ssl.InputRecord.read(InputRecord.java:509) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946) at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:903) at sun.security.ssl.AppInputStream.read(AppInputStream.java:102) at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160) at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84) at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:206) at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:174) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) at com.amazonaws.internal.SdkFilterInputStream.read(SdkFilterInputStream.java:72) at com.amazonaws.event.ProgressInputStream.read(ProgressInputStream.java:151) at java.io.FilterInputStream.read(FilterInputStream.java:107) at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:365) at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:110) at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84) at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57) at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1046) at com.ctc.wstx.sr.StreamScanner.parseLocalName2(StreamScanner.java:1796) at com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1756) at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2914) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2848) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) ... 36 more {code}

    Jenkins JIRA | 9 months ago | Rafael Ximenes
    com.amazonaws.AmazonClientException: Unable to unmarshall response (Read timed out). Response Code: 200, Response Text: OK
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Scoreboard Updater could not contact dev.bukkit.org

    GitHub | 2 years ago | hdglifezach
    java.net.SocketTimeoutException: Read timed out
  6. 0

    java.net.SocketTimeoutException running Apache Spark on Google Cloud Instance

    Stack Overflow | 2 years ago | Saulo Ricci
    java.net.SocketTimeoutException: Read timed out

  1. bernardpaulus 5 times, last 6 days ago
  2. Alireza Mohamadi 114 times, last 4 months ago
  3. Nikolay Rybak 1 times, last 7 months ago
  4. tvrmsmith 1 times, last 9 months ago
  5. poroszd 3 times, last 10 months ago
18 more registered users
73 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:934)
    4. sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:891)
    5. sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
    5 frames
  4. Apache Http
    ChunkedInputStream.read
    1. org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:139)
    2. org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:155)
    3. org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:284)
    4. org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:266)
    5. org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:227)
    6. org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:186)
    6 frames
  5. Apache HttpClient
    EofSensorInputStream.read
    1. org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)
    1 frame
  6. Java RT
    FilterInputStream.read
    1. java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238)
    2. java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
    3. java.util.zip.GZIPInputStream.read(GZIPInputStream.java:116)
    4. java.io.FilterInputStream.read(FilterInputStream.java:107)
    4 frames
  7. Apache HttpClient
    LazyDecompressingInputStream.read
    1. org.apache.http.client.entity.LazyDecompressingInputStream.read(LazyDecompressingInputStream.java:67)
    1 frame
  8. Commons IO
    IOUtils.toByteArray
    1. org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)
    2. org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
    3. org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)
    4. org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:462)
    4 frames