GeoServer
  1. GeoServer
  2. GEOS-2523

Paragraph sign character from ISO-8859-1 PostGis DB problem

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.1
    • Fix Version/s: None
    • Component/s: PostGIS, WFS
    • Labels:
      None
    • Environment:
      GeoServer 1.7.1 on Windows 2000 Server 32bit
    • Number of attachments :
      0

      Description

      Having a paragraph or section sign '' in a iso-8859-1 PostGis table and querying the data per WFS results in the following error and chopped geoserver output from the problematic char on. I can only receive the result XML up to the char. Changing GeoServer charset from UTF-8 to ISO-8859-1 doesnt help.

      Request: getFeature
      handle = null
      service = WFS
      version = 1.1.0
      baseUrl = http://srv-arc2:8080/geoserver/
      providedVersion = 1.1.0
      query = [net.opengis.wfs.impl.QueryTypeImpl@86f716 (group: null, propertyName: null, function: null, filter: null, sortBy: null, featureVersion: null, handle: null, srsName: null, typeName: [

      {http://www.openplans.org/topp}

      Projekte])]
      maxFeatures = null
      outputFormat = text/xml; subtype=gml/3.1.1
      resultType = results
      traverseXlinkDepth = null
      traverseXlinkExpiry = null
      formatOptions = {}
      16 Dez 14:12:32 WARN [geotools.xml] - org.geotools.data.crs.ReprojectFeatureResults@1d47845 (org.geotools.data.crs.ReprojectFeatureResults) is not of type [Lorg.opengis.feature.simple.SimpleFeature;
      16 Dez 14:12:33 ERROR [geoserver.ows] -
      java.io.IOException
      at org.geotools.xml.Encoder.encode(Encoder.java:555)
      at org.geoserver.wfs.xml.GML3OutputFormat.write(GML3OutputFormat.java:123)
      at org.geoserver.wfs.WFSGetFeatureOutputFormat.write(WFSGetFeatureOutputFormat.java:137)
      at org.geoserver.ows.Dispatcher.response(Dispatcher.java:711)
      at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:215)
      at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
      at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
      at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
      at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
      at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
      at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:163)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:47)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:324)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
      Caused by: java.io.IOException: The character '' is an invalid XML character
      at org.apache.xml.serialize.BaseMarkupSerializer.characters(Unknown Source)
      at org.geotools.xml.Encoder.start(Encoder.java:1043)
      at org.geotools.xml.Encoder.encode(Encoder.java:868)
      at org.geotools.xml.Encoder.encode(Encoder.java:547)
      ... 53 more
      Caused by: java.io.IOException: The character '' is an invalid XML character
      at org.apache.xml.serialize.BaseMarkupSerializer.fatalError(Unknown Source)
      at org.apache.xml.serialize.BaseMarkupSerializer.surrogates(Unknown Source)
      at org.apache.xml.serialize.XMLSerializer.printText(Unknown Source)
      ... 57 more
      16 Dez 14:12:33 INFO [geoserver.ows] - Problem writing exception information back to calling client:

        Activity

        Hide
        Andrea Aime added a comment -

        Justin, this seems to be an issue with the GML3 encoder... I guess some replacement with xml entities is in order?

        Show
        Andrea Aime added a comment - Justin, this seems to be an issue with the GML3 encoder... I guess some replacement with xml entities is in order?
        Hide
        Justin Deoliveira added a comment -

        Andrea, can you try to reproduce this? I just tried on my mac and it worked just fine. Also Jonas, how are you running, standalone with jetty or in tomcat?

        Show
        Justin Deoliveira added a comment - Andrea, can you try to reproduce this? I just tried on my mac and it worked just fine. Also Jonas, how are you running, standalone with jetty or in tomcat?
        Hide
        Jonas Beck added a comment -

        Using Jetty on Win2k Server

        Show
        Jonas Beck added a comment - Using Jetty on Win2k Server

          People

          • Assignee:
            Justin Deoliveira
            Reporter:
            Jonas Beck
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: