Interestingly I did fresh install with 1.4.2.
I found out that the problem was caused by collections marked as null.

-Mika

> On Thu, Jun 21, 2007 at 10:36:49AM +0300, Mika Stenberg wrote:
>> Im trying to run index-all on brand new Dspace 1.4.2 installation with 
>> only few test items in it. I get this error when running, what could be 
>> causing it?
>>
>> Creating browse index
>> Indexing all Items in DSpace.... ... Done
>> Creating search index
>> Exception in thread "main" java.lang.NullPointerException: value cannot 
>> be null
>>      at org.apache.lucene.document.Field.<init>(Field.java:188)
>>      at org.apache.lucene.document.Field.<init>(Field.java:164)
>>      at org.dspace.search.DSIndexer.buildDocument(DSIndexer.java:890)
>>      at org.dspace.search.DSIndexer.createIndex(DSIndexer.java:383)
>>      at org.dspace.search.DSIndexer.main(DSIndexer.java:547)
> 
> Are you positive this is the 1.4.2 release? Line 890 of DSIndexer in
> that release is:
> 
> ArrayList fields = new ArrayList();
> 
> which will never give you a NullPointerException. Did you upgrade from
> an older version, or install it totally "fresh"?
> 
> cheers,
> 
> Jim
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to