[Geoserver-users] namespace error with versioning on geoserver 1.6.0

Hi All

I was running into some trouble with the versioning component of geoserver 1.6.0. I am using a modified version of the preliminary demo at http://sigma.openplans.org/~tschaub/wfsv/feature-editor.html. I run into an error when I try to compare revisions of my data. The error that I get is as follows: “Parsing failed for typeName: java.lang.IllegalArgumentException: prefix localhost is not bound to a namespace”. I think I made all the necessary changes to the Editor.js script, which I believe provides all the functions needed for comparing revisions (see http://sigma.openplans.org/~tschaub/wfsv/script/Editor.js). In fact, I just noticed that the preliminary demo (see URL above) also gives the same error when one tries to compare revisions of data. It’s probably not a geoserver issue, but any suggestions will be most appreciated.

Thanks,

Chetan

Hi Chetan,

Any chance you can get us a copy of the request, perhaps with firebug? If not the GeoServer logs from the console or your servlet container would help as well.

-Justin

Chetan Tiwari wrote:

Hi All

I was running into some trouble with the versioning component of geoserver 1.6.0. I am using a modified version of the preliminary demo at http://sigma.openplans.org/~tschaub/wfsv/feature-editor.html. I run into an error when I try to compare revisions of my data. The error that I get is as follows: "Parsing failed for typeName: java.lang.IllegalArgumentException: prefix localhost is not bound to a namespace". I think I made all the necessary changes to the Editor.js script, which I believe provides all the functions needed for comparing revisions (see http://sigma.openplans.org/~tschaub/wfsv/script/Editor.js). In fact, I just noticed that the preliminary demo (see URL above) also gives the same error when one tries to compare revisions of data. It's probably not a geoserver issue, but any suggestions will be most appreciated.

Thanks,

Chetan

!DSPAM:4007,47b88a87279262092453641!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

!DSPAM:4007,47b88a87279262092453641!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,47b88a87279262092453641!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Hi Chetan,

Thanks for the extra info. It seems that openlayers is creating the request with the localhost namespace prefix. Is that the prefix attached to your feature type? If you include the wfs caps document that should tell us.

Chetan Tiwari wrote:

Hi Justin
Thanks for your mail. Here is the output from firebug:
Headers
------------
Response Headers
Content-Type text/xml; charset=UTF-8
Transfer-Encoding chunked
Connection keep-alive
Server Jetty(6.0.2)
Request Headers
Host localhost:8080
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12 <http://1.8.1.12/&gt;\) Gecko/20080201 Firefox/2.0.0.12
Accept text/javascript, text/html, application/xml, text/xml, */*
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
X-Requested-With XMLHttpRequest
OpenLayers true
Content-Type application/xml
Referer http://localhost:8080/geoserver/feature-editor3.html
Content-Length 228
Pragma no-cache
Cache-Control no-cache
Post
-------
<wfsv:GetDiff xmlns:wfsv="http://www.opengis.net/wfsv&quot; service="WFSV" version="1.0.0" outputFormat="HTML"
><wfsv:DifferenceQuery typeName="localhost:school_districts" fromFeatureVersion="17" toFeatureVersion
="18"/></wfsv:GetDiff>
Response
---------------
<?xml version="1.0" ?>
<ServiceExceptionReport
   version="1.2.0"
   xmlns="http://www.opengis.net/ogc&quot;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
   xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception
.xsd">
   <ServiceException>
      java.lang.RuntimeException: Parsing failed for typeName: java.lang.IllegalArgumentException: prefix
localhost is not bound to a namespace
Parsing failed for typeName: java.lang.IllegalArgumentException: prefix localhost is not bound to a
namespace
prefix localhost is not bound to a namespace
</ServiceException></ServiceExceptionReport>

I am also attaching copies of the following files:
1. editor.js
2. feature-editor.html
Thanks very much for your help,
Chetan

--
Chetan Tiwari
Dept. of Geography, The Univ. of Iowa
316 Jessup Hall, Iowa City, IA 52242
Ph. (319) 335-0165 Fax (319) 335-2725
!DSPAM:4007,47b92362102833327367457!
------------------------------------------------------------------------

Editing Options

        * View History <#>
        * Preferences <#>

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com