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.

  • 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}    
    via by Rich Seddon,
  • 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}
    via by Eric Cobb,
  • * 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,
    • 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]

    Users with the same issue

    chenjunjunchenjunjun
    1 times, last one,