Hi,
I have a similar issue with plexus-spring in continuum (but with
continuum, continuum can't start start).
In fact, I have found two issues.
The PlexusConfiguration is not complete with empty elements..
The xml configuration is :
<configuration>
<task-entry-evaluators>
</task-entry-evaluators>
<task-exit-evaluators>
</task-exit-evaluators>
<task-viability-evaluators>
<task-viability-evaluator>build-project</task-viability-evaluator>
</task-viability-evaluators>
</configuration>
And in the plexus-spring trunk, the generated plexusConfiguration
object returns null when trying to get the child
"task-entry-evaluators". This cause this NPE in the configure method
in the DefaultTaskQueue class.
When I have fixed the first one (fixed here but not yet committed), I
have found an other one in plexus-spring : the plexus lifecycle is not
executed in the rigth order [1].
Configurable is executed first (before Contextualizable) and in the
TaskQueue component the configure method needs a plexusContainer which
is normally set with the contextualize method.
Locally I have fixed the first issue and I'm working on the second
(respecting the plexus lifecycle order). Now I try find how to get the
PlexusConfiguration in the PlexusLifecycleBeanPostProcessor class in
order to execute the configure in the right. But as a non Spring
expert, I haven't found yet :-).
--
Olivier
[1]
http://plexus.codehaus.org/guides/developer-guide/personalities/plexus-personality.html
2008/3/23, Wendy Smoak <[EMAIL PROTECTED]>:
> In the event it hasn't already been reported, I see this every hour in
> the log...
>
> INFO | jvm 2 | 2008/03/22 19:00:00 | 2008-03-22 19:00:00,017
> [pool-1-thread-1] INFO
> org.codehaus.plexus.taskqueue.execution.TaskExecutor:database-update
> - Executing task from queue with job name: database-job
> INFO | jvm 2 | 2008/03/22 19:00:00 | 2008-03-22 19:00:00,017
> [pool-1-thread-1] INFO
> org.codehaus.plexus.taskqueue.execution.TaskExecutor:database-update
> - Task: Updating unprocessed artifacts
> INFO | jvm 2 | 2008/03/22 19:00:00 | 2008-03-22 19:00:00,021
> [pool-2-thread-1] INFO
> org.codehaus.plexus.taskqueue.execution.TaskExecutor:repository-scanning
> - Executing task from queue with job name: repository-job:internal
> INFO | jvm 2 | 2008/03/22 19:00:00 | 2008-03-22 19:00:00,029
> [pool-2-thread-1] INFO
> org.apache.maven.archiva.repository.scanner.RepositoryScanner:default
> - Walk Started: [internal] /usr/local/share/repository/internal
> INFO | jvm 2 | 2008/03/22 19:00:02 | 2008-03-22 19:00:02,212
> [pool-1-thread-1] INFO
> org.codehaus.plexus.taskqueue.execution.TaskExecutor:database-update
> - Task: Updating processed artifacts
> INFO | jvm 2 | 2008/03/22 19:00:03 | 2008-03-22 19:00:03,597
> [Thread-5] ERROR
> org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor:database-update
> - Error executing task
> INFO | jvm 2 | 2008/03/22 19:00:03 |
> edu.emory.mathcs.backport.java.util.concurrent.ExecutionException:
> java.lang.NullPointerException
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(FutureTask.java:299)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask.java:118)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.waitForTask(ThreadedTaskQueueExecutor.java:159)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:127)
> INFO | jvm 2 | 2008/03/22 19:00:03 | Caused by:
> java.lang.NullPointerException
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> org.apache.maven.archiva.database.updater.ProcessArchivaArtifactClosure.execute(ProcessArchivaArtifactClosure.java:56)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUtils.java:388)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> org.apache.maven.archiva.database.updater.JdoDatabaseUpdater.updateProcessed(JdoDatabaseUpdater.java:170)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> org.apache.maven.archiva.database.updater.JdoDatabaseUpdater.updateAllProcessed(JdoDatabaseUpdater.java:111)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> org.apache.maven.archiva.scheduled.executors.ArchivaDatabaseUpdateTaskExecutor.executeTask(ArchivaDatabaseUpdateTaskExecutor.java:78)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
>
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> INFO | jvm 2 | 2008/03/22 19:00:03 | at
> java.lang.Thread.run(Thread.java:613)
> INFO | jvm 2 | 2008/03/22 19:00:05 | 2008-03-22 19:00:05,594
> [pool-2-thread-1] INFO
> org.apache.maven.archiva.repository.scanner.RepositoryScanner:default
> - Walk Finished: [internal] /usr/local/share/repository/internal
> INFO | jvm 2 | 2008/03/22 19:00:05 | 2008-03-22 19:00:05,595
> [pool-2-thread-1] INFO
> org.codehaus.plexus.taskqueue.execution.TaskExecutor:repository-scanning
> - Finished repository task:
>
> --
>
> Wendy
>