org.sonatype.nexus.proxy.RemoteStorageEOFException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web6

  • via Sonatype JIRA by liutao, 11 months ago
    Premature end of Content-Length delimited message body (expected: 272230975; received: 130023424
  • Premature end of Content-Length delimited message body (expected: 1878402; received: 6936
  • Premature end of Content-Length delimited message body (expected: 900720657; received: 3725888
  • Stack trace

    • 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 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago