Hi,
i have some problem with GN harvesting.
I try add some GeoNetwork 2.1.0 alpha1 to my harvesting resource in Geonetwork 2.1.0 alpha 2. Addition GN resource work fine.
When i return back to harvesting page, GN return this error :
Unable to get the entry/ies
Message: The data "null" is not legal for a JDOM attribute: a null is not a legal XML value
and show nothing in table of harvesting resources. Can someone help?
Records from log file :
2007-01-05 16:03:21,792 INFO [jeeves.request] - HTML Request (from 127.0.0.1) : /geonetwork/srv/en/xml.harvesting.get
2007-01-05 16:03:21,792 DEBUG [jeeves.request] - Method : POST
2007-01-05 16:03:21,792 DEBUG [jeeves.request] - Content type : application/xml
2007-01-05 16:03:21,792 DEBUG [jeeves.request] - Accept : text/javascript, text/html, application/xml, text/xml, */*
2007-01-05 16:03:21,808 INFO [jeeves.service] - Dispatching : xml.harvesting.get
2007-01-05 16:03:21,808 DEBUG [jeeves.service] - -> no input parameters
2007-01-05 16:03:21,917 ERROR [jeeves.service] - Exception when executing service
2007-01-05 16:03:21,917 ERROR [jeeves.service] - (C) Exc : org.jdom.IllegalDataException: The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.
2007-01-05 16:03:21,917 DEBUG [jeeves.service] - Raised exception while executing service
<error id="error">
<message>The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.</message>
<class>IllegalDataException</class>
<stack>
<at class="org.jdom.Attribute" file="Attribute.java" line="486" method="setValue" />
<at class="org.jdom.Attribute" file="Attribute.java" line="229" method="<init>" />
<at class="org.jdom.Attribute" file="Attribute.java" line="252" method="<init>" />
<at class="org.jdom.Element" file="Element.java" line="1109" method="setAttribute" />
<at class="jeeves.exceptions.JeevesException" file="JeevesException.java" line="126" method="getStackTrace" />
<at class="jeeves.exceptions.JeevesException" file="JeevesException.java" line="83" method="toElement" />
<at class="org.fao.geonet.kernel.harvest.harvester.AbstractHarvester" file="AbstractHarvester.java" line="238" method="addInfo" />
<at class="org.fao.geonet.kernel.harvest.HarvestManager" file="HarvestManager.java" line="225" method="addInfo" />
<at class="org.fao.geonet.kernel.harvest.HarvestManager" file="HarvestManager.java" line="105" method="get" />
<at class="org.fao.geonet.services.harvesting.Get" file="Get.java" line="61" method="exec" />
</stack>
<request>
<language>en</language>
<service>xml.harvesting.get</service>
</request>
</error>
My configuration: Windows XP, Java 1.5, Jetty, FireFox browser.
--
Jméno : Roman Ožana (oza018)
ICQ : 99950132
E-mail : roman.ozana.fei@anonymised.com
WWW : www.nabito.net
Skupina : GM-462
Hi Roman,
I think I have found the problem but it is strange indeed: it seems that
java is not able to retrieve the stack trace. Did you recompile the code?
Anyway, the bug is now fixed.
As a general recommendation, it is not a good idea to mix alpha1 with
alpha2. The code in alpha1 was incomplete and I changed some minor
things in alpha2.
Another recommendation is to use firefox because there is a javascript
error with IE. Maybe someone can help here.
Another note is this: beside the above javascript problem, firefox and IE
are the only browsers that support client side XSL transformations.
These are used in the harvesting interface.
Cheers,
Andrea
Hi,
i have some problem with GN harvesting.
I try add some GeoNetwork 2.1.0 alpha1 to my harvesting resource in
Geonetwork 2.1.0 alpha 2. Addition GN resource work fine.
When i return back to harvesting page, GN return this error :
Unable to get the entry/ies
Message: The data "null" is not legal for a JDOM attribute: a null
is not a legal XML value
and show nothing in table of harvesting resources. Can someone help?
Records from log file :
2007-01-05 16:03:21,792 INFO [jeeves.request] - HTML Request (from
127.0.0.1) : /geonetwork/srv/en/xml.harvesting.get
2007-01-05 16:03:21,792 DEBUG [jeeves.request] - Method : POST
2007-01-05 16:03:21,792 DEBUG [jeeves.request] - Content type :
application/xml
2007-01-05 16:03:21,792 DEBUG [jeeves.request] - Accept :
text/javascript, text/html, application/xml, text/xml, */*
2007-01-05 16:03:21,808 INFO [jeeves.service] - Dispatching :
xml.harvesting.get
2007-01-05 16:03:21,808 DEBUG [jeeves.service] - -> no input parameters
2007-01-05 16:03:21,917 ERROR [jeeves.service] - Exception when
executing service
2007-01-05 16:03:21,917 ERROR [jeeves.service] - (C) Exc :
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM
attribute: A null is not a legal XML value.
2007-01-05 16:03:21,917 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>The data "null" is not legal for a JDOM attribute: A null is
not a legal XML value.</message>
<class>IllegalDataException</class>
<stack>
<at class="org.jdom.Attribute" file="Attribute.java" line="486"
method="setValue" />
<at class="org.jdom.Attribute" file="Attribute.java" line="229"
method="<init>" />
<at class="org.jdom.Attribute" file="Attribute.java" line="252"
method="<init>" />
<at class="org.jdom.Element" file="Element.java" line="1109"
method="setAttribute" />
<at class="jeeves.exceptions.JeevesException"
file="JeevesException.java" line="126" method="getStackTrace" />
<at class="jeeves.exceptions.JeevesException"
file="JeevesException.java" line="83" method="toElement" />
<at
class="org.fao.geonet.kernel.harvest.harvester.AbstractHarvester"
file="AbstractHarvester.java" line="238" method="addInfo" />
<at class="org.fao.geonet.kernel.harvest.HarvestManager"
file="HarvestManager.java" line="225" method="addInfo" />
<at class="org.fao.geonet.kernel.harvest.HarvestManager"
file="HarvestManager.java" line="105" method="get" />
<at class="org.fao.geonet.services.harvesting.Get" file="Get.java"
line="61" method="exec" />
</stack>
<request>
<language>en</language>
<service>xml.harvesting.get</service>
</request>
</error>
My configuration: Windows XP, Java 1.5, Jetty, FireFox browser.
Thanks Andrea , see above
Andrea Carboni napsal(a):
Hi Roman,
I think I have found the problem but it is strange indeed: it seems that
java is not able to retrieve the stack trace. Did you recompile the code?
Anyway, the bug is now fixed.
Ok, try recompile.
As a general recommendation, it is not a good idea to mix alpha1 with
alpha2. The code in alpha1 was incomplete and I changed some minor
things in alpha2.
Ok, it’s truth - not best idea mix GN a1 and GN a2 
Another recommendation is to use firefox because there is a javascript
error with IE. Maybe someone can help here.
I use FireFox
Another note is this: beside the above javascript problem, firefox and IE
are the only browsers that support client side XSL transformations.
These are used in the harvesting interface.
I know