java.io.EOFException: input contained no data

Sonatype JIRA | Rich Seddon | 2 weeks ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    If a maven-metadata.xml file merge fails in Nexus 3 the repository ID with bad metadata is not logged, even at ROOT DEBUG.  This makes it extremely difficult to find where the problematic file is.   {noformat} 2017-05-12 16:41:57,460+0000 WARN [qtp359682993-47] test org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: GET /repository/public/org/apache/maven/wagon/wagon-ssh/maven-metadata.xml java.io.EOFException: input contained no data at org.codehaus.plexus.util.xml.pull.MXParser.fillBuf(MXParser.java:3037) [na:na] at org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3080) [na:na] at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1451) [na:na] at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1436) [na:na] at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1131) [na:na] at org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:913) [na:na] at org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:519) [na:na] at org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:548) [na:na] at org.sonatype.nexus.repository.maven.internal.MavenModels.readMetadata(MavenModels.java:83) [na:na] at org.sonatype.nexus.repository.maven.internal.group.RepositoryMetadataMerger.merge(RepositoryMetadataMerger.java:73) [na:na] at org.sonatype.nexus.repository.maven.internal.group.MavenGroupFacet.mergeAndCache(MavenGroupFacet.java:125) [na:na] at org.sonatype.nexus.repository.maven.internal.group.MergingGroupHandler.doGet(MergingGroupHandler.java:98) [na:na] at org.sonatype.nexus.repository.group.GroupHandler.handle(GroupHandler.java:79) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na]{noformat}    

    Sonatype JIRA | 2 weeks ago | Rich Seddon
    java.io.EOFException: input contained no data
  2. 0

    m2eclipse breaks Hudson's deploy feature for maven2

    Google Groups | 6 years ago | Jorg Heymans
    org.apache.maven.artifact.repository.metadata.RepositoryMetadataReadException: Cannot read metadata from '/home/ci/.m2/repository/my/group/artifact/0.2-SNAPSHOT/maven-metadata-agri-snapshot.xml': expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<extension>jar</... @14:25)
  3. 0

    If a repository has a maven-metadata.xml that is 0 bytes in length the rebuild metadata task will abort walking a repository. You must manually delete the 0 byte file(s) to fix this. Nexus should simply recreate the file in this case. {code} 2009-11-30 12:00:28 WARN [pool-1-thread-1] - c.s.n.i.c.i.CustomM~ - Indexing of [/.meta/repository-metadata.xml.sha1] skipped, as it is not recognized. 2009-11-30 12:00:29 WARN [pool-1-thread-1] - o.s.n.p.r.Repository:maven2 - Error occured while existing collection '/test/project_a'. org.apache.maven.mercury.repository.metadata.MetadataException: java.io.EOFException: input contained no data at org.apache.maven.mercury.repository.metadata.MetadataBuilder.read(MetadataBuilder.java:61) at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataProcessor.readMetadata(AbstractMetadataProcessor.java:74) at org.sonatype.nexus.proxy.maven.metadata.ArtifactDirMetadataProcessor.isMetadataCorrect(ArtifactDirMetadataProcessor.java:105) at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataProcessor.process(AbstractMetadataProcessor.java:37) at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.onDirExit(AbstractMetadataHelper.java:90) at org.sonatype.nexus.proxy.maven.RecreateMavenMetadataWalkerProcessor.onCollectionExit(RecreateMavenMetadataWalkerProcessor.java:100) at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:340) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:257) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRecreateMavenMetadata(AbstractMavenRepository.java:213) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:200) at org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:47) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637) Caused by: java.io.EOFException: input contained no data at org.codehaus.plexus.util.xml.pull.MXParser.fillBuf(MXParser.java:2982) at org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3025) at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1410) at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1395) at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1093) at org.apache.maven.mercury.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:949) at org.apache.maven.mercury.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:964) at org.apache.maven.mercury.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:997) at org.apache.maven.mercury.repository.metadata.MetadataBuilder.read(MetadataBuilder.java:57) ... 22 more 2009-11-30 12:00:29 INFO [pool-1-thread-1] - o.s.n.f.FeedRecorder:default - Rebuilding maven metadata of repository Snapshots from path / and below. : Process started on Mon Nov 30 12:00:28 PST 2009, finished successfully on Mon Nov 30 12:00:29 PST 2009 {code}

    Sonatype JIRA | 7 years ago | Rich Seddon
    org.apache.maven.mercury.repository.metadata.MetadataException: java.io.EOFException: input contained no data
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The Maven facet attempts to fill in information about a pom using the {{MavenModels.readModel}} function. If the supplied input stream is empty, this throws an exception and causes issues upstream when we (for example) attempt to migrate a zero-length pom or deploy one to a hosted repository (see stack trace of resulting HTTP 500 error below). The javadoc for the method in question says that it should "return \{@code null\} if input not parsable". It seems more consistent to return null when the input stream is empty instead of throwing an EOFException, but what would that cause unintended side-effects? For reference, NX2 does not reject deployments of empty POMs. {noformat} 2017-02-08 19:25:17,516+0100 WARN [qtp571182704-310] admin org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Service failure java.io.EOFException: input contained no data at org.codehaus.plexus.util.xml.pull.MXParser.fillBuf(MXParser.java:3037) [na:na] at org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3080) [na:na] at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1451) [na:na] at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1436) [na:na] at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1131) [na:na] at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3811) [na:na] at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:557) [na:na] at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:586) [na:na] at org.sonatype.nexus.repository.maven.internal.MavenModels.readModel(MavenModels.java:132) [na:na] at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.fillInFromModel(MavenFacetImpl.java:367) [na:na] at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.putArtifact(MavenFacetImpl.java:325) [na:na] at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.doPutAssetBlob(MavenFacetImpl.java:295) [na:na] at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.doPut(MavenFacetImpl.java:248) [na:na] at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:56) [na:na] at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54) [na:na] at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.put(MavenFacetImpl.java:200) [na:na] at org.sonatype.nexus.repository.maven.internal.hosted.HostedHandler.doPut(HostedHandler.java:87) [na:na] at org.sonatype.nexus.repository.maven.internal.hosted.HostedHandler.handle(HostedHandler.java:61) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na] at org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na] at org.sonatype.nexus.repository.view.handlers.ContentHeadersHandler.handle(ContentHeadersHandler.java:44) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na] at org.sonatype.nexus.repository.maven.internal.VersionPolicyHandler.handle(VersionPolicyHandler.java:60) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na] at org.sonatype.nexus.repository.http.PartialFetchHandler.handle(PartialFetchHandler.java:55) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na] at org.sonatype.nexus.repository.view.handlers.ConditionalRequestHandler.handle(ConditionalRequestHandler.java:72) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na] at com.sonatype.nexus.clm.internal.QuarantineContributedHandler.handle(QuarantineContributedHandler.java:62) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na] at org.sonatype.nexus.repository.view.handlers.HandlerContributor.handle(HandlerContributor.java:67) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na] at org.sonatype.nexus.repository.view.handlers.ExceptionHandler.handle(ExceptionHandler.java:43) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na] at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:52) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na] at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:46) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80) [na:na] at org.sonatype.nexus.repository.view.Context.start(Context.java:114) [na:na] at org.sonatype.nexus.repository.view.Router.dispatch(Router.java:63) [na:na] at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:52) [na:na] at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:43) [na:na] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.dispatchAndSend(ViewServlet.java:197) [na:na] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.doService(ViewServlet.java:159) [na:na] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.service(ViewServlet.java:116) [na:na] {noformat}

    Sonatype JIRA | 3 months ago | Eric Cobb
    java.io.EOFException: input contained no data
  6. 0

    Bug 250983 – java.io.EOFException: input contained no data

    netbeans.org | 8 months ago
    java.io.EOFException: input contained no data
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.io.EOFException

    input contained no data

    at org.codehaus.plexus.util.xml.pull.MXParser.fillBuf()
  2. Plexus Common Utilities
    MXParser.next
    1. org.codehaus.plexus.util.xml.pull.MXParser.fillBuf(MXParser.java:3037)[na:na]
    2. org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3080)[na:na]
    3. org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1451)[na:na]
    4. org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1436)[na:na]
    5. org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1131)[na:na]
    5 frames
  3. Maven
    MetadataXpp3Reader.read
    1. org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:913)[na:na]
    2. org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:519)[na:na]
    3. org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:548)[na:na]
    3 frames
  4. org.sonatype.nexus
    Context.proceed
    1. org.sonatype.nexus.repository.maven.internal.MavenModels.readMetadata(MavenModels.java:83)[na:na]
    2. org.sonatype.nexus.repository.maven.internal.group.RepositoryMetadataMerger.merge(RepositoryMetadataMerger.java:73)[na:na]
    3. org.sonatype.nexus.repository.maven.internal.group.MavenGroupFacet.mergeAndCache(MavenGroupFacet.java:125)[na:na]
    4. org.sonatype.nexus.repository.maven.internal.group.MergingGroupHandler.doGet(MergingGroupHandler.java:98)[na:na]
    5. org.sonatype.nexus.repository.group.GroupHandler.handle(GroupHandler.java:79)[na:na]
    6. org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)[na:na]
    6 frames