Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-1151

Error when processing file nexus-maven-repository-index.zip

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2.2
    • Component/s: repository scanning
    • Labels:
      None
    • Environment:
      Archiva trunk r756621

      Description

      On every repository scan, Archiva complains about the nexus-maven-repository-index.zip file. See ERROR below:

      2009-03-21 07:00:01,373 [pool-2-thread-1] INFO org.apache.maven.archiva.scheduled.executors.ArchivaRepositoryScanningTaskExecutor - Executing task from queue with job name: repository-job:snapshots
      2009-03-21 07:00:01,436 [pool-2-thread-1] INFO org.apache.maven.archiva.repository.scanner.RepositoryScannerInstance - Walk Started: [snapshots] /usr/local/share/repository/snapshots
      2009-03-21 07:00:01,437 [pool-2-thread-1] ERROR org.apache.maven.archiva.repository.scanner.functors.ConsumerProcessFileClosure - Consumer [repository-purge] had an error when processing file [/usr/local/share/repository/snapshots/.index/nexus-maven-repository-index.zip]: Not enough parts to the path [.index/nexus-maven-repository-index.zip] to construct an ArchivaArtifact from. (Requires at least 4 parts)
      org.apache.maven.archiva.consumers.ConsumerException: Not enough parts to the path [.index/nexus-maven-repository-index.zip] to construct an ArchivaArtifact from. (Requires at least 4 parts)
      at org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeConsumer.processFile(RepositoryPurgeConsumer.java:174)
      at org.apache.maven.archiva.repository.scanner.functors.ConsumerProcessFileClosure.execute(ConsumerProcessFileClosure.java:50)
      at org.apache.commons.collections.functors.IfClosure.execute(IfClosure.java:117)
      at org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUtils.java:388)
      at org.apache.maven.archiva.repository.scanner.RepositoryScannerInstance.directoryWalkStep(RepositoryScannerInstance.java:137)
      at org.codehaus.plexus.util.DirectoryWalker.fireStep(DirectoryWalker.java:174)
      at org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:392)
      at org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:386)
      at org.codehaus.plexus.util.DirectoryWalker.scan(DirectoryWalker.java:345)
      at org.apache.maven.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultRepositoryScanner.java:117)
      at org.apache.maven.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultRepositoryScanner.java:61)
      at org.apache.maven.archiva.scheduled.executors.ArchivaRepositoryScanningTaskExecutor.executeTask(ArchivaRepositoryScanningTaskExecutor.java:120)
      at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
      at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
      at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
      at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
      at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
      at java.lang.Thread.run(Thread.java:637)
      Caused by: org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeException: Not enough parts to the path [.index/nexus-maven-repository-index.zip] to construct an ArchivaArtifact from. (Requires at least 4 parts)
      at org.apache.maven.archiva.consumers.core.repository.CleanupReleasedSnapshotsRepositoryPurge.process(CleanupReleasedSnapshotsRepositoryPurge.java:194)
      at org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeConsumer.processFile(RepositoryPurgeConsumer.java:167)
      ... 17 more
      Caused by: org.apache.maven.archiva.repository.layout.LayoutException: Not enough parts to the path [.index/nexus-maven-repository-index.zip] to construct an ArchivaArtifact from. (Requires at least 4 parts)
      at org.apache.maven.archiva.repository.content.DefaultPathParser.toArtifactReference(DefaultPathParser.java:65)
      at org.apache.maven.archiva.repository.content.AbstractDefaultRepositoryContent.toArtifactReference(AbstractDefaultRepositoryContent.java:54)
      at org.apache.maven.archiva.repository.content.ManagedDefaultRepositoryContent.toArtifactReference(ManagedDefaultRepositoryContent.java:340)
      at org.apache.maven.archiva.consumers.core.repository.CleanupReleasedSnapshotsRepositoryPurge.process(CleanupReleasedSnapshotsRepositoryPurge.java:103)
      ... 18 more
      2009-03-21 07:00:01,612 [btpool0-5] INFO org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors - Transfer not attempted on http://repo1.maven.org/maven2/werken-xpath/werken-xpath/0.9.4/werken-xpath-0.9.4.pom : NO to update releases, policy is ONCE, and local file exist.: using already present local file.
      2009-03-21 07:00:03,521 [pool-2-thread-1] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [auto-remove] completed for repository [snapshots]
      2009-03-21 07:00:03,521 [pool-2-thread-1] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [metadata-updater] completed for repository [snapshots]
      2009-03-21 07:00:03,521 [pool-2-thread-1] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [auto-rename] completed for repository [snapshots]
      2009-03-21 07:00:03,521 [pool-2-thread-1] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [repository-purge] completed for repository [snapshots]
      2009-03-21 07:00:03,521 [pool-2-thread-1] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [update-db-artifact] completed for repository [snapshots]
      2009-03-21 07:00:03,521 [pool-2-thread-1] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [create-missing-checksums] completed for repository [snapshots]
      2009-03-21 07:00:03,546 [btpool0-5] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [auto-remove] completed for repository [internal]
      2009-03-21 07:00:03,546 [btpool0-5] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [metadata-updater] completed for repository [internal]
      2009-03-21 07:00:03,546 [btpool0-5] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [auto-rename] completed for repository [internal]
      2009-03-21 07:00:03,546 [btpool0-5] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [repository-purge] completed for repository [internal]
      2009-03-21 07:00:03,546 [btpool0-5] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [update-db-artifact] completed for repository [internal]
      2009-03-21 07:00:03,546 [btpool0-5] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [create-missing-checksums] completed for repository [internal]
      2009-03-21 07:00:10,885 [pool-2-thread-1] INFO org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure - Consumer [index-content] completed for repository [snapshots]
      2009-03-21 07:00:10,885 [pool-2-thread-1] INFO org.apache.maven.archiva.repository.scanner.RepositoryScannerInstance - Walk Finished: [snapshots] /usr/local/share/repository/snapshots
      2009-03-21 07:00:10,885 [pool-2-thread-1] INFO org.apache.maven.archiva.scheduled.executors.ArchivaRepositoryScanningTaskExecutor - Finished repository task:
      .\ Scan of snapshots \.__________________________________________
      Repository Dir : /usr/local/share/repository/snapshots
      Repository Name : Archiva Managed Snapshot Repository
      Repository Layout : default
      Known Consumers : (7 configured)
      auto-remove
      metadata-updater
      auto-rename
      repository-purge
      update-db-artifact
      create-missing-checksums
      index-content
      Invalid Consumers : <none>
      Duration : 9 Seconds 449 Milliseconds
      When Gathered : 3/21/09 7:00 AM
      Total File Count : 320
      Avg Time Per File : 29 Milliseconds
      ______________________________________________________________
      2009-03-21 07:01:09,623 [pool-1-thread-1] INFO org.apache.maven.archiva.scheduled.executors.ArchivaDatabaseUpdateTaskExecutor - Finished database task in 69580ms.

        Attachments

        1. MRM-1151.patch
          1 kB
          Gwen Harold Autencio

          Activity

            People

            • Assignee:
              jzurbano Jevica Arianne B. Zurbano
              Reporter:
              wsmoak Wendy Smoak
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: