#1234: Thesaurus / Add keyword to newly created local thesaurus return exception
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: Future release
Component: General | Version: v2.9.0
Keywords: |
---------------------+------------------------------------------------------
{{{
2013-03-10 05:11:38,727 INFO [jeeves.request] -
2013-03-10 05:11:38,727 INFO [jeeves.request] - HTML Request (from
127.0.0.1) : /geonetwork/srv/eng/thesaurus.addelement
2013-03-10 05:11:38,727 DEBUG [jeeves.request] - Method : POST
2013-03-10 05:11:38,728 DEBUG [jeeves.request] - Content type : text/xml
2013-03-10 05:11:38,728 DEBUG [jeeves.request] - Accept : */*
2013-03-10 05:11:38,728 DEBUG [jeeves.request] - Session id is
19bx85jxw1qmun25gtjz20vng
2013-03-10 05:11:38,729 INFO [jeeves.service] - Dispatching :
thesaurus.addelement
2013-03-10 05:11:38,731 ERROR [jeeves.service] - Exception when executing
service
2013-03-10 05:11:38,731 ERROR [jeeves.service] - (C) Exc :
java.lang.IllegalArgumentException: namespace must not be null
2013-03-10 05:11:38,731 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>namespace must not be null</message>
<class>IllegalArgumentException</class>
<stack>
<at class="org.openrdf.model.impl.URIImpl" file="URIImpl.java"
line="167" method="<init>" />
<at class="org.openrdf.sesame.sailimpl.memory.RdfSource"
file="RdfSource.java" line="758" method="createURI" />
<at class="org.fao.geonet.kernel.Thesaurus" file="Thesaurus.java"
line="303" method="addElement" />
<at class="org.fao.geonet.services.thesaurus.AddElement"
file="AddElement.java" line="92" method="exec" />
}}}
When catalog is restarted, the namespace is set (with "#") and the error
is not triggered.
Proposal:
* set default namespace for local thesaurus
* or add namespace to local thesaurus creation parameters
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1234>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
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.