[Geoserver-devel] [jira] Created: (GEOS-603) exception with wfs insert (SetCharacterEncodingFilter)

exception with wfs insert (SetCharacterEncodingFilter)
-------------------------------------------------------

         Key: GEOS-603
         URL: http://jira.codehaus.org/browse/GEOS-603
     Project: GeoServer
        Type: Bug

    Reporter: dblasby
Assigned to: dblasby
     Fix For: 1.3.x

From the mailing list. Adding as bug so it gets tracked.

Hi,

could someone please help or explain me an error regarding
SetCharacterEncodingFilter? I would like to insert a feature using
wfs-t. Hence this doesn't even work with udig (showing the map is ok) I
did send the request with php. The response is:

javax.servlet.ServletException: Servlet execution threw an exception
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)

java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser
org.vfny.geoserver.util.requests.readers.DispatcherXmlReader.read(DispatcherXmlReader.java:75)
org.vfny.geoserver.wfs.servlets.WfsDispatcher.doPost(WfsDispatcher.java:167)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)

I did send the request with declarations <?xml version="1.0" ?>
encoding="iso-8859-1" or encoding="UTF-8". Every time exception occurs.
I also played with the WEB-INF\services.xml, charSet value but didn't
succeed. Actually, I don't know what to look for. The request is like this:

<?xml version="1.0" ?>
<wfs:Transaction version="1.0.0" service="WFS"
LAYERS="preagro:Bodenbeprobungspunkte"
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
<wfs:Insert>
<gml:Point gid="e33" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates>-98.5485,24.2633</gml:coordinates>
</gml:Point>
</wfs:Insert>
</wfs:Transaction>

Thanks for your help!
Martin

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

     [ http://jira.codehaus.org/browse/GEOS-603?page=all ]
     
Chris Holmes reopened GEOS-603:
-------------------------------

just putting fix version right

exception with wfs insert (SetCharacterEncodingFilter)
-------------------------------------------------------

         Key: GEOS-603
         URL: http://jira.codehaus.org/browse/GEOS-603
     Project: GeoServer
        Type: Bug

    Reporter: dblasby
    Assignee: Chris Holmes
     Fix For: 1.3.x

From the mailing list. Adding as bug so it gets tracked.
Hi,
could someone please help or explain me an error regarding
SetCharacterEncodingFilter? I would like to insert a feature using
wfs-t. Hence this doesn't even work with udig (showing the map is ok) I
did send the request with php. The response is:
javax.servlet.ServletException: Servlet execution threw an exception
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser
org.vfny.geoserver.util.requests.readers.DispatcherXmlReader.read(DispatcherXmlReader.java:75)
org.vfny.geoserver.wfs.servlets.WfsDispatcher.doPost(WfsDispatcher.java:167)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
I did send the request with declarations <?xml version="1.0" ?>
encoding="iso-8859-1" or encoding="UTF-8". Every time exception occurs.
I also played with the WEB-INF\services.xml, charSet value but didn't
succeed. Actually, I don't know what to look for. The request is like this:
<?xml version="1.0" ?>
<wfs:Transaction version="1.0.0" service="WFS"
LAYERS="preagro:Bodenbeprobungspunkte"
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
<wfs:Insert>
<gml:Point gid="e33" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates>-98.5485,24.2633</gml:coordinates>
</gml:Point>
</wfs:Insert>
</wfs:Transaction>
Thanks for your help!
Martin

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira