Opened 12 years ago

Closed 12 years ago

#739 closed defect (fixed)

Importing sample data with postgis doesn't work correctly with new indexmetadatatask (from svn commit 8577)

Reported by: simonp Owned by: geonetwork-devel@…
Priority: major Milestone: v2.7.0
Component: General Version:
Keywords: Cc:

Description

Using trunk subversion revision 8586

Some sample data will load, others fail with NPE:

2012-01-18 16:10:52,453 ERROR [geonetwork.datamanager] - The metadata document index with id=3 is corrupt/invalid - ignoring it. Error: null
java.lang.NullPointerException
  at org.fao.geonet.kernel.DataManager.indexMetadata(DataManager.java:407)
  at org.fao.geonet.kernel.DataManager$IndexMetadataTask.run(DataManager.java:327)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:619)

Curiously everything works fine with h2

The NPE seems to occur because the metadata is not actually retrieved from the database (could be because the IndexMetadataTask has opened another Dbms channel and doesn't have access to the records it wants because they haven't been committed?).

Change History (1)

comment:1 by simonp, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.