java.lang.RuntimeException

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.

  • 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}
    via by Conny Kreyßel,
  • GitHub comment 9#112862034
    via GitHub by jordanviking
    ,
  • GitHub comment 9#112862034
    via GitHub by jordanviking
    ,
  • GitHub comment 9#112862034
    via GitHub by jordanviking
    ,
  • GitHub comment 9#112862034
    via GitHub by jordanviking
    ,
  • [p2] Provisioning exception
    via by error-reports-inbox,
    • java.lang.RuntimeException: Cannot merge metadata repository [file:/C:/Nexus/sonatype-work
    • exus/tmp
    • exus-p2-repository-plugin6130622094092664014/] into [file:/C:/Nexus/sonatype-work
    • exus/tmp
    • exus-p2-repository-plugin3458008289772765955/] due to [Unable to read repository at file:/C:/Nexus/sonatype-work
    • exus/tmp
    • exus-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
    • exus/tmp
    • exus-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 more 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 more
    No Bugmate found.