GeoServer
  1. GeoServer
  2. GEOS-603

exception with wfs insert (SetCharacterEncodingFilter)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      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"
      xmlns:ogc="http://www.opengis.net/ogc"
      xmlns:wfs="http://www.opengis.net/wfs"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <wfs:Insert>
      <gml:Point gid="e33" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
      <gml:coordinates>-98.5485,24.2633</gml:coordinates>
      </gml:Point>
      </wfs:Insert>
      </wfs:Transaction>

      Thanks for your help!
      Martin

        Issue Links

          Activity

          Hide
          Chris Holmes added a comment -

          This is the same problem as GEOS-546, the user added xerces and all worked just fine. So this speaks again to the fact that we should include the xerces jar with the .war download, since we're using it directly in multiple places.

          Show
          Chris Holmes added a comment - This is the same problem as GEOS-546 , the user added xerces and all worked just fine. So this speaks again to the fact that we should include the xerces jar with the .war download, since we're using it directly in multiple places.
          Hide
          Chris Holmes added a comment -

          just putting fix version right

          Show
          Chris Holmes added a comment - just putting fix version right

            People

            • Assignee:
              Chris Holmes
              Reporter:
              dblasby
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: