[GeoNetwork-devel] Error on rebuilding lucene index.

I’ve patched my running instance with recompiled SearchManager and Log classes so that I can log the exception properly.

This is the resulting stack trace. I shall investigate further.

2011-06-24 10:48:54,209 ERROR [geonetwork.spatial] - error writing spatial index Current fid index is null, next must be called before write()

java.io.IOException: Current fid index is null, next must be called before write()

at org.geotools.data.shapefile.indexed.IndexedFidWriter.write(IndexedFidWriter.java:247)

at org.geotools.data.shapefile.indexed.IndexedShapefileFeatureWriter.write(IndexedShapefileFeatureWriter.java:100)

at org.geotools.data.shapefile.ShapefileFeatureWriter.close(ShapefileFeatureWriter.java:225)

at org.geotools.data.shapefile.indexed.IndexedShapefileFeatureWriter.close(IndexedShapefileFeatureWriter.java:108)

at org.geotools.data.TransactionStateDiff.applyDiff(TransactionStateDiff.java:271)

at org.geotools.data.TransactionStateDiff.commit(TransactionStateDiff.java:151)

at org.geotools.data.DefaultTransaction.commit(DefaultTransaction.java:182)

at org.fao.geonet.kernel.search.spatial.SpatialIndexWriter.commit(SpatialIndexWriter.java:201)

at org.fao.geonet.kernel.search.SearchManager$Spatial$Committer.run(SearchManager.java:1311)

at java.util.TimerThread.mainLoop(Timer.java:512)

at java.util.TimerThread.run(Timer.java:462)


From: Justin Rowles (C)
Sent: 24 June 2011 10:05
To: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] Error on rebuilding lucene index.

For info, I removed the entire lucene directory, restarted geonetwork, thus causing a complete rebuild of lucene, and got exactly the same error.

2011-06-24 09:59:07,982 ERROR [geonetwork.spatial] - error writing spatial index Current fid index is null, next must be called before write()

Unfortunately the stack trace is swallowed by the code at line 1315 of org.fao.geonet.kernel.search.SearchManager.java so I can’t easily investigate further.

I am using a vanilla 2.6.4 Geonetwork on Unix.

Justin.

This email is only intended for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email which must not be copied, distributed or disclosed to any other person.

Unless stated otherwise, the contents of this email are personal to the writer and do not represent the official view of Ordnance Survey. Nor can any contract be formed on Ordnance Survey's behalf via email. We reserve the right to monitor emails and attachments without prior notice.

Thank you for your cooperation.

Ordnance Survey
Adanac Drive
Southampton SO16 0AS
Tel: 08456 050505
http://www.ordnancesurvey.co.uk