org.sonatype.nexus.proxy.StorageException: Cannot retrieve item content for THIRD_PARTY:/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7-SNAPSHOT/maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1

Sonatype JIRA | Deleted User | 8 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

    A little background first: I have split my repository as follows: COMPANY_RELEASES COMPANY_SNAPSHOTS THIRD_PARTY and also proxies for the various maven repos. I have put the maven-site-plugin beta 7 snapshot in the third party directory, along with all its metadata, etc. It is a version that works for us, so we wanted to keep it. The directory containing it looks like this: 42713180 -rwxrw-r-- 1 build users 192 Jun 4 2008 maven-metadata-CBN_SNAPSHOTS.xml 42713160 -rw-rw-r-- 1 build users 32 Jun 4 2008 maven-metadata-CBN_SNAPSHOTS.xml.md5 42713159 -rw-rw-r-- 1 build users 40 Jun 4 2008 maven-metadata-CBN_SNAPSHOTS.xml.sha1 42713182 -rwxrw-r-- 1 build users 115341 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.jar 42713183 -rwxrw-r-- 1 build users 32 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.jar.md5 42713184 -rwxrw-r-- 1 build users 40 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.jar.sha1 42713185 -rwxrw-r-- 1 build users 12591 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.pom 42713186 -rwxrw-r-- 1 build users 32 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.pom.md5 42713187 -rwxrw-r-- 1 build users 40 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.pom.sha1 42713188 -rwxrw-r-- 1 build users 12591 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.xml 42713175 -rw-rw-r-- 1 build users 32 Jun 4 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.xml.md5 42713174 -rw-rw-r-- 1 build users 40 Jun 4 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.xml.sha1 42713189 -rwxrw-r-- 1 build users 115341 Jun 2 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.jar 42713179 -rw-rw-r-- 1 build users 32 Jun 4 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.jar.md5 42713177 -rw-rw-r-- 1 build users 40 Jun 4 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.jar.sha1 42713190 -rwxrw-r-- 1 build users 12591 Jun 2 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.pom 42713162 -rw-rw-r-- 1 build users 32 Jun 4 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.md5 42713161 -rw-rw-r-- 1 build users 40 Jun 4 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1 When I attempt to download maven-site-plugin-2.0-beta-7-SNAPSHOT.pom, I get a 404. In the log, I see things like: 2008-12-09 12:04:50.404 WARN [pxpool-1-thread-7:] - org.sonatype.nexus.proxy.repository.Repository:maven2: Could not recreate attributes for item THIRD_PARTY:/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7-SNAPSHOT/maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1 org.sonatype.nexus.proxy.StorageException: Cannot retrieve item content for THIRD_PARTY:/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7-SNAPSHOT/maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1 at org.sonatype.nexus.proxy.item.RepositoryContentLocator.getContent(RepositoryContentLocator.java:54) at org.sonatype.nexus.proxy.item.DefaultStorageFileItem.getInputStream(DefaultStorageFileItem.java:167) at org.sonatype.nexus.proxy.repository.RecreateAttributesWalker.processFileItem(RecreateAttributesWalker.java:57) at org.sonatype.nexus.proxy.maven.RecreateMavenAttributesWalker.processFileItem(RecreateMavenAttributesWalker.java:53) at org.sonatype.nexus.proxy.utils.StoreFileWalker.processItem(StoreFileWalker.java:48) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:316) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328) at org.sonatype.nexus.proxy.utils.StoreWalker.walk(StoreWalker.java:218) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateAttributes(AbstractMavenRepository.java:127) at org.sonatype.nexus.DefaultNexus.rebuildAttributesRepository(DefaultNexus.java:1415) at org.sonatype.nexus.tasks.RebuildAttributesTask.doRun(RebuildAttributesTask.java:47) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID THIRD_PARTY:/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7-SNAPSHOT/maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1 in repository THIRD_PARTY at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.retrieveItemContent(AbstractMavenRepository.java:816) at org.sonatype.nexus.proxy.item.RepositoryContentLocator.getContent(RepositoryContentLocator.java:50) ... 23 more I can access maven-metadata-CBN_SNAPSHOTS.xml, and contents are: <?xml version="1.0" encoding="UTF-8"?><metadata> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>2.0-beta-7-SNAPSHOT</version> </metadata> Please help :)

    Sonatype JIRA | 8 years ago | Deleted User
    org.sonatype.nexus.proxy.StorageException: Cannot retrieve item content for THIRD_PARTY:/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7-SNAPSHOT/maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1
  2. 0

    A little background first: I have split my repository as follows: COMPANY_RELEASES COMPANY_SNAPSHOTS THIRD_PARTY and also proxies for the various maven repos. I have put the maven-site-plugin beta 7 snapshot in the third party directory, along with all its metadata, etc. It is a version that works for us, so we wanted to keep it. The directory containing it looks like this: 42713180 -rwxrw-r-- 1 build users 192 Jun 4 2008 maven-metadata-CBN_SNAPSHOTS.xml 42713160 -rw-rw-r-- 1 build users 32 Jun 4 2008 maven-metadata-CBN_SNAPSHOTS.xml.md5 42713159 -rw-rw-r-- 1 build users 40 Jun 4 2008 maven-metadata-CBN_SNAPSHOTS.xml.sha1 42713182 -rwxrw-r-- 1 build users 115341 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.jar 42713183 -rwxrw-r-- 1 build users 32 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.jar.md5 42713184 -rwxrw-r-- 1 build users 40 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.jar.sha1 42713185 -rwxrw-r-- 1 build users 12591 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.pom 42713186 -rwxrw-r-- 1 build users 32 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.pom.md5 42713187 -rwxrw-r-- 1 build users 40 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.pom.sha1 42713188 -rwxrw-r-- 1 build users 12591 Jun 2 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.xml 42713175 -rw-rw-r-- 1 build users 32 Jun 4 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.xml.md5 42713174 -rw-rw-r-- 1 build users 40 Jun 4 2008 maven-site-plugin-2.0-beta-7-20080520.215205-8.xml.sha1 42713189 -rwxrw-r-- 1 build users 115341 Jun 2 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.jar 42713179 -rw-rw-r-- 1 build users 32 Jun 4 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.jar.md5 42713177 -rw-rw-r-- 1 build users 40 Jun 4 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.jar.sha1 42713190 -rwxrw-r-- 1 build users 12591 Jun 2 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.pom 42713162 -rw-rw-r-- 1 build users 32 Jun 4 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.md5 42713161 -rw-rw-r-- 1 build users 40 Jun 4 2008 maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1 When I attempt to download maven-site-plugin-2.0-beta-7-SNAPSHOT.pom, I get a 404. In the log, I see things like: 2008-12-09 12:04:50.404 WARN [pxpool-1-thread-7:] - org.sonatype.nexus.proxy.repository.Repository:maven2: Could not recreate attributes for item THIRD_PARTY:/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7-SNAPSHOT/maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1 org.sonatype.nexus.proxy.StorageException: Cannot retrieve item content for THIRD_PARTY:/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7-SNAPSHOT/maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1 at org.sonatype.nexus.proxy.item.RepositoryContentLocator.getContent(RepositoryContentLocator.java:54) at org.sonatype.nexus.proxy.item.DefaultStorageFileItem.getInputStream(DefaultStorageFileItem.java:167) at org.sonatype.nexus.proxy.repository.RecreateAttributesWalker.processFileItem(RecreateAttributesWalker.java:57) at org.sonatype.nexus.proxy.maven.RecreateMavenAttributesWalker.processFileItem(RecreateMavenAttributesWalker.java:53) at org.sonatype.nexus.proxy.utils.StoreFileWalker.processItem(StoreFileWalker.java:48) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:316) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328) at org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328) at org.sonatype.nexus.proxy.utils.StoreWalker.walk(StoreWalker.java:218) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateAttributes(AbstractMavenRepository.java:127) at org.sonatype.nexus.DefaultNexus.rebuildAttributesRepository(DefaultNexus.java:1415) at org.sonatype.nexus.tasks.RebuildAttributesTask.doRun(RebuildAttributesTask.java:47) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID THIRD_PARTY:/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7-SNAPSHOT/maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1 in repository THIRD_PARTY at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.retrieveItemContent(AbstractMavenRepository.java:816) at org.sonatype.nexus.proxy.item.RepositoryContentLocator.getContent(RepositoryContentLocator.java:50) ... 23 more I can access maven-metadata-CBN_SNAPSHOTS.xml, and contents are: <?xml version="1.0" encoding="UTF-8"?><metadata> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>2.0-beta-7-SNAPSHOT</version> </metadata> Please help :)

    Sonatype JIRA | 8 years ago | Deleted User
    org.sonatype.nexus.proxy.StorageException: Cannot retrieve item content for THIRD_PARTY:/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7-SNAPSHOT/maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1

    Root Cause Analysis

    1. org.sonatype.nexus.proxy.ItemNotFoundException

      Item not found on UID THIRD_PARTY:/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7-SNAPSHOT/maven-site-plugin-2.0-beta-7-SNAPSHOT.pom.sha1 in repository THIRD_PARTY

      at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.retrieveItemContent()
    2. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.proxy.maven.AbstractMavenRepository.retrieveItemContent(AbstractMavenRepository.java:816)
      2. org.sonatype.nexus.proxy.item.RepositoryContentLocator.getContent(RepositoryContentLocator.java:50)
      3. org.sonatype.nexus.proxy.item.DefaultStorageFileItem.getInputStream(DefaultStorageFileItem.java:167)
      4. org.sonatype.nexus.proxy.repository.RecreateAttributesWalker.processFileItem(RecreateAttributesWalker.java:57)
      5. org.sonatype.nexus.proxy.maven.RecreateMavenAttributesWalker.processFileItem(RecreateMavenAttributesWalker.java:53)
      6. org.sonatype.nexus.proxy.utils.StoreFileWalker.processItem(StoreFileWalker.java:48)
      7. org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:316)
      8. org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328)
      9. org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328)
      10. org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328)
      11. org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328)
      12. org.sonatype.nexus.proxy.utils.StoreWalker.walkRecursive(StoreWalker.java:328)
      13. org.sonatype.nexus.proxy.utils.StoreWalker.walk(StoreWalker.java:218)
      14. org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateAttributes(AbstractMavenRepository.java:127)
      15. org.sonatype.nexus.DefaultNexus.rebuildAttributesRepository(DefaultNexus.java:1415)
      16. org.sonatype.nexus.tasks.RebuildAttributesTask.doRun(RebuildAttributesTask.java:47)
      17. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142)
      17 frames
    3. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345)
      1 frame
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      7. java.lang.Thread.run(Thread.java:619)
      7 frames