[GeoNetwork-devel] [GeoNetwork opensource Developer website] #739: Importing sample data with postgis doesn't work correctly with new indexmetadatatask (from svn commit 8577)

#739: Importing sample data with postgis doesn't work correctly with new
indexmetadatatask (from svn commit 8577)
---------------------+------------------------------------------------------
Reporter: simonp | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.7.0
Component: General | Version:
Keywords: |
---------------------+------------------------------------------------------
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?).

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/739&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#739: Importing sample data with postgis doesn't work correctly with new
indexmetadatatask (from svn commit 8577)
----------------------+-----------------------------------------------------
  Reporter: simonp | Owner: geonetwork-devel@…
      Type: defect | Status: closed
  Priority: major | Milestone: v2.7.0
Component: General | Version:
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by simonp):

  * status: new => closed
  * resolution: => fixed

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/739#comment:1&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.