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.

  • After starting Nexus 1.3.2, I set 'Download Remote Indexes' to 'true' for each of the 3 proxy repositories. I then attempted to re-index each repository in turn. The re-index for the Maven Central Repository failed with the stacktrace below. Several re-attempts were made, but each was unsuccessful. Note that I am unaware of any internet connectivity issues on my side. 2009-04-16 21:13:28 INFO [pool-1-thread-6] - o.s.n.p.r.Repository:maven2 - Expiring local cache in repository ID='central' from path='/.index' 2009-04-16 21:13:28 INFO [pool-1-thread-6] - o.s.n.p.r.Repository:maven2 - Clearing NFC cache in repository ID='central' from path='/.index' 2009-04-16 21:14:34 WARN [pool-1-thread-6] - o.s.n.i.IndexerMana~:default - Cannot fetch remote index: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:143) at java.io.FilterInputStream.read(Unknown Source) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:88) at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.HttpClientInputStream.read(HttpClientInputStream.java:53) at java.io.InputStream.read(Unknown Source) at java.io.InputStream.read(Unknown Source) at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:188) at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:720) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:178) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:103) at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:739) at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:608) at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:575) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:487) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:442) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1364) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:40) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2009-04-16 21:14:34 INFO [pool-1-thread-6] - o.s.n.i.IndexerMana~:default - Cascading merge of group indexes for group 'public', where repository 'central' is member. 2009-04-16 21:14:35 INFO [pool-1-thread-6] - o.s.n.i.IndexerMana~:default - Publishing best index for repository central
    via by Deleted User,
  • After starting Nexus 1.3.2, I set 'Download Remote Indexes' to 'true' for each of the 3 proxy repositories. I then attempted to re-index each repository in turn. The re-index for the Maven Central Repository failed with the stacktrace below. Several re-attempts were made, but each was unsuccessful. Note that I am unaware of any internet connectivity issues on my side. 2009-04-16 21:13:28 INFO [pool-1-thread-6] - o.s.n.p.r.Repository:maven2 - Expiring local cache in repository ID='central' from path='/.index' 2009-04-16 21:13:28 INFO [pool-1-thread-6] - o.s.n.p.r.Repository:maven2 - Clearing NFC cache in repository ID='central' from path='/.index' 2009-04-16 21:14:34 WARN [pool-1-thread-6] - o.s.n.i.IndexerMana~:default - Cannot fetch remote index: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:143) at java.io.FilterInputStream.read(Unknown Source) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:88) at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.HttpClientInputStream.read(HttpClientInputStream.java:53) at java.io.InputStream.read(Unknown Source) at java.io.InputStream.read(Unknown Source) at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:188) at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:720) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:178) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:103) at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:739) at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:608) at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:575) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:487) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:442) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1364) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:40) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2009-04-16 21:14:34 INFO [pool-1-thread-6] - o.s.n.i.IndexerMana~:default - Cascading merge of group indexes for group 'public', where repository 'central' is member. 2009-04-16 21:14:35 INFO [pool-1-thread-6] - o.s.n.i.IndexerMana~:default - Publishing best index for repository central
    via by Deleted User,
  • Provisioning Errors
    via by Ed,
  • Provisioning Errors
    via by Ed,
  • java.lang.RuntimeException: Failed to execute JcrCallback. at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:137) at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:292) at org.artifactory.repo.RemoteRepoBase.getResourceStreamHandle(RemoteRepoBase.java:212) at org.artifactory.engine.DownloadEngine.respond(DownloadEngine.java:267) at org.artifactory.engine.DownloadEngine.processStandard(DownloadEngine.java:157) at org.artifactory.engine.DownloadEngine.process(DownloadEngine.java:69) at org.artifactory.webapp.servlet.RepoFilter.handleDownloadRequest(RepoFilter.java:103) at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:69) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:61) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:60) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:61) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Caused by: java.lang.RuntimeException: Failed to retrieve resource '{repo1.maven, xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.jar}'. at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:308) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:292) at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:133) ... 28 more Caused by: javax.jcr.RepositoryException: failed to spool stream to internal storage: Read timed out: Read timed out at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:774) at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2253) at org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:225) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:306) ... 30 more Caused by: 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.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:169) at java.io.FilterInputStream.read(FilterInputStream.java:116) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:107) at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.jackrabbit.core.value.BLOBFileValue.(BLOBFileValue.java:149) at org.apache.jackrabbit.core.value.BLOBFileValue.(BLOBFileValue.java:121) at org.apache.jackrabbit.core.value.InternalValue.create(InternalValue.java:200) at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:769) ... 33 more Caused by: java.lang.RuntimeException: Failed to retrieve resource '{repo1.maven, xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.jar}'. at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:308) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:292) at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:133) at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:292) at org.artifactory.repo.RemoteRepoBase.getResourceStreamHandle(RemoteRepoBase.java:212) at org.artifactory.engine.DownloadEngine.respond(DownloadEngine.java:267) at org.artifactory.engine.DownloadEngine.processStandard(DownloadEngine.java:157) at org.artifactory.engine.DownloadEngine.process(DownloadEngine.java:69) at org.artifactory.webapp.servlet.RepoFilter.handleDownloadRequest(RepoFilter.java:103) at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:69) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:61) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:60) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:61) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Caused by: javax.jcr.RepositoryException: failed to spool stream to internal storage: Read timed out: Read timed out at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:774) at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2253) at org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:225) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:306) ... 30 more Caused by: 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.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:169) at java.io.FilterInputStream.read(FilterInputStream.java:116) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:107) at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.jackrabbit.core.value.BLOBFileValue.(BLOBFileValue.java:149) at org.apache.jackrabbit.core.value.BLOBFileValue.(BLOBFileValue.java:121) at org.apache.jackrabbit.core.value.InternalValue.create(InternalValue.java:200) at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:769) ... 33 more
    via by Dror Bereznitsky,
    • java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:143) at java.io.FilterInputStream.read(Unknown Source) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:88) at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.HttpClientInputStream.read(HttpClientInputStream.java:53) at java.io.InputStream.read(Unknown Source) at java.io.InputStream.read(Unknown Source) at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:188) at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:720) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:178) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:103) at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:739) at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:608) at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:575) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:487) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:442) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1364) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:40) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(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