1

I'm getting an error when displaying Ordnance Survey MasterMap data through Geoserver as a WMS in QGIS.

The error is:

<?xml version="1.0" encoding="UTF-8"?><ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://localhost:8080/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd">   
<ServiceException>
  java.lang.RuntimeException: org.xml.sax.SAXException: Entity resolution disallowed for SYSTEM org.xml.sax.SAXException: Entity resolution disallowed for SYSTEM Entity resolution disallowed for SYSTEM
 </ServiceException></ServiceExceptionReport>

Exception report:

    <xsd:schema targetNamespace="http://www.opengis.net/ogc" elementFormDefault="qualified" version="1.3.0 2010-02-03"><!--

      WMS is an OGC Standard.
      Copyright (c) 2004,2010 Open Geospatial Consortium, Inc. All Rights Reserved.
      To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .

<xsd:element name="ServiceExceptionReport"><xsd:complexType> 
<xsd:sequence><xsd:element name="ServiceException" type="ogc:ServiceExceptionType" minOccurs="0" maxOccurs="unbounded"/> 
 </xsd:sequence><xsd:attribute name="version" type="xsd:string" fixed="1.3.0"/></xsd:complexType></xsd:element><xsd:complexType name="ServiceExceptionType"><xsd:simpleContent><xsd:extension base="xsd:string"><xsd:attribute name="code" type="xsd:string"/> 

I'm very new at Geoserver and not sure about the error at all. When researching the error a lot of people get SAXParseException but can't find something similar to what I get.

I think it's something to do with the colour hex in the SLD file I'm using, sample below:

 <FeatureTypeStyle>
    <Rule>
      <Name>Unclassified - 1:0 to 1:4,000</Name>
      <ogc:Filter>
        <ogc:PropertyIsEqualTo>
          <ogc:PropertyName>style_code</ogc:PropertyName>
          <ogc:Literal>99</ogc:Literal>
        </ogc:PropertyIsEqualTo>
      </ogc:Filter>
      <MinScaleDenominator>0</MinScaleDenominator>
      <MaxScaleDenominator>4000</MaxScaleDenominator>
      <PolygonSymbolizer>
        <Fill>
          <CssParameter name="fill">#F7F5F0</CssParameter>
        </Fill>
      </PolygonSymbolizer>
    </Rule>
  </FeatureTypeStyle>    
  • the error seems to suggest the string SYSTEM is the problem, can you see if that occurs in your SLD file? – Ian Turton Nov 21 '18 at 11:02
  • Just had a look and the word System doesn't appear in the SLD at all. – Dave C Nov 21 '18 at 11:07
  • I should also say I have an SLD for a different layer from the same provider that works fine. – Dave C Nov 21 '18 at 11:09
  • Looks like your SLD uses some entity expansion somewhere, can you please share the entire SLD instead of just a snippet? – Andrea Aime Nov 21 '18 at 11:28
  • I can't share it all in the text above but you can find it here: github.com/OrdnanceSurvey/OSMM-Topography-Layer-stylesheets/… – Dave C Nov 21 '18 at 11:31
0

I found the answer for anyone else using these SLD files.

There were too many arguments in the xml. Only one is required at the top and bottom of the complete SLD file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.