org.artifactory.sapi.common.RepositoryRuntimeException: Failed to convert string to maven model

JFrog JIRA | Mirko Friedenhagen | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    * 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}

    JFrog JIRA | 5 years ago | Mirko Friedenhagen
    org.artifactory.sapi.common.RepositoryRuntimeException: Failed to convert string to maven model
  2. 0

    * 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}

    JFrog JIRA | 5 years ago | Mirko Friedenhagen
    org.artifactory.sapi.common.RepositoryRuntimeException: Failed to convert string to maven model
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

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:3005)[plexus-utils-2.0.5.jar:na]
    2. org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3048)[plexus-utils-2.0.5.jar:na]
    3. org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1422)[plexus-utils-2.0.5.jar:na]
    4. org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1407)[plexus-utils-2.0.5.jar:na]
    5. org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1105)[plexus-utils-2.0.5.jar:na]
    5 frames
  3. Maven
    MavenXpp3Reader.read
    1. org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3911)[maven-model-2.2.1.jar:2.2.1]
    2. org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3926)[maven-model-2.2.1.jar:2.2.1]
    2 frames
  4. org.artifactory.maven
    MavenPluginsMetadataCalculator.calculate
    1. org.artifactory.maven.MavenModelUtils.stringToMavenModel(MavenModelUtils.java:227)[artifactory-common-2.6.4.jar:na]
    2. org.artifactory.maven.MavenPluginsMetadataCalculator.calculate(MavenPluginsMetadataCalculator.java:89)[artifactory-core-2.6.4.jar:na]
    2 frames
  5. org.artifactory.repo
    RepositoryServiceImpl.calculateMavenPluginsMetadataAsync
    1. org.artifactory.repo.service.RepositoryServiceImpl.calculateMavenPluginsMetadataAsync(RepositoryServiceImpl.java:1636)[artifactory-core-2.6.4.jar:na]
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_32]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_32]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_32]
    4. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_32]
    4 frames
  7. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    3 frames
  8. org.artifactory.schedule
    AsyncAdvice$TraceableMethodInvocation.proceed
    1. org.artifactory.schedule.aop.AsyncAdvice$TraceableMethodInvocation.proceed(AsyncAdvice.java:320)[artifactory-core-2.6.4.jar:na]
    1 frame
  9. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    1 frame
  10. org.artifactory.jcr
    LockingAdvice.invoke
    1. org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:121)[artifactory-jcr-storage-2.6.4.jar:na]
    1 frame
  11. org.artifactory.schedule
    AsyncAdvice$1.call
    1. org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:198)[artifactory-core-2.6.4.jar:na]
    2. org.artifactory.schedule.aop.AsyncAdvice$1.call(AsyncAdvice.java:145)[artifactory-core-2.6.4.jar:na]
    2 frames
  12. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[na:1.6.0_32]
    2. java.util.concurrent.FutureTask.run(FutureTask.java:138)[na:1.6.0_32]
    2 frames
  13. org.artifactory.schedule
    ArtifactoryConcurrentExecutor$RunnableWrapper.run
    1. org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:85)[artifactory-jcr-storage-2.6.4.jar:na]
    1 frame
  14. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[na:1.6.0_32]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[na:1.6.0_32]
    3. java.lang.Thread.run(Thread.java:680)[na:1.6.0_32]
    3 frames