java.lang.RuntimeException: Cannot merge metadata repository [file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin6130622094092664014/] into [file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin3458008289772765955/] due to [Unable to read repository at file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin3458008289772765955/content.xml.]

Sonatype JIRA | Conny Kreyßel | 3 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

    After upgrading from nexus 2.7 to 2.8 we must restart nexus every day. I have purged the temp folder and restart nexus but does not help. I can figured out that the problem occured if the scheduled taks "rebuild p2 metadata" runs. The following exception occured many many times: {code:title=Exception LogborderStyle=solid} 2014-06-06 13:44:32 WARN [pxpool-1-thread-5] userxxx org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2RepositoryAggregator - Could not update P2 repository [ext-repo1-maven-org-remote:/.meta/p2] with [/org\apache\geronimo\specs\geronimo-el_1.0_spec\1.0.1\geronimo-el_1.0_spec-1.0.1-p2Content.xml] due to [Cannot merge metadata repository [file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin6130622094092664014/] into [file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin3458008289772765955/] due to [Unable to read repository at file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin3458008289772765955/content.xml.]] java.lang.RuntimeException: Cannot merge metadata repository [file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin6130622094092664014/] into [file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin3458008289772765955/] due to [Unable to read repository at file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin3458008289772765955/content.xml.] at org.sonatype.p2.bridge.internal.MetadataRepositoryService.merge(MetadataRepositoryService.java:357) ~[na:na] at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2RepositoryAggregator.updateP2Metadata(DefaultP2RepositoryAggregator.java:442) ~[na:na] at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2RepositoryAggregator.updateP2Metadata(DefaultP2RepositoryAggregator.java:253) ~[na:na] at org.sonatype.nexus.plugins.p2.repository.internal.P2MetadataEventsInspector.onItemStored(P2MetadataEventsInspector.java:52) ~[na:na] at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_25] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_25] at org.sonatype.sisu.goodies.eventbus.internal.guava.EventHandler.handleEvent(EventHandler.java:80) ~[goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.dispatch(EventBus.java:329) ~[goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.DefaultGuavaEventBus.dispatch(DefaultGuavaEventBus.java:34) ~[goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.ReentrantGuavaEventBus.dispatchQueuedEvents(ReentrantGuavaEventBus.java:57) ~[goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.post(EventBus.java:281) ~[goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus.post(DefaultEventBus.java:78) ~[goodies-eventbus-1.9.jar:1.9] at org.sonatype.nexus.proxy.repository.AbstractRepository.storeItem(AbstractRepository.java:1023) ~[nexus-core-2.8.0-05.jar:2.8.0-05] at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.storeItem(AbstractMavenRepository.java:453) ~[nexus-core-2.8.0-05.jar:2.8.0-05] at org.sonatype.nexus.plugins.p2.repository.internal.NexusUtils.storeItem(NexusUtils.java:94) ~[na:na] at org.sonatype.nexus.plugins.p2.repository.internal.NexusUtils.storeItemFromFile(NexusUtils.java:182) ~[na:na] at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator.storeP2Data(DefaultP2MetadataGenerator.java:233) ~[na:na] at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator.generateP2Metadata(DefaultP2MetadataGenerator.java:157) ~[na:na] at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator$1.onFile(DefaultP2MetadataGenerator.java:284) ~[na:na] at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:54) ~[sisu-resource-scanner-1.1.jar:na] at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51) ~[sisu-resource-scanner-1.1.jar:na] at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51) ~[sisu-resource-scanner-1.1.jar:na] at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51) ~[sisu-resource-scanner-1.1.jar:na] at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51) ~[sisu-resource-scanner-1.1.jar:na] at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51) ~[sisu-resource-scanner-1.1.jar:na] at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51) ~[sisu-resource-scanner-1.1.jar:na] at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.scan(SerialScanner.java:38) ~[sisu-resource-scanner-1.1.jar:na] at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.scan(SerialScanner.java:30) ~[sisu-resource-scanner-1.1.jar:na] at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator.scanAndRebuild(DefaultP2MetadataGenerator.java:275) ~[na:na] at org.sonatype.nexus.plugins.p2.repository.internal.tasks.P2MetadataGeneratorTask.doRun(P2MetadataGeneratorTask.java:65) ~[na:na] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151) ~[nexus-core-2.8.0-05.jar:2.8.0-05] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) ~[nexus-scheduler-2.8.0-05.jar:2.8.0-05] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) ~[nexus-core-2.8.0-05.jar:2.8.0-05] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) ~[shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) ~[shiro-core-1.2.2.jar:1.2.2] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) ~[na:1.7.0_25] at java.util.concurrent.FutureTask.run(FutureTask.java:166) ~[na:1.7.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) ~[na:1.7.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25] Caused by: org.eclipse.equinox.p2.core.ProvisionException: Unable to read repository at file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin3458008289772765955/content.xml. at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO.read(MetadataRepositoryIO.java:81) ~[na:na] at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:107) ~[na:na] at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57) ~[na:na] at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:749) ~[na:na] at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:651) ~[na:na] at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96) ~[na:na] at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92) ~[na:na] at org.sonatype.p2.bridge.internal.MetadataRepositoryService.getRepository(MetadataRepositoryService.java:426) ~[na:na] at org.sonatype.p2.bridge.internal.MetadataRepositoryService.merge(MetadataRepositoryService.java:347) ~[na:na] ... 42 common frames omitted Caused by: java.io.IOException: Vorzeitiges Dateiende. at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO$Parser.parse(MetadataRepositoryIO.java:215) ~[na:na] at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO.read(MetadataRepositoryIO.java:63) ~[na:na] ... 50 common frames omitted {code}

    Sonatype JIRA | 3 years ago | Conny Kreyßel
    java.lang.RuntimeException: Cannot merge metadata repository [file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin6130622094092664014/] into [file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin3458008289772765955/] due to [Unable to read repository at file:/C:/Nexus/sonatype-work/nexus/tmp/nexus-p2-repository-plugin3458008289772765955/content.xml.]
  2. 0

    How to use a site.xml base update site in a Tycho build

    Stack Overflow | 3 years ago | Selcuk Bozdag
    org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'apacheds' from location http://directory.apache.org/studio/update/2.x
  3. 0

    Tycho build behind a firewall / proxy

    GitHub | 3 years ago | utzeln
    org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'cs-studio-updates' from location http://download.controlsystemstudio.org/updates/4.0/
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Nexus OSS 2.11.4-0 p2 proxy of Eclipse 3.7 + Orbit fails when remote not reachable (built with Maven + Tycho)

    Stack Overflow | 2 years ago | Bae
    org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to resolve target definition \path\to\APP.target
  6. 0

    How do I build a Github API for Java, in Eclipse?

    Stack Overflow | 2 years ago | g1otis.Foo
    org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'egit' from location file:/C:/Users/panagiotis/Desktop/egit-github-master/org.eclipse.egit.github.core/../../egit/org.eclipse.egit.repository/target/repository

    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.IOException

      Vorzeitiges Dateiende.

      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO$Parser.parse()
    2. org.eclipse.equinox
      MetadataRepositoryManager.loadRepository
      1. org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO$Parser.parse(MetadataRepositoryIO.java:215)[na:na]
      2. org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO.read(MetadataRepositoryIO.java:63)[na:na]
      3. org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:107)[na:na]
      4. org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)[na:na]
      5. org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:749)[na:na]
      6. org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:651)[na:na]
      7. org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)[na:na]
      8. org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)[na:na]
      8 frames
    3. org.sonatype.p2
      MetadataRepositoryService.merge
      1. org.sonatype.p2.bridge.internal.MetadataRepositoryService.getRepository(MetadataRepositoryService.java:426)[na:na]
      2. org.sonatype.p2.bridge.internal.MetadataRepositoryService.merge(MetadataRepositoryService.java:347)[na:na]
      2 frames
    4. org.sonatype.nexus
      P2MetadataEventsInspector.onItemStored
      1. org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2RepositoryAggregator.updateP2Metadata(DefaultP2RepositoryAggregator.java:442)[na:na]
      2. org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2RepositoryAggregator.updateP2Metadata(DefaultP2RepositoryAggregator.java:253)[na:na]
      3. org.sonatype.nexus.plugins.p2.repository.internal.P2MetadataEventsInspector.onItemStored(P2MetadataEventsInspector.java:52)[na:na]
      3 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_25]
      3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_25]
      3 frames
    6. org.sonatype.sisu
      EventBus.dispatch
      1. org.sonatype.sisu.goodies.eventbus.internal.guava.EventHandler.handleEvent(EventHandler.java:80)[goodies-eventbus-1.9.jar:1.9]
      2. org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.dispatch(EventBus.java:329)[goodies-eventbus-1.9.jar:1.9]
      2 frames
    7. ${project.groupId}:${project.artifactId}
      ReentrantGuavaEventBus.dispatchQueuedEvents
      1. org.sonatype.sisu.goodies.eventbus.internal.DefaultGuavaEventBus.dispatch(DefaultGuavaEventBus.java:34)[goodies-eventbus-1.9.jar:1.9]
      2. org.sonatype.sisu.goodies.eventbus.internal.ReentrantGuavaEventBus.dispatchQueuedEvents(ReentrantGuavaEventBus.java:57)[goodies-eventbus-1.9.jar:1.9]
      2 frames
    8. org.sonatype.sisu
      EventBus.post
      1. org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.post(EventBus.java:281)[goodies-eventbus-1.9.jar:1.9]
      1 frame
    9. ${project.groupId}:${project.artifactId}
      DefaultEventBus.post
      1. org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus.post(DefaultEventBus.java:78)[goodies-eventbus-1.9.jar:1.9]
      1 frame
    10. ${project.groupId}:${project.artifactId}
      AbstractMavenRepository.storeItem
      1. org.sonatype.nexus.proxy.repository.AbstractRepository.storeItem(AbstractRepository.java:1023)[nexus-core-2.8.0-05.jar:2.8.0-05]
      2. org.sonatype.nexus.proxy.maven.AbstractMavenRepository.storeItem(AbstractMavenRepository.java:453)[nexus-core-2.8.0-05.jar:2.8.0-05]
      2 frames
    11. org.sonatype.nexus
      DefaultP2MetadataGenerator$1.onFile
      1. org.sonatype.nexus.plugins.p2.repository.internal.NexusUtils.storeItem(NexusUtils.java:94)[na:na]
      2. org.sonatype.nexus.plugins.p2.repository.internal.NexusUtils.storeItemFromFile(NexusUtils.java:182)[na:na]
      3. org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator.storeP2Data(DefaultP2MetadataGenerator.java:233)[na:na]
      4. org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator.generateP2Metadata(DefaultP2MetadataGenerator.java:157)[na:na]
      5. org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator$1.onFile(DefaultP2MetadataGenerator.java:284)[na:na]
      5 frames
    12. Sisu :: Resource Scanner
      SerialScanner.scan
      1. org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:54)[sisu-resource-scanner-1.1.jar:na]
      2. org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)[sisu-resource-scanner-1.1.jar:na]
      3. org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)[sisu-resource-scanner-1.1.jar:na]
      4. org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)[sisu-resource-scanner-1.1.jar:na]
      5. org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)[sisu-resource-scanner-1.1.jar:na]
      6. org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)[sisu-resource-scanner-1.1.jar:na]
      7. org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)[sisu-resource-scanner-1.1.jar:na]
      8. org.sonatype.sisu.resource.scanner.scanners.SerialScanner.scan(SerialScanner.java:38)[sisu-resource-scanner-1.1.jar:na]
      9. org.sonatype.sisu.resource.scanner.scanners.SerialScanner.scan(SerialScanner.java:30)[sisu-resource-scanner-1.1.jar:na]
      9 frames
    13. org.sonatype.nexus
      P2MetadataGeneratorTask.doRun
      1. org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator.scanAndRebuild(DefaultP2MetadataGenerator.java:275)[na:na]
      2. org.sonatype.nexus.plugins.p2.repository.internal.tasks.P2MetadataGeneratorTask.doRun(P2MetadataGeneratorTask.java:65)[na:na]
      2 frames
    14. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151)[nexus-core-2.8.0-05.jar:2.8.0-05]
      1 frame
    15. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418)[nexus-scheduler-2.8.0-05.jar:2.8.0-05]
      1 frame
    16. ${project.groupId}:${project.artifactId}
      MDCAwareCallable.call
      1. org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44)[nexus-core-2.8.0-05.jar:2.8.0-05]
      1 frame
    17. Shiro
      SubjectCallable.call
      1. org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.2.jar:1.2.2]
      2. org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.2.jar:1.2.2]
      2 frames
    18. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[na:1.7.0_25]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)[na:1.7.0_25]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[na:1.7.0_25]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[na:1.7.0_25]
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_25]
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_25]
      7. java.lang.Thread.run(Thread.java:724)[na:1.7.0_25]
      7 frames