You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Jason Chaffee (JIRA)" <ji...@codehaus.org> on 2008/02/12 02:07:29 UTC

[jira] Created: (MRM-691) Can't get any of the consumers to work without through a NPE

Can't get any of the consumers to work without through a NPE
------------------------------------------------------------

                 Key: MRM-691
                 URL: http://jira.codehaus.org/browse/MRM-691
             Project: Archiva
          Issue Type: Bug
          Components: repository scanning
    Affects Versions: 1.0.1
         Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
            Reporter: Jason Chaffee
         Attachments: archiva.log, audit.log, wrapper.20080211.log

It appears to be causing NPE for all consumers and some there seems to be some type of InvalidPath issue as well.  

Logs are attached.

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

        

[jira] Commented: (MRM-691) Can't get any of the consumers to work without through a NPE

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123462 ] 

Brett Porter commented on MRM-691:
----------------------------------

I think we can create a separate issue for the file format exception - it certainly looks right to me so I'm not sure why it is complaining about that.

With regard to the NPE - have you been able to check the consumer configuration for the database?

> Can't get any of the consumers to work without through a NPE
> ------------------------------------------------------------
>
>                 Key: MRM-691
>                 URL: http://jira.codehaus.org/browse/MRM-691
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.1
>         Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
>            Reporter: Jason Chaffee
>             Fix For: 1.0.2
>
>         Attachments: archiva.log, audit.log, wrapper.20080211.log
>
>
> It appears to be causing NPE for all consumers and some there seems to be some type of InvalidPath issue as well.  
> Logs are attached.

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

        

[jira] Closed: (MRM-691) Can't get any of the consumers to work without through a NPE

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MRM-691.
----------------------------

    Resolution: Fixed

> Can't get any of the consumers to work without through a NPE
> ------------------------------------------------------------
>
>                 Key: MRM-691
>                 URL: http://jira.codehaus.org/browse/MRM-691
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.1
>         Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
>            Reporter: Jason Chaffee
>            Assignee: Brett Porter
>             Fix For: 1.0.2
>
>         Attachments: archiva.log, audit.log, wrapper.20080211.log
>
>
> It appears to be causing NPE for all consumers and some there seems to be some type of InvalidPath issue as well.  
> Logs are attached.

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

        

[jira] Commented: (MRM-691) Can't get any of the consumers to work without through a NPE

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123344 ] 

Brett Porter commented on MRM-691:
----------------------------------

I just noted the other exceptions you were posting about
"test-sources" artifacts is a different issue (I think it has already
been reported but would need to check).

For the NPE - it appears to be a consumer is null - you might check
the consumer configuration page - or look for empty entries in
archiva.xml.

> Can't get any of the consumers to work without through a NPE
> ------------------------------------------------------------
>
>                 Key: MRM-691
>                 URL: http://jira.codehaus.org/browse/MRM-691
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.1
>         Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
>            Reporter: Jason Chaffee
>         Attachments: archiva.log, audit.log, wrapper.20080211.log
>
>
> It appears to be causing NPE for all consumers and some there seems to be some type of InvalidPath issue as well.  
> Logs are attached.

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

        

[jira] Commented: (MRM-691) Can't get any of the consumers to work without through a NPE

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_124952 ] 

Brett Porter commented on MRM-691:
----------------------------------

the first failures is that this returns null:
archivaConfiguration.getConfiguration().findManagedRepositoryById( repoTask.getRepositoryId() );

the subsequent failures are from apparently a null getLogger() - this is probably a side effect of the above failure

> Can't get any of the consumers to work without through a NPE
> ------------------------------------------------------------
>
>                 Key: MRM-691
>                 URL: http://jira.codehaus.org/browse/MRM-691
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.1
>         Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
>            Reporter: Jason Chaffee
>            Assignee: Brett Porter
>             Fix For: 1.0.2
>
>         Attachments: archiva.log, audit.log, wrapper.20080211.log
>
>
> It appears to be causing NPE for all consumers and some there seems to be some type of InvalidPath issue as well.  
> Logs are attached.

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

        

[jira] Commented: (MRM-691) Can't get any of the consumers to work without through a NPE

Posted by "Jason Chaffee (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123361 ] 

Jason Chaffee commented on MRM-691:
-----------------------------------

I shutdown archiva and restarted it and then I ran the repostiory scan and the NPE's are no longer present.  Now, I am only getting the invalid artifact path problem.  I will attach the new logs.

> Can't get any of the consumers to work without through a NPE
> ------------------------------------------------------------
>
>                 Key: MRM-691
>                 URL: http://jira.codehaus.org/browse/MRM-691
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.1
>         Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
>            Reporter: Jason Chaffee
>         Attachments: archiva.log, audit.log, wrapper.20080211.log
>
>
> It appears to be causing NPE for all consumers and some there seems to be some type of InvalidPath issue as well.  
> Logs are attached.

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

        

[jira] Commented: (MRM-691) Can't get any of the consumers to work without through a NPE

Posted by "Jason Chaffee (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123370 ] 

Jason Chaffee commented on MRM-691:
-----------------------------------

The NPE came back when the database update ran.

> Can't get any of the consumers to work without through a NPE
> ------------------------------------------------------------
>
>                 Key: MRM-691
>                 URL: http://jira.codehaus.org/browse/MRM-691
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.1
>         Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
>            Reporter: Jason Chaffee
>         Attachments: archiva.log, audit.log, wrapper.20080211.log
>
>
> It appears to be causing NPE for all consumers and some there seems to be some type of InvalidPath issue as well.  
> Logs are attached.

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

        

[jira] Updated: (MRM-691) Can't get any of the consumers to work without through a NPE

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MRM-691:
-----------------------------

         Assignee: Brett Porter
    Fix Version/s: 1.0.2

> Can't get any of the consumers to work without through a NPE
> ------------------------------------------------------------
>
>                 Key: MRM-691
>                 URL: http://jira.codehaus.org/browse/MRM-691
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.1
>         Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
>            Reporter: Jason Chaffee
>            Assignee: Brett Porter
>             Fix For: 1.0.2
>
>         Attachments: archiva.log, audit.log, wrapper.20080211.log
>
>
> It appears to be causing NPE for all consumers and some there seems to be some type of InvalidPath issue as well.  
> Logs are attached.

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

        

[jira] Issue Comment Edited: (MRM-691) Can't get any of the consumers to work without through a NPE

Posted by "Jason Chaffee (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123361 ] 

jasonchaffee edited comment on MRM-691 at 2/12/08 1:13 AM:
------------------------------------------------------------

I shutdown archiva and restarted it and then I ran the repostiory scan and the NPE's are no longer present.  Now, I am only getting the invalid artifact path problem.

2291646 [pool-2-thread-1] ERROR org.apache.maven.archiva.repository.scanner.RepositoryScanner:default  - Consumer [repository-purge] had an error when processing file [/disk1/html/maven2-snapshot/com/tvworks/tva/apps/comcast/admincla/3.3.1-SNAPSHOT/admincla-3.3.1-20080115.074922-1.jar]: Invalid path to Artifact: filename format is invalid,expected timestamp format in filename.
org.apache.maven.archiva.consumers.ConsumerException: Invalid path to Artifact: filename format is invalid,expected timestamp format in filename.
	at org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeConsumer.processFile(RepositoryPurgeConsumer.java:189)
	at org.apache.maven.archiva.repository.scanner.functors.ConsumerProcessFileClosure.execute(ConsumerProcessFileClosure.java:57)
	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:138)
	at org.codehaus.plexus.util.DirectoryWalker.fireStep(DirectoryWalker.java:173)
	at org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:391)
	at org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
	at org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
	at org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
	at org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
	at org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
	at org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
	at org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
	at org.codehaus.plexus.util.DirectoryWalker.scan(DirectoryWalker.java:344)
	at org.apache.maven.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultRepositoryScanner.java:120)
	at org.apache.maven.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultRepositoryScanner.java:64)
	at org.apache.maven.archiva.scheduled.executors.ArchivaRepositoryScanningTaskExecutor.executeTask(ArchivaRepositoryScanningTaskExecutor.java:106)
	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$Worker.runTask(ThreadPoolExecutor.java:665)
	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeException: Invalid path to Artifact: filename format is invalid,expected timestamp format in filename.
	at org.apache.maven.archiva.consumers.core.repository.RetentionCountRepositoryPurge.process(RetentionCountRepositoryPurge.java:102)
	at org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeConsumer.processFile(RepositoryPurgeConsumer.java:185)
	... 23 more

      was (Author: jasonchaffee):
    I shutdown archiva and restarted it and then I ran the repostiory scan and the NPE's are no longer present.  Now, I am only getting the invalid artifact path problem.  I will attach the new logs.
  
> Can't get any of the consumers to work without through a NPE
> ------------------------------------------------------------
>
>                 Key: MRM-691
>                 URL: http://jira.codehaus.org/browse/MRM-691
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.1
>         Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
>            Reporter: Jason Chaffee
>         Attachments: archiva.log, audit.log, wrapper.20080211.log
>
>
> It appears to be causing NPE for all consumers and some there seems to be some type of InvalidPath issue as well.  
> Logs are attached.

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