org.sonatype.nexus.proxy.RemoteStorageEOFException: Premature end of Content-Length delimited message body (expected: 272230975; received: 130023424

Sonatype JIRA | liutao | 4 months ago
  1. 0

    so, i install and started nexus, and down index of maven2, but it not work, and logs as follow. 2016-07-27 17:51:23,748+0800 INFO [qtp24866327-48] admin org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [Central] made by admin... 2016-07-27 17:51:23,795+0800 INFO [esh-1-thread-6] admin org.sonatype.nexus.events.RepositoryConfigurationUpdatedEventInspector - The Remote URL of repository "Central" (id=central) has been changed, expiring its caches. 2016-07-27 17:51:23,798+0800 INFO [esh-1-thread-5] admin org.sonatype.nexus.index.events.IndexingRepositoryRegistryRepositoryAsyncEventInspector - Remote URL changed on repository "Central" (id=central), doing full reindex of it. 2016-07-27 17:51:23,839+0800 INFO [ar-4-thread-1] admin org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage - Updating remote transport for proxy repository "Central" [id=central]... 2016-07-27 17:51:24,297+0800 INFO [pxpool-1-thread-1] admin org.sonatype.nexus.tasks.ExpireCacheTask - Scheduled task (ExpireCacheTask) started :: Expiring caches for repository Central from path null and below. 2016-07-27 17:51:24,396+0800 INFO [pxpool-1-thread-1] admin org.sonatype.nexus.tasks.ExpireCacheTask - Scheduled task (ExpireCacheTask) finished :: Expiring caches for repository Central from path null and below. (started 2016-07-27T17:51:24+08:00, runtime 0:00:00.097) 2016-07-27 17:51:24,482+0800 INFO [pxpool-1-thread-1] admin org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [Scheduled Tasks] made by *TASK... 2016-07-27 17:51:34,299+0800 INFO [pxpool-1-thread-2] admin org.sonatype.nexus.index.tasks.RepairIndexTask - Scheduled task (RepairIndexTask) started :: Repairing repository index "Central" from path null and below. 2016-07-27 17:51:34,612+0800 INFO [pxpool-1-thread-2] admin org.sonatype.nexus.index.DefaultIndexerManager - Trying to get remote index for repository "Central" [id=central] 2016-07-27 17:53:13,411+0800 WARN [pxpool-1-thread-2] admin org.sonatype.nexus.index.DefaultIndexerManager - Cannot fetch remote index for repository "Central" [id=central] due to IO problem. org.sonatype.nexus.proxy.RemoteStorageEOFException: Premature end of Content-Length delimited message body (expected: 272230975; received: 130023424 at org.sonatype.nexus.proxy.storage.remote.httpclient.Hc4InputStream.read(Hc4InputStream.java:72) ~[nexus-core-2.13.0-01.jar:2.13.0-01] at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.8.0_73] at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.8.0_73] at java.io.BufferedInputStream.fill(Unknown Source) ~[na:1.8.0_73] at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.8.0_73] at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.8.0_73] at java.util.zip.InflaterInputStream.fill(Unknown Source) ~[na:1.8.0_73] at java.util.zip.InflaterInputStream.read(Unknown Source) ~[na:1.8.0_73] at java.util.zip.GZIPInputStream.read(Unknown Source) ~[na:1.8.0_73] at java.io.DataInputStream.readFully(Unknown Source) ~[na:1.8.0_73] at org.apache.maven.index.updater.IndexDataReader.readUTF(IndexDataReader.java:193) ~[nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.apache.maven.index.updater.IndexDataReader.readField(IndexDataReader.java:162) ~[nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.apache.maven.index.updater.IndexDataReader.readDocument(IndexDataReader.java:137) ~[nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.apache.maven.index.updater.IndexDataReader.readIndex(IndexDataReader.java:90) ~[nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:515) ~[nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:203) ~[nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:76) ~[nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:648) ~[nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:877) ~[nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159) ~[nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1291) [nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.sonatype.nexus.index.DefaultIndexerManager.access$1100(DefaultIndexerManager.java:188) [nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.sonatype.nexus.index.DefaultIndexerManager$IndexUpdateRunnable.run(DefaultIndexerManager.java:1060) [nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.sonatype.nexus.index.DefaultIndexerManager.temporary(DefaultIndexerManager.java:2358) [nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:1022) [nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:961) [nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:938) [nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.sonatype.nexus.index.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:61) [nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.sonatype.nexus.index.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:68) [nexus-indexer-lucene-plugin-2.13.0-01/:na] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:163) [nexus-core-2.13.0-01.jar:2.13.0-01] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) [nexus-scheduler-2.13.0-01.jar:2.13.0-01] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.13.0-01.jar:2.13.0-01] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_73] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [na:1.8.0_73] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.8.0_73] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_73] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_73] at java.lang.Thread.run(Unknown Source) [na:1.8.0_73] Caused by: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 272230975; received: 130023424 at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:180) ~[httpcore-4.3.3.jar:4.3.3] at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) ~[httpclient-4.3.6.jar:4.3.6] at org.sonatype.nexus.util.WrappingInputStream.read(WrappingInputStream.java:57) ~[nexus-core-2.13.0-01.jar:2.13.0-01] at org.sonatype.nexus.proxy.storage.remote.httpclient.InterruptableInputStream.read(InterruptableInputStream.java:74) ~[nexus-core-2.13.0-01.jar:2.13.0-01] at org.sonatype.nexus.util.WrappingInputStream.read(WrappingInputStream.java:57) ~[nexus-core-2.13.0-01.jar:2.13.0-01] at org.sonatype.nexus.proxy.storage.remote.httpclient.Hc4InputStream.read(Hc4InputStream.java:69) ~[nexus-core-2.13.0-01.jar:2.13.0-01] ... 39 common frames omitted

    Sonatype JIRA | 4 months ago | liutao
    org.sonatype.nexus.proxy.RemoteStorageEOFException: Premature end of Content-Length delimited message body (expected: 272230975; received: 130023424
  2. 0

    开源中国(OSChina.NET)

    oschina.net | 1 year ago
    org.sonatype.nexus.proxy.RemoteStorageEOFException: Premature end of Content-Length delimited message body (expected: 900720657; received: 3725888
  3. 0

    ¡¾Nexusͬ²½oscË÷Òýʧ°Ü¡¿-ÎÒËÑÄãÐÅÏ¢´óÈ«

    wosoni.com | 1 year ago
    org.sonatype.nexus.proxy.RemoteStorageEOFException: Premature end of Content-Length delimited message body (expected: 900720657; received: 3725888
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Nexus同步osc索引失败 - 开源中国社区

    oschina.net | 1 year ago
    org.sonatype.nexus.proxy.RemoteStorageEOFException: Premature end of Content-Length delimited message body (expected: 900720657; received: 3725888
  6. 0

    发表回帖的评论

    oschina.net | 1 year ago
    org.sonatype.nexus.proxy.RemoteStorageEOFException: Premature end of Content-Length delimited message body (expected: 900720657; received: 3725888

    1 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. org.apache.http.ConnectionClosedException

      Premature end of Content-Length delimited message body (expected: 272230975; received: 130023424

      at org.apache.http.impl.io.ContentLengthInputStream.read()
    2. Apache Http
      ContentLengthInputStream.read
      1. org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:180)[httpcore-4.3.3.jar:4.3.3]
      1 frame
    3. Apache HttpClient
      EofSensorInputStream.read
      1. org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)[httpclient-4.3.6.jar:4.3.6]
      1 frame
    4. ${project.groupId}:${project.artifactId}
      Hc4InputStream.read
      1. org.sonatype.nexus.util.WrappingInputStream.read(WrappingInputStream.java:57)[nexus-core-2.13.0-01.jar:2.13.0-01]
      2. org.sonatype.nexus.proxy.storage.remote.httpclient.InterruptableInputStream.read(InterruptableInputStream.java:74)[nexus-core-2.13.0-01.jar:2.13.0-01]
      3. org.sonatype.nexus.util.WrappingInputStream.read(WrappingInputStream.java:57)[nexus-core-2.13.0-01.jar:2.13.0-01]
      4. org.sonatype.nexus.proxy.storage.remote.httpclient.Hc4InputStream.read(Hc4InputStream.java:69)[nexus-core-2.13.0-01.jar:2.13.0-01]
      4 frames
    5. Java RT
      DataInputStream.readFully
      1. java.io.BufferedInputStream.read1(Unknown Source)[na:1.8.0_73]
      2. java.io.BufferedInputStream.read(Unknown Source)[na:1.8.0_73]
      3. java.io.BufferedInputStream.fill(Unknown Source)[na:1.8.0_73]
      4. java.io.BufferedInputStream.read1(Unknown Source)[na:1.8.0_73]
      5. java.io.BufferedInputStream.read(Unknown Source)[na:1.8.0_73]
      6. java.util.zip.InflaterInputStream.fill(Unknown Source)[na:1.8.0_73]
      7. java.util.zip.InflaterInputStream.read(Unknown Source)[na:1.8.0_73]
      8. java.util.zip.GZIPInputStream.read(Unknown Source)[na:1.8.0_73]
      9. java.io.DataInputStream.readFully(Unknown Source)[na:1.8.0_73]
      9 frames
    6. Maven :: Indexer Core
      DefaultIndexUpdater.fetchAndUpdateIndex
      1. org.apache.maven.index.updater.IndexDataReader.readUTF(IndexDataReader.java:193)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      2. org.apache.maven.index.updater.IndexDataReader.readField(IndexDataReader.java:162)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      3. org.apache.maven.index.updater.IndexDataReader.readDocument(IndexDataReader.java:137)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      4. org.apache.maven.index.updater.IndexDataReader.readIndex(IndexDataReader.java:90)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      5. org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:515)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      6. org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:203)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      7. org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:76)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      8. org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:648)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      9. org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:877)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      10. org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      10 frames
    7. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexRepository
      1. org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1291)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      2. org.sonatype.nexus.index.DefaultIndexerManager.access$1100(DefaultIndexerManager.java:188)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      3. org.sonatype.nexus.index.DefaultIndexerManager$IndexUpdateRunnable.run(DefaultIndexerManager.java:1060)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      4. org.sonatype.nexus.index.DefaultIndexerManager.temporary(DefaultIndexerManager.java:2358)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      5. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:1022)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      6. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:961)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      7. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:938)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      7 frames
    8. org.sonatype.nexus
      AbstractIndexerTask.doRun
      1. org.sonatype.nexus.index.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:61)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      2. org.sonatype.nexus.index.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:68)[nexus-indexer-lucene-plugin-2.13.0-01/:na]
      2 frames
    9. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:163)[nexus-core-2.13.0-01.jar:2.13.0-01]
      1 frame
    10. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418)[nexus-scheduler-2.13.0-01.jar:2.13.0-01]
      1 frame
    11. ${project.groupId}:${project.artifactId}
      MDCAwareCallable.call
      1. org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44)[nexus-core-2.13.0-01.jar:2.13.0-01]
      1 frame
    12. Shiro
      SubjectCallable.call
      1. org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.3.jar:1.2.3]
      2. org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.3.jar:1.2.3]
      2 frames
    13. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(Unknown Source)[na:1.8.0_73]
      2. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)[na:1.8.0_73]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)[na:1.8.0_73]
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[na:1.8.0_73]
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[na:1.8.0_73]
      6. java.lang.Thread.run(Unknown Source)[na:1.8.0_73]
      6 frames