archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Kim <charl...@yahoo-inc.com>
Subject RE: NullPointerException when Updating artifact index?
Date Wed, 31 Oct 2012 23:23:38 GMT
Archiva 1.4-M2
No, it doesn't always happen for the same artifact and that particular artifact exists btw.
 It is hard for me to figure out what might be wrong based on the NullPointerException.  I'm
not seeing anything now, but will keep an eye on it.
Thanks

-----Original Message-----
From: Olivier Lamy [mailto:olamy@apache.org] 
Sent: Wednesday, October 31, 2012 4:03 PM
To: users@archiva.apache.org
Subject: Re: NullPointerException when Updating artifact index?

Hi,
Which archiva version are you using ?
Does it always happen for the same artifact ? (here looks to be
org.apache.ant:ant-launcher:1.8.1:null:null)

2012/10/31 Charles Kim <charlesk@yahoo-inc.com>:
> Any one has an idea why I'm getting this? It doesn't look like I'm getting this consistently
but often enough to be concerned about.
> I don't have much experience on how indexing works in Archiva. Any pointers to debug
this would be appreciated.
> Thanks.
>
>
> 2012-10-31 00:38:11,811 DEBUG [org.apache.archiva.scheduler.indexing.ArchivaIndexingTaskExecutor]
Index file packaged at '/home/y/var/yarchiva/data/repositories/public/.indexer'.
> 2012-10-31 00:38:11,811 DEBUG [org.apache.archiva.scheduler.indexing.ArchivaIndexingTaskExecutor]
Creating indexing context on resource: /home/y/var/yarchiva/data/repositories/public/org/apache/ant/
> ant-launcher/1.8.1/ant-launcher-1.8.1.jar
> 2012-10-31 00:38:11,811 DEBUG [org.apache.archiva.scheduler.indexing.ArchivaIndexingTaskExecutor]
Updating artifact 'org.apache.ant:ant-launcher:1.8.1:null:null' in index..
> 2012-10-31 00:38:11,927 ERROR [org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor]
Error executing task
> java.util.concurrent.ExecutionException: java.lang.NullPointerException
>         at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
>         at java.util.concurrent.FutureTask.get(FutureTask.java:111)
>         at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.waitForTask(ThreadedTaskQueueExecutor.java:167)
>         at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:135)
> Caused by: java.lang.NullPointerException
>         at org.apache.lucene.index.SegmentTermDocs.<init>(SegmentTermDocs.java:52)
>         at org.apache.lucene.index.SegmentReader.termDocs(SegmentReader.java:963)
>         at org.apache.lucene.index.IndexReader.termDocs(IndexReader.java:813)
>         at org.apache.lucene.index.SegmentReader.termDocs(SegmentReader.java:956)
>         at org.apache.lucene.search.TermQuery$TermWeight.scorer(TermQuery.java:74)
>         at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:210)
>         at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:170)
>         at org.apache.lucene.search.Searcher.search(Searcher.java:98)
>         at org.apache.lucene.search.Searcher.search(Searcher.java:108)
>         at org.apache.maven.index.DefaultIndexerEngine.getOldDocument(DefaultIndexerEngine.java:158)
>         at org.apache.maven.index.DefaultIndexerEngine.update(DefaultIndexerEngine.java:77)
>         at org.apache.maven.index.DefaultNexusIndexer.addArtifactToIndex(DefaultNexusIndexer.java:371)
>         at org.apache.archiva.scheduler.indexing.ArchivaIndexingTaskExecutor.executeTask(ArchivaIndexingTaskExecutor.java:180)
>         at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:124)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
> 2012-10-31 00:38:11,928 DEBUG [org.apache.archiva.scheduler.indexing.ArchivaIndexingTaskExecutor]
Creating indexing context on resource: /home/y/var/yarchiva/data/repositories/public/org/mortbay/jetty/jetty/6.1.25/jetty-6.1.25.pom
> 2012-10-31 00:38:11,929 DEBUG [org.apache.archiva.scheduler.indexing.ArchivaIndexingTaskExecutor]
Adding artifact 'org.mortbay.jetty:jetty:6.1.25:null:null' to index..
> 2012-10-31 00:38:12,011 DEBUG [org.apache.archiva.scheduler.indexing.ArchivaIndexingTaskExecutor]
Finishing indexing task on resource file : /home/y/var/yarchiva/data/repositories/public/org/mortbay/jetty/jetty/6.1.25/jetty-6.1.25.pom



--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

Mime
View raw message