[GeoNetwork-users] Local File System Harvesting NullPointerException

Hi to everyone on this list,

I have a problem with Local File System Harvesting. My environment is Win 7 x64 with GN 2.10.3 installed into C:\Program Files (x86)\geonetwork\
As far as I can overlook it everything seems to work fine. I can insert metadata with copy/paste, add the sample metadata, view it, edit it and so on. The only thing strange I noticed is that when I want to add new metadata by hand the frame that open where I'd have to choose a template (and select a group) there is no template to choose. But this could be normal, I don't know.

Anyway, I wanted to setup Local File System Harvesting which just needs a name ("local") and a directory ("/data/metadata"). I copied an xml file into that directory which I can import using the insert metadata with copy/paste wizard. However, I tested it and it does not matter what I put into both fields, the error message is the same whatever I put into the fields.
The error message from GN is:
"/Unable to add a new entry//
//Error : error//
//Message : //
//Class : NullPointerException/"
That does not say much, but the jetty log sadly isn't more informative:
"/INFO [jeeves.request] - HTML Request (from 0:0:0:0:0:0:0:1) : /geonetwork/srv/eng/xml.harvesting.add//
//INFO [jeeves.service] - Dispatching : xml.harvesting.add//
//ERROR [jeeves.service] - Exception when executing service//
//ERROR [jeeves.service] - (C) Exc : java.lang.NullPointerException/"

I searched the web and could only find one mailing list entry about this which was fixed by copying xsl/conversion into the data folder. This obviously did not fix my problem.

I look forward to any hints and thanks in advance.

Cheers,
Christian

Hi again,

totally unrelated to my issue I stumbled across a modified version of GN (ftp://ftp.ifremer.fr/ifremer/sismer/donnees/SeaDataNet_Software/CSW/) and deployed that war using Tomcat. Using that version the Local File System Harvesting worked just fine.
So I thought my problem might be solved if I deploy the war instead of installing from the *.exe. So I deployed GN 2.10.3 as a war in tomcat and the Local File System Harvesting still does not work. Then I noticed that the modified GN version uses the 2.11.0 Snapshot version. I wanted to try that but wasn't able to find a war of that. So I deployed GN 2.10.0 as a war in tomcat. Local File System Harvesting still does not work but the error message is at least a little bit more informative:
<error id="error">
   <message />
   <class>NullPointerException</class>
   <stack>
     <at class="java.io.File" file="???" line="-1" method="&lt;init&gt;" />
     <at class="org.fao.geonet.resources.Resources" file="Resources.java" line="303" method="locateResource" />
     <at class="org.fao.geonet.resources.Resources" file="Resources.java" line="379" method="copyLogo" />
     <at class="org.fao.geonet.kernel.harvest.harvester.localfilesystem.LocalFilesystemHarvester" file="LocalFilesystemHarvester.java" line="87" method="doAdd" />
     <at class="org.fao.geonet.kernel.harvest.harvester.AbstractHarvester" file="AbstractHarvester.java" line="167" method="add" />
     <at class="org.fao.geonet.kernel.harvest.HarvestManager" file="HarvestManager.java" line="233" method="add" />
     <at class="org.fao.geonet.services.harvesting.Add" file="Add.java" line="62" method="exec" />
     <at class="jeeves.server.dispatchers.ServiceInfo" file="ServiceInfo.java" line="230" method="execService" />
     <at class="jeeves.server.dispatchers.ServiceInfo" file="ServiceInfo.java" line="139" method="execServices" />
     <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="430" method="dispatch" />
     <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="362" method="dispatch" />
     <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java" line="806" method="dispatch" />
     <at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="216" method="execute" />
     <at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="125" method="doPost" />
     <skip>...</skip>
     <at class="org.fao.geonet.monitor.webapp.WebappMetricsFilter" file="WebappMetricsFilter.java" line="96" method="doFilter" />
     <skip>...</skip>
     <at class="org.fao.geonet.monitor.webapp.MetricsRegistryInitializerFilter" file="MetricsRegistryInitializerFilter.java" line="31" method="doFilter" />
     <skip>...</skip>
     <at class="jeeves.config.springutil.GeonetworkFilterSecurityInterceptor" file="GeonetworkFilterSecurityInterceptor.java" line="46" method="invoke" />
     <skip>...</skip>
     <at class="jeeves.config.springutil.GeonetworkFilterSecurityInterceptor" file="GeonetworkFilterSecurityInterceptor.java" line="46" method="invoke" />
     <skip>...</skip>
     <at class="org.fao.geonet.kernel.security.PassthroughFilter" file="PassthroughFilter.java" line="26" method="doFilter" />
     <skip>...</skip>
   </stack>
   <request>
     <language>eng</language>
     <service>xml.harvesting.add</service>
   </request>
</error>
However, even with this I just cannot figure out what could possibly be wrong.

I'd still be glad for any advice :slight_smile:

Cheers,
Christian

Am 24.06.2014 13:58, schrieb Christian Rüh:

Hi to everyone on this list,

I have a problem with Local File System Harvesting. My environment is
Win 7 x64 with GN 2.10.3 installed into C:\Program Files (x86)\geonetwork\
As far as I can overlook it everything seems to work fine. I can insert
metadata with copy/paste, add the sample metadata, view it, edit it and
so on. The only thing strange I noticed is that when I want to add new
metadata by hand the frame that open where I'd have to choose a template
(and select a group) there is no template to choose. But this could be
normal, I don't know.

Anyway, I wanted to setup Local File System Harvesting which just needs
a name ("local") and a directory ("/data/metadata"). I copied an xml
file into that directory which I can import using the insert metadata
with copy/paste wizard. However, I tested it and it does not matter what
I put into both fields, the error message is the same whatever I put
into the fields.
The error message from GN is:
"/Unable to add a new entry//
//Error : error//
//Message : //
//Class : NullPointerException/"
That does not say much, but the jetty log sadly isn't more informative:
"/INFO [jeeves.request] - HTML Request (from 0:0:0:0:0:0:0:1) :
/geonetwork/srv/eng/xml.harvesting.add//
//INFO [jeeves.service] - Dispatching : xml.harvesting.add//
//ERROR [jeeves.service] - Exception when executing service//
//ERROR [jeeves.service] - (C) Exc : java.lang.NullPointerException/"

I searched the web and could only find one mailing list entry about this
which was fixed by copying xsl/conversion into the data folder. This
obviously did not fix my problem.

I look forward to any hints and thanks in advance.

Cheers,
Christian
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained athttp://sourceforge.net/projects/geonetwork