« Return to Thread: [jira] Created: (MRM-1151) Error when processing file nexus-maven-repository-index.zip

[jira] Issue Comment Edited: (MRM-1151) Error when processing file nexus-maven-repository-index.zip

by JIRA jira@codehaus.org :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread


    [ http://jira.codehaus.org/browse/MRM-1151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=179565#action_179565 ]

Maria Odea Ching edited comment on MRM-1151 at 6/7/09 9:57 PM:
---------------------------------------------------------------

Just a note for this issue, this doesn't affect the indexing.. What happens is that the scanner sees the zipped file and passes it on to the repo purge consumer and since it doesn't have the standard groupId/artifactId/version path, the error is thrown. We should probably specify an excludes in the purge consumer (or in all the repo consumers) so that it doesn't process the index and the zipped index.

      was (Author: oching):
    Just a note for this issues, this doesn't affect the indexing.. What happens is that the scanner sees the zipped file and passes it on to the repo purge consumer and since it doesn't have the standard groupId/artifactId/version path, the error is thrown. We should probably specify an excludes in the purge consumer (or in all the repo consumers) so that it doesn't process the index and the zipped index.
 

> Error when processing file nexus-maven-repository-index.zip
> -----------------------------------------------------------
>
>                 Key: MRM-1151
>                 URL: http://jira.codehaus.org/browse/MRM-1151
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.2
>         Environment: Archiva trunk r756621
>            Reporter: Wendy Smoak
>            Priority: Minor
>             Fix For: 1.2.2
>
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

 « Return to Thread: [jira] Created: (MRM-1151) Error when processing file nexus-maven-repository-index.zip