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

Purge task problem : Not enough parts to the path

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.3
    • Component/s: None
    • Labels:
      None

      Description

      I keep on having these logs :
      I'm using archiva 1.3.1.
      I thought this was fixed in MRM-1151, but I still get this :

      2010-07-20 14:00:36,868 [pool-2-thread-1] INFO org.apache.maven.archiva.scheduled.executors.ArchivaRepositoryScanningTaskExecutor - Executing task from queue with job name: RepositoryTask [repositoryId=sofaxis-snapshot, resourceFile=null, scanAll=false, updateRelatedArtifacts=false]
      2010-07-20 14:00:36,868 [pool-2-thread-1] INFO org.apache.maven.archiva.repository.scanner.RepositoryScannerInstance - Walk Started: [sofaxis-snapshot] D:\maven_archiva_data\data\repositories\sofaxis-snapshot
      2010-07-20 14:00:36,868 [pool-2-thread-1] ERROR org.apache.maven.archiva.repository.scanner.functors.ConsumerProcessFileClosure - Consumer [repository-purge] had an error when processing file [D:\maven_archiva_data\data\repositories\sofaxis-snapshot\.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:144)
      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:595)
      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

      1. archiva.zip
        7 kB
        Dominique Jean-Prost

        Issue Links

          Activity

          Hide
          brettporter Brett Porter added a comment -

          we'll check, as it seems identical. Maybe this is a problem on windows?

          Show
          brettporter Brett Porter added a comment - we'll check, as it seems identical. Maybe this is a problem on windows?
          Hide
          oching Maria Odea Ching added a comment -

          I cannot reproduce this issue in 1.3.2. I tried both in Windows and Linux, but I didn't get the above error when the repository purge consumer was executed during the repo scan.

          Show
          oching Maria Odea Ching added a comment - I cannot reproduce this issue in 1.3.2. I tried both in Windows and Linux, but I didn't get the above error when the repository purge consumer was executed during the repo scan.
          Hide
          oching Maria Odea Ching added a comment -

          I also couldn't reproduce this in 1.3.1.

          Dominique, were you using the standalone jetty bundle or did you deploy the Archiva war file to an app server?

          Show
          oching Maria Odea Ching added a comment - I also couldn't reproduce this in 1.3.1. Dominique, were you using the standalone jetty bundle or did you deploy the Archiva war file to an app server?
          Hide
          djeanprost Dominique Jean-Prost added a comment -

          I'm using the standalone jetty bundle. Is there log files I could provide to you to help ?
          I run archiva on windows.

          Show
          djeanprost Dominique Jean-Prost added a comment - I'm using the standalone jetty bundle. Is there log files I could provide to you to help ? I run archiva on windows.
          Hide
          oching Maria Odea Ching added a comment -

          Yes, it might help to provide the log files Can you attach the archiva.log file where the above error occurred?

          Thanks!

          Show
          oching Maria Odea Ching added a comment - Yes, it might help to provide the log files Can you attach the archiva.log file where the above error occurred? Thanks!
          Hide
          djeanprost Dominique Jean-Prost added a comment -

          Log file with stacktrace inside.

          Show
          djeanprost Dominique Jean-Prost added a comment - Log file with stacktrace inside.
          Hide
          brettporter Brett Porter added a comment -

          fixed in the same way as the other purge consumers - by ignoring the exception (as purging non-artifacts makes no sense anyway)

          Show
          brettporter Brett Porter added a comment - fixed in the same way as the other purge consumers - by ignoring the exception (as purging non-artifacts makes no sense anyway)

            People

            • Assignee:
              brettporter Brett Porter
              Reporter:
              djeanprost Dominique Jean-Prost
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development