java.io.EOFException

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.

  • * I had deployed one SNAPSHOT version of a maven plugin to the local libs-snapshot-local repository. * I have searched for all artifacts of this version, saved the search ("Use Version-level artifacts" was checked) and decided to delete it. * Afterwards the following exception showed up in {{artifactory.log}} {code} 2012-09-15 22:06:54,677 [art-exec-35] [ERROR] (o.a.r.s.RepositoryServiceImpl:1638) - Failed to calculate plugin maven metadata on repo 'libs-snapshot-local': org.artifactory.sapi.common.RepositoryRuntimeException: Failed to convert string to maven model at org.artifactory.maven.MavenModelUtils.stringToMavenModel(MavenModelUtils.java:229) [artifactory-common-2.6.4.jar:na] at org.artifactory.maven.MavenPluginsMetadataCalculator.calculate(MavenPluginsMetadataCalculator.java:89) [artifactory-core-2.6.4.jar:na] at org.artifactory.repo.service.RepositoryServiceImpl.calculateMavenPluginsMetadataAsync(RepositoryServiceImpl.java:1636) [artifactory-core-2.6.4.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_32] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_32] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_32] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_32] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.artifactory.schedule.aop.AsyncAdvice$TraceableMethodInvocation.proceed(AsyncAdvice.java:320) [artifactory-core-2.6.4.jar:na] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:121) [artifactory-jcr-storage-2.6.4.jar:na] at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:198) [artifactory-core-2.6.4.jar:na] at org.artifactory.schedule.aop.AsyncAdvice$1.call(AsyncAdvice.java:145) [artifactory-core-2.6.4.jar:na] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_32] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_32] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:85) [artifactory-jcr-storage-2.6.4.jar:na] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_32] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_32] at java.lang.Thread.run(Thread.java:680) [na:1.6.0_32] Caused by: java.io.EOFException: input contained no data at org.codehaus.plexus.util.xml.pull.MXParser.fillBuf(MXParser.java:3005) [plexus-utils-2.0.5.jar:na] at org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3048) [plexus-utils-2.0.5.jar:na] at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1422) [plexus-utils-2.0.5.jar:na] at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1407) [plexus-utils-2.0.5.jar:na] at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1105) [plexus-utils-2.0.5.jar:na] at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3911) [maven-model-2.2.1.jar:2.2.1] at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3926) [maven-model-2.2.1.jar:2.2.1] at org.artifactory.maven.MavenModelUtils.stringToMavenModel(MavenModelUtils.java:227) [artifactory-common-2.6.4.jar:na] ... 20 common frames omitted {code}
    via by Mirko Friedenhagen,
  • * I had deployed one SNAPSHOT version of a maven plugin to the local libs-snapshot-local repository. * I have searched for all artifacts of this version, saved the search ("Use Version-level artifacts" was checked) and decided to delete it. * Afterwards the following exception showed up in {{artifactory.log}} {code} 2012-09-15 22:06:54,677 [art-exec-35] [ERROR] (o.a.r.s.RepositoryServiceImpl:1638) - Failed to calculate plugin maven metadata on repo 'libs-snapshot-local': org.artifactory.sapi.common.RepositoryRuntimeException: Failed to convert string to maven model at org.artifactory.maven.MavenModelUtils.stringToMavenModel(MavenModelUtils.java:229) [artifactory-common-2.6.4.jar:na] at org.artifactory.maven.MavenPluginsMetadataCalculator.calculate(MavenPluginsMetadataCalculator.java:89) [artifactory-core-2.6.4.jar:na] at org.artifactory.repo.service.RepositoryServiceImpl.calculateMavenPluginsMetadataAsync(RepositoryServiceImpl.java:1636) [artifactory-core-2.6.4.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_32] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_32] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_32] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_32] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.artifactory.schedule.aop.AsyncAdvice$TraceableMethodInvocation.proceed(AsyncAdvice.java:320) [artifactory-core-2.6.4.jar:na] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:121) [artifactory-jcr-storage-2.6.4.jar:na] at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:198) [artifactory-core-2.6.4.jar:na] at org.artifactory.schedule.aop.AsyncAdvice$1.call(AsyncAdvice.java:145) [artifactory-core-2.6.4.jar:na] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_32] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_32] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:85) [artifactory-jcr-storage-2.6.4.jar:na] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_32] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_32] at java.lang.Thread.run(Thread.java:680) [na:1.6.0_32] Caused by: java.io.EOFException: input contained no data at org.codehaus.plexus.util.xml.pull.MXParser.fillBuf(MXParser.java:3005) [plexus-utils-2.0.5.jar:na] at org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3048) [plexus-utils-2.0.5.jar:na] at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1422) [plexus-utils-2.0.5.jar:na] at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1407) [plexus-utils-2.0.5.jar:na] at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1105) [plexus-utils-2.0.5.jar:na] at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3911) [maven-model-2.2.1.jar:2.2.1] at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3926) [maven-model-2.2.1.jar:2.2.1] at org.artifactory.maven.MavenModelUtils.stringToMavenModel(MavenModelUtils.java:227) [artifactory-common-2.6.4.jar:na] ... 20 common frames omitted {code}
    via by Mirko Friedenhagen,
  • 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}
    via by Rich Seddon,
    • java.io.EOFException: input contained no data at org.codehaus.plexus.util.xml.pull.MXParser.fillBuf(MXParser.java:3005) at org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3048) at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1422) at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1407) at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1105) at org.netbeans.modules.maven.execute.model.io.xpp3.NetbeansBuildActionXpp3Reader.read(NetbeansBuildActionXpp3Reader.java:748)

    Users with the same issue

    chenjunjun
    1 times, last one,