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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Sonatype JIRA by Conny Kreyßel, 1 year ago
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.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO$Parser.parse(MetadataRepositoryIO.java:215)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO.read(MetadataRepositoryIO.java:63)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:107)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:749)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:651)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
at org.sonatype.p2.bridge.internal.MetadataRepositoryService.getRepository(MetadataRepositoryService.java:426)
at org.sonatype.p2.bridge.internal.MetadataRepositoryService.merge(MetadataRepositoryService.java:347)
at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2RepositoryAggregator.updateP2Metadata(DefaultP2RepositoryAggregator.java:442)
at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2RepositoryAggregator.updateP2Metadata(DefaultP2RepositoryAggregator.java:253)
at org.sonatype.nexus.plugins.p2.repository.internal.P2MetadataEventsInspector.onItemStored(P2MetadataEventsInspector.java:52)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.sonatype.sisu.goodies.eventbus.internal.guava.EventHandler.handleEvent(EventHandler.java:80)
at org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.dispatch(EventBus.java:329)
at org.sonatype.sisu.goodies.eventbus.internal.DefaultGuavaEventBus.dispatch(DefaultGuavaEventBus.java:34)
at org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.post(EventBus.java:281)
at org.sonatype.nexus.proxy.repository.AbstractRepository.storeItem(AbstractRepository.java:1023)
at org.sonatype.nexus.plugins.p2.repository.internal.NexusUtils.storeItem(NexusUtils.java:94)
at org.sonatype.nexus.plugins.p2.repository.internal.NexusUtils.storeItemFromFile(NexusUtils.java:182)
at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator.storeP2Data(DefaultP2MetadataGenerator.java:233)
at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator.generateP2Metadata(DefaultP2MetadataGenerator.java:157)
at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator$1.onFile(DefaultP2MetadataGenerator.java:284)
at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:54)
at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)
at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)
at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)
at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)
at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)
at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.recurse(SerialScanner.java:51)
at org.sonatype.sisu.resource.scanner.scanners.SerialScanner.scan(SerialScanner.java:38)
at org.sonatype.nexus.plugins.p2.repository.internal.DefaultP2MetadataGenerator.scanAndRebuild(DefaultP2MetadataGenerator.java:275)
at org.sonatype.nexus.plugins.p2.repository.internal.tasks.P2MetadataGeneratorTask.doRun(P2MetadataGeneratorTask.java:65)
at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.