org.apache.maven.mercury.repository.metadata.MetadataException: java.io.EOFException: input contained no data

Sonatype JIRA | Rich Seddon | 7 years ago
  1. 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
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    [jira] Created: (MNG-3761) Error reading settings.xml: Error reading settings file - Grokbase

    grokbase.com | 1 year ago
    org.apache.maven.SettingsConfigurationException: Error reading settings file

    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:2982)
      2. org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3025)
      3. org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1410)
      4. org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1395)
      5. org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1093)
      5 frames
    3. org.apache.maven
      MetadataBuilder.read
      1. org.apache.maven.mercury.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:949)
      2. org.apache.maven.mercury.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:964)
      3. org.apache.maven.mercury.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:997)
      4. org.apache.maven.mercury.repository.metadata.MetadataBuilder.read(MetadataBuilder.java:57)
      4 frames
    4. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataProcessor.readMetadata(AbstractMetadataProcessor.java:74)
      2. org.sonatype.nexus.proxy.maven.metadata.ArtifactDirMetadataProcessor.isMetadataCorrect(ArtifactDirMetadataProcessor.java:105)
      3. org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataProcessor.process(AbstractMetadataProcessor.java:37)
      4. org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.onDirExit(AbstractMetadataHelper.java:90)
      5. org.sonatype.nexus.proxy.maven.RecreateMavenMetadataWalkerProcessor.onCollectionExit(RecreateMavenMetadataWalkerProcessor.java:100)
      6. org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:340)
      7. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:257)
      8. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244)
      9. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244)
      10. org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110)
      11. org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRecreateMavenMetadata(AbstractMavenRepository.java:213)
      12. org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:200)
      13. org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:47)
      14. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192)
      14 frames
    5. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      7. java.lang.Thread.run(Thread.java:637)
      7 frames