java.net.SocketTimeoutException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Re: Read timed out on ManifoldCF 0.6
    via by Karl Wright,
  • Axis2 SocketTimeoutException: Read Time Out
    via Stack Overflow by ecnerwal
    ,
  • Importing metadata from '/opt/artemp/artifactory-cli-1.3.0-beta-6.1/tmpExport/repositories/idi-snapshots-local/com/idi/general-delphi-client/maven-metadata.xml.artifactory-metadata/artifactory.stats.xml'. java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:235) at org.apache.commons.httpclient.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:250) at org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputStream.java:221) at org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:176) at java.io.FilterInputStream.read(FilterInputStream.java:111) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:127) at org.artifactory.cli.common.UrlBasedCommand.analyzeResponse(UrlBasedCommand.java:208) at org.artifactory.cli.common.UrlBasedCommand.post(UrlBasedCommand.java:199) at org.artifactory.cli.common.UrlBasedCommand.post(UrlBasedCommand.java:130) at org.artifactory.cli.command.ImportCommand.execute(ImportCommand.java:53) at org.artifactory.cli.main.ArtifactoryCli.main(ArtifactoryCli.java:57)
    via by Yoav Landman,
  • Importing metadata from '/opt/artemp/artifactory-cli-1.3.0-beta-6.1/tmpExport/repositories/idi-snapshots-local/com/idi/general-delphi-client/maven-metadata.xml.artifactory-metadata/artifactory.stats.xml'. java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:235) at org.apache.commons.httpclient.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:250) at org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputStream.java:221) at org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:176) at java.io.FilterInputStream.read(FilterInputStream.java:111) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:127) at org.artifactory.cli.common.UrlBasedCommand.analyzeResponse(UrlBasedCommand.java:208) at org.artifactory.cli.common.UrlBasedCommand.post(UrlBasedCommand.java:199) at org.artifactory.cli.common.UrlBasedCommand.post(UrlBasedCommand.java:130) at org.artifactory.cli.command.ImportCommand.execute(ImportCommand.java:53) at org.artifactory.cli.main.ArtifactoryCli.main(ArtifactoryCli.java:57)
    via by Yoav Landman,
  • Provisioning Errors
    via by Ed,
  • Provisioning Errors
    via by Ed,
  • After I installed Nexus and enabled remote index download for repository "Central" following exception occurred (Excerpt from the log-file): jvm 1 | 2012-08-18 20:05:11 ERROR [pool-1-thread-1] - org.apache.maven.index.updater.DefaultIndexUpdater - Fallback to *.zip also failed: org.sonatype.nexus.proxy.RemoteStorageException: Transport error while executing GET method [repositoryId="central", requestPath="/.index/nexus-maven-repository-index.zip", remoteUrl="http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.zip"] jvm 1 | 2012-08-18 20:05:11 WARN [pool-1-thread-1] - org.sonatype.nexus.index.DefaultIndexerManager - Cannot fetch remote index for repository "Central" [id=central] jvm 1 | java.net.SocketTimeoutException: Read timed out jvm 1 | at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_06] jvm 1 | at java.net.SocketInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.net.SocketInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.commons.httpclient.ContentLengthInputStream.read(Unknown Source) ~[commons-httpclient-3.1.SONATYPE.jar:3.1] jvm 1 | at java.io.FilterInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.commons.httpclient.AutoCloseInputStream.read(Unknown Source) ~[commons-httpclient-3.1.SONATYPE.jar:3.1] jvm 1 | at org.sonatype.nexus.util.WrappingInputStream.read(WrappingInputStream.java:59) ~[nexus-utils-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.HttpClientInputStream.read(HttpClientInputStream.java:95) ~[nexus-proxy-2.1.1.jar:na] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.fill(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.InflaterInputStream.fill(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.InflaterInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.GZIPInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.DataInputStream.readFully(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readUTF(IndexDataReader.java:193)~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readField(IndexDataReader.java:162) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readDocument(IndexDataReader.java:137) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readIndex(IndexDataReader.java:90) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:509) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:197) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:76) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:642) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:862) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1139) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1016) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:890) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:838) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:812) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:54) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:69) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:158)[nexus-app-2.1.1.jar:na] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459)[plexus-task-scheduler-1.6.0.jar:na] jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(UnknownSource) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_06] jvm 1 | at java.lang.Thread.run(Unknown Source) [na:1.7.0_06] The problem appears to be caused by Java 7 (the issue does not occur with Java 6) and its default use of IPv6. I solved the problem by adding the following line in the wrapper.conf properties file (directory $NEXUS_HOME/bin/jsw/conf): wrapper.java.additional.1=-Djava.net.preferIPv4Stack=true I can hardly imagine that this issue can be solved in the Nexus code but an entry in some Release Notes, FAQs or a hint in the log-file about activating IPv4 when a SocketTimeoutException: Read timed out happens during index download in a Java 7 environment might be helpful and spare others a few hours investigating this issue again :-)
    via by Erik,
  • After I installed Nexus and enabled remote index download for repository "Central" following exception occurred (Excerpt from the log-file): jvm 1 | 2012-08-18 20:05:11 ERROR [pool-1-thread-1] - org.apache.maven.index.updater.DefaultIndexUpdater - Fallback to *.zip also failed: org.sonatype.nexus.proxy.RemoteStorageException: Transport error while executing GET method [repositoryId="central", requestPath="/.index/nexus-maven-repository-index.zip", remoteUrl="http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.zip"] jvm 1 | 2012-08-18 20:05:11 WARN [pool-1-thread-1] - org.sonatype.nexus.index.DefaultIndexerManager - Cannot fetch remote index for repository "Central" [id=central] jvm 1 | java.net.SocketTimeoutException: Read timed out jvm 1 | at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_06] jvm 1 | at java.net.SocketInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.net.SocketInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.commons.httpclient.ContentLengthInputStream.read(Unknown Source) ~[commons-httpclient-3.1.SONATYPE.jar:3.1] jvm 1 | at java.io.FilterInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.commons.httpclient.AutoCloseInputStream.read(Unknown Source) ~[commons-httpclient-3.1.SONATYPE.jar:3.1] jvm 1 | at org.sonatype.nexus.util.WrappingInputStream.read(WrappingInputStream.java:59) ~[nexus-utils-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.HttpClientInputStream.read(HttpClientInputStream.java:95) ~[nexus-proxy-2.1.1.jar:na] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.fill(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.InflaterInputStream.fill(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.InflaterInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.GZIPInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.DataInputStream.readFully(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readUTF(IndexDataReader.java:193)~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readField(IndexDataReader.java:162) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readDocument(IndexDataReader.java:137) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readIndex(IndexDataReader.java:90) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:509) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:197) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:76) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:642) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:862) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1139) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1016) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:890) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:838) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:812) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:54) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:69) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:158)[nexus-app-2.1.1.jar:na] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459)[plexus-task-scheduler-1.6.0.jar:na] jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(UnknownSource) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_06] jvm 1 | at java.lang.Thread.run(Unknown Source) [na:1.7.0_06] The problem appears to be caused by Java 7 (the issue does not occur with Java 6) and its default use of IPv6. I solved the problem by adding the following line in the wrapper.conf properties file (directory $NEXUS_HOME/bin/jsw/conf): wrapper.java.additional.1=-Djava.net.preferIPv4Stack=true I can hardly imagine that this issue can be solved in the Nexus code but an entry in some Release Notes, FAQs or a hint in the log-file about activating IPv4 when a SocketTimeoutException: Read timed out happens during index download in a Java 7 environment might be helpful and spare others a few hours investigating this issue again :-)
    via by Erik,
    • java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.commons.httpclient.ChunkedInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at org.apache.commons.httpclient.AutoCloseInputStream.read(Unknown Source)

    Users with the same issue

    mauritiusmauritius
    39 times, last one,
    kidkid
    10 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    151 more bugmates