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

-- 
James Rutherford          |  Hewlett-Packard Limited registered Office:
Research Engineer         |  Cain Road,
HP Labs                   |  Bracknell,
Bristol, UK               |  Berks
+44 117 312 7066          |  RG12 1HN.
[EMAIL PROTECTED]   |  Registered No: 690597 England

The contents of this message and any attachments to it are confidential and
may be legally privileged. If you have received this message in error, you
should delete it from your system immediately and advise the sender. To any
recipient of this message within HP, unless otherwise stated you should
consider this message and attachments as "HP CONFIDENTIAL".

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