Hi there,
Am I the only one unable to do remote searches of non-GN servers (i.e. servers running zserver)?
In GN 2.0.3, searching “United Nations Environment Programme / GRID - Sioux Falls” for “water” yields 8 results, but only summary metadata is requested and it’s not informative (refer to message I posted on July 6).
In GN 2.1 beta 2, the same search also gives 8 results, but no metadata is downloaded, so the search is even more useless than with 2.0.3.
Can someone verify this and does someone have a suggestion about fixing this? Any help would be appreciated.
Paul
P.S. Here is Tomcat log of GN 2.1 beta 2 remote search
2007-07-31 14:50:19,920 INFO [jeeves.request] - ==========================================================
2007-07-31 14:50:19,924 INFO [jeeves.request] - HTML Request (from ###.###.###.###) : /geonetwork/srv/en/main.search
2007-07-31 14:50:19,924 DEBUG [jeeves.request] - Method : POST
2007-07-31 14:50:19,924 DEBUG [jeeves.request] - Content type : application/x-www-form-urlencoded
2007-07-31 14:50:19,924 DEBUG [jeeves.request] - Accept : text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5
2007-07-31 14:50:19,924 INFO [jeeves.service] - Dispatching : main.search
2007-07-31 14:50:19,928 DEBUG [jeeves.service] - → parameters are :
on
geo
.8
off
water
10
152.61.128.66:2210/GRID
10
2007-07-31 14:50:19,929 INFO [jeeves.webapp.main.search] - Returning search data
2007-07-31 14:50:19,971 INFO [jeeves.webapp.main.search] - Creating searchers
31-Jul-2007 2:50:20 PM com.k_int.util.Repository.CollectionDirectory getDataSource
WARNING: new CollectionDirectorycom.k_int.util.Repository.XMLDataSource,file:////usr/local/geonetwork/web/xml//repositories.xml
31-Jul-2007 2:50:20 PM com.k_int.codec.util.OIDRegConfigurator load
INFO: Unable to find codec class : com.k_int.gen.ILL_APDU_Delivery_Info.APDU_Delivery_Info_codec
2007-07-31 14:50:20,616 INFO [jeeves.webapp.main.search] - Returning search data
2007-07-31 14:50:20,616 INFO [jeeves.webapp.main.search] - Getting summary
2007-07-31 14:50:20,618 INFO [jeeves.service] - → dispatching to output for : main.search
2007-07-31 14:50:20,618 INFO [jeeves.service] - → forwarding to : main.present
2007-07-31 14:50:20,618 INFO [jeeves.service] - Dispatching : main.present
2007-07-31 14:50:20,618 DEBUG [jeeves.service] - → parameters are :
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
2007-07-31 14:50:20,749 INFO [jeeves.service] - -> dispatching to output for : main.present
2007-07-31 14:50:20,803 INFO [jeeves.webapp.main.present] - Returning search data
2007-07-31 14:50:20,815 INFO [jeeves.service] - -> transforming with stylesheet : /usr/local/geonetwork/web/xsl/search-results.xsl
2007-07-31 14:50:21,412 INFO [jeeves.service] - -> end transformation for : main.present
2007-07-31 14:50:21,415 INFO [jeeves.service] - -> output ended for : main.present
2007-07-31 14:50:21,415 INFO [jeeves.service] - -> dispatch ended for : main.present
Processing java.io.IOException, shut down association - hostname=edclxs25.cr.usgs.gov hashcode of endpoint:20919435
got Incoming CLose APDU reasonCode=100 diag=Internal close notification
------------------------------------------------
Clicking on one of the 8 results, all of which have a hyphen instead of a title, gives further errors:
------------------------------------------------
2007-07-31 14:55:31,935 INFO [jeeves.request] - ==========================================================
2007-07-31 14:55:31,935 INFO [jeeves.request] - HTML Request (from ###.###.###.###) : /geonetwork/srv/en/remote.show
2007-07-31 14:55:31,935 DEBUG [jeeves.request] - Method : GET
2007-07-31 14:55:31,935 DEBUG [jeeves.request] - Content type : null
2007-07-31 14:55:31,935 DEBUG [jeeves.request] - Accept : text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
2007-07-31 14:55:31,936 INFO [jeeves.service] - Dispatching : remote.show
2007-07-31 14:55:31,936 DEBUG [jeeves.service] - -> parameters are :
simple
2007-07-31 14:55:31,937 ERROR [jeeves.service] - Exception when executing service
2007-07-31 14:55:31,938 ERROR [jeeves.service] - (C) Exc : BadParameterEx : id
2007-07-31 14:55:31,938 DEBUG [jeeves.service] - Raised exception while executing service
id
BadParameterEx
en
remote.show
2007-07-31 14:55:31,940 INFO [jeeves.service] - -> dispatching to error for : remote.show
2007-07-31 14:55:31,983 INFO [jeeves.service] - -> transforming with stylesheet : /usr/local/geonetwork/web/xsl/error.xsl
2007-07-31 14:55:32,027 INFO [jeeves.service] - -> end error transformation for : remote.show
2007-07-31 14:55:32,027 INFO [jeeves.service] - -> error ended for : remote.show
2007-07-31 15:04:17,681 INFO [jeeves.request] - ==========================================================
2007-07-31 15:04:17,683 INFO [jeeves.request] - HTML Request (from ###.###.###.###) : /geonetwork/srv/en/main.home
2007-07-31 15:04:17,683 DEBUG [jeeves.request] - Method : GET
2007-07-31 15:04:17,684 DEBUG [jeeves.request] - Content type : null
2007-07-31 15:04:17,684 DEBUG [jeeves.request] - Accept : text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
2007-07-31 15:04:17,684 INFO [jeeves.service] - Dispatching : main.home
2007-07-31 15:04:17,684 DEBUG [jeeves.service] - -> no input parameters
2007-07-31 15:04:17,684 INFO [jeeves.service] - -> dispatching to output for : main.home
2007-07-31 15:04:17,734 INFO [jeeves.webapp.main.home] - Returning search data
2007-07-31 15:04:17,820 INFO [jeeves.webapp.main.home] - Returning search data
2007-07-31 15:04:17,832 INFO [jeeves.service] - -> transforming with stylesheet : /usr/local/geonetwork/web/xsl/main-page.xsl
2007-07-31 15:04:18,321 INFO [jeeves.service] - -> end transformation for : main.home
2007-07-31 15:04:18,321 INFO [jeeves.service] - -> output ended for : main.home
2007-07-31 15:04:18,321 INFO [jeeves.service] - -> dispatch ended for : main.home
Hi guys.
We are using the Geonetwork 2.0.3 and we have found a problem when we try to search (using a remote server) any string that contains some specific Spanish characters. We have found and fixed the problem on the source code, but we would like to know if this change can cause new problems. Currently there is a method named newQuery() on the class org.fao.geonet.kernel.search.Z3950Searcher that create a string that is send to the Z3950 server.
The problem is that this method creates the z3950 query but it doesn't write always the searched TERM between quotes. For example, if the user try to search TERM (in the title field) using the Geonetwork user interface the newQuery() method returns:
@attrset geo @attr 1=1016 @attr 4=6 @attr 2=3 TERM
In the Spanish language we have our own letters. If instead of TERM we have other word that contains one of them, Geonetwork doesn't find any result unless the searched word is between quotes:
@attrset geo @attr 1=1016 @attr 4=6 @attr 2=3 SPANISH_CHARACTER
It doesn't works.
@attrset geo @attr 1=1016 @attr 4=6 @attr 2=3 "SPANISH_CHARACTER"
It works.
I suppose this problem will happen with the specific characters of any language. Why don't we set all the terms to search between quotes?
Best regards
--
Jorge Piera Llodrá
Especialista en Servicios OGC
Equipo de desarrollo gvSIG
IVER TI S.A.
C/ Salamanca, 50-52
46005-Valencia
Tlf.+34963163400
www.iver.es
www.gvsig.com