Hexagon Geospatial
MENU

Support WebGIS

Need a push in the right direction when configuring WebMap, Portal or SDI services? Looking for hints and tips, or just looking for Ideas and information? The WebGIS discussion board is where you start those discussions, connect and share information.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Frequent Contributor
Posts: 80
Registered: ‎08-10-2016
Accepted Solution

Error when loading a GeoServer WFS into the Geospatial portal

Hi All,

 

I am able to register a WFS from GeoServer into the Geospatial portal but the layers do not display. I get an exception error as shown in notification log below. The same applies for a WFS from other GIS servers like ArcGIS Server. WFS from GeoMedia WebMap works just fine. What could be the issue and how can i drill down to the root of the problem?

 

wfs_error

 

 

Kind Regards,

 

Elvis

Technical Evangelist
Posts: 624
Registered: ‎09-11-2015

Re: Error when loading a GeoServer WFS into the Geospatial portal

Hi Elvis,

 

Can you check for errors in Portal's log file? It's located on <portal_instance\App_Data\Log, but you must enable it firstly in the web.config - change logging level to DEBUG in log4net section.

 

Sometimes, it helps to add serviceQuirk and/or use WFS 1.1.0 for geoserver WFS. Please try to add similar quirk into web.config:

<serviceQuirk serviceType="WFS" urlPattern="geoserver" omitCrsCheck="true" forceHttpGet="true"></serviceQuirk>

    -> change urlPattern to fit your service, but geoserver should work ok.

 

---

Additionally, can you try inspecting this WFS in GeoMedia. GeoMedia is pretty strict on WFS services and will complain whenever something is missing in the GML schema declaration and will tell you what kind of problem is on the service.

 

Regards,

Jan

 

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Frequent Contributor
Posts: 80
Registered: ‎08-10-2016

Re: Error when loading a GeoServer WFS into the Geospatial portal

Hi Jan,

 

I have done a quick test in GeoMedia and it works just fine. I'll add the <serviceQuirk> for geoserver wfs some time later and let you know if it works.

 

Thanks for you suggestions.

 

 

Regards,

Elvis

Frequent Contributor
Posts: 80
Registered: ‎08-10-2016

Re: Error when loading a GeoServer WFS into the Geospatial portal

Hi Jan,

 

I added the serviceQuirk for geoserver but still no success. However, when using filter by id the feature displays on the map as show in the following picture. I get a service returned an exception error when i filter by any of the remaining attributes.

 

wfsfilter1.png

 

Also i am able to get all the features and their attribute info in the data window but i get an exception when i try a GetFeatureInfo request.

 

gmlparseerror.png

 

Below is a section of the logs with the error. Looks like a problem with the getFeature request but i am not sure of what to do about it.

 

2017-02-17 18:31:40,791 [163] DEBUG Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService [(null)] - End setting spatial filter
2017-02-17 18:31:40,931 [163] DEBUG Intergraph.GeoMedia.Web.SDI.Common.Tools.WebResourceReaderFactory [(null)] - Fetching web resource: uri=[http://webmapsvr:8282/geoserver/Demo/wfs?count=4000&filter=<fes:Filter+xmlns:fes="http://www.opengis.net/fes/2.0"><fes:BBOX><fes:ValueReference>geom</fes:ValueReference><Envelope+srsName="EPSG:3857"+xmlns="http://www.opengis.net/gml"><lowerCorner>1154561.24664366+-1245835.47923045</lowerCorner><upperCorner>7127656.38496047+1024038.51272615</upperCorner></Envelope></fes:BBOX></fes:Filter>&namespace=xmlns(http://192.168.1.231:8282/geoserver/demo)&request=GetFeature&service=WFS&srsName=EPSG:3857&typeNames=ph_homes&version=2.0.0], timeout=[100000], method=[], request body=[]
2017-02-17 18:31:41,097 [163] DEBUG Intergraph.GeoMedia.Web.SDI.Common.Tools.WebResourceReaderFactory [(null)] - response: [StatusCode: OK, IsFromCache: False, ContentEncoding: ] 
2017-02-17 18:31:41,097 [163] DEBUG Intergraph.GeoMedia.Web.SDI.Common.Tools.WebResourceReaderFactory [(null)] - Time spent while requesting: 165[ms]
2017-02-17 18:31:41,121 [163] ERROR Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService [(null)] - Processing exception.
Intergraph.WebSolutions.Core.SDIPortal.MapManager.GMLParser.GmlParserException: Code: XML getFeature request SAX parsing error, Locator: org.vfny.geoserver.util.requests.readers.XmlRequestReader, Message: org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: fes:ValueReference.  HINT: tags are case-sensitive!
Attempted to construct illegal filter - I dont understand the tag: fes:ValueReference.  HINT: tags are case-sensitive!
   at Intergraph.WebSolutions.Core.SDIPortal.MapManager.GMLParser.GmlContentsBuilder.Build(XmlReader reader)
   at Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService.PerformQuery(LegendItemDefinition legendItemDefinition, OperatorBase operatorBase, Boolean useDefaultCrs, IEnumerable`1 featureIds, IEnumerable`1 propertyNames, Nullable`1 maxFeatures, Boolean useOldVersion)
   at Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService.PerformQuery(LegendItemDefinition legendItemDefinition, OperatorBase operatorBase, Boolean useDefaultCrs, IEnumerable`1 featureIds, IEnumerable`1 propertyNames, Nullable`1 maxFeatures)
   at Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService.PerformQuery(LegendItemDefinition legendItemDefinition, OperatorBase operatorBase)
   at Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService.GetFeatureDataset(IEnumerable`1 legendItemDefinitions, List`1 bboxPoints)
2017-02-17 18:31:41,123 [163] DEBUG Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService [(null)] - End loading feature dataset for: {http://192.168.1.231:8282/geoserver/demo}ph_homes
2017-02-17 18:31:41,123 [163] ERROR Intergraph.WebSolutions.Core.WebClient.Platform.MapServices.MapServiceManagerHandler [(null)] - Processing ended with exception.
Intergraph.WebSolutions.Core.SDIPortal.MapManager.GMLParser.GmlParserException: Code: XML getFeature request SAX parsing error, Locator: org.vfny.geoserver.util.requests.readers.XmlRequestReader, Message: org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: fes:ValueReference.  HINT: tags are case-sensitive!
Attempted to construct illegal filter - I dont understand the tag: fes:ValueReference.  HINT: tags are case-sensitive!
   at Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService.GetFeatureDataset(IEnumerable`1 legendItemDefinitions, List`1 bboxPoints)
   at Intergraph.WebSolutions.Core.WebClient.Platform.MapServices.MapServiceManagerHandler.GetFeatureDataset(String id, HttpContext context)
   at Intergraph.WebSolutions.Core.WebClient.Platform.MapServices.MapServiceManagerHandler.ProcessRequest(HttpContext context)
2017-02-17 18:36:08,433 [28] DEBUG Application.Global [(null)] - language code: http://webmapsvr/:smileysad:/MapServiceManager.WebClient.ashx?action=getFeatureDataset&id=f52e2769-480c-4794-9098-196043f69ee1&legendItemDefinitionKeys=[{"id":"{http://192.168.1.231:8282/geoserver/demo}ph_homes"}] "en-US"
2017-02-17 18:36:08,484 [159] DEBUG Intergraph.WebSolutions.Core.WebClient.Platform.MapServices.MapServiceManagerHandler [(null)] - Processing action: id: f52e2769-480c-4794-9098-196043f69ee1, action: getFeatureDataset
2017-02-17 18:36:08,485 [159] DEBUG Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService [(null)] - Start loading feature dataset for: {http://192.168.1.231:8282/geoserver/demo}ph_homes
2017-02-17 18:36:08,485 [159] DEBUG Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService [(null)] - Start setting spatial filter
2017-02-17 18:36:08,485 [159] DEBUG Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService [(null)] - End setting spatial filter
2017-02-17 18:36:08,486 [159] DEBUG Intergraph.GeoMedia.Web.SDI.Common.Tools.WebResourceReaderFactory [(null)] - Fetching web resource: uri=[http://webmapsvr:8282/geoserver/Demo/wfs?count=4000&filter=<fes:Filter+xmlns:fes="http://www.opengis.net/fes/2.0"><fes:BBOX><fes:ValueReference>geom</fes:ValueReference><Envelope+srsName="EPSG:3857"+xmlns="http://www.opengis.net/gml"><lowerCorner>2666179.9180113+-585419.554846523</lowerCorner><upperCorner>5652727.48716971+549517.441131774</upperCorner></Envelope></fes:BBOX></fes:Filter>&namespace=xmlns(http://192.168.1.231:8282/geoserver/demo)&request=GetFeature&service=WFS&srsName=EPSG:3857&typeNames=ph_homes&version=2.0.0], timeout=[100000], method=[], request body=[]
2017-02-17 18:36:08,636 [159] DEBUG Intergraph.GeoMedia.Web.SDI.Common.Tools.WebResourceReaderFactory [(null)] - response: [StatusCode: OK, IsFromCache: False, ContentEncoding: ] 
2017-02-17 18:36:08,636 [159] DEBUG Intergraph.GeoMedia.Web.SDI.Common.Tools.WebResourceReaderFactory [(null)] - Time spent while requesting: 150[ms]
2017-02-17 18:36:08,637 [159] ERROR Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService [(null)] - Processing exception.
Intergraph.WebSolutions.Core.SDIPortal.MapManager.GMLParser.GmlParserException: Code: XML getFeature request SAX parsing error, Locator: org.vfny.geoserver.util.requests.readers.XmlRequestReader, Message: org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: fes:ValueReference.  HINT: tags are case-sensitive!
Attempted to construct illegal filter - I dont understand the tag: fes:ValueReference.  HINT: tags are case-sensitive!
   at Intergraph.WebSolutions.Core.SDIPortal.MapManager.GMLParser.GmlContentsBuilder.Build(XmlReader reader)
   at Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService.PerformQuery(LegendItemDefinition legendItemDefinition, OperatorBase operatorBase, Boolean useDefaultCrs, IEnumerable`1 featureIds, IEnumerable`1 propertyNames, Nullable`1 maxFeatures, Boolean useOldVersion)
   at Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService.PerformQuery(LegendItemDefinition legendItemDefinition, OperatorBase operatorBase, Boolean useDefaultCrs, IEnumerable`1 featureIds, IEnumerable`1 propertyNames, Nullable`1 maxFeatures)
   at Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService.PerformQuery(LegendItemDefinition legendItemDefinition, OperatorBase operatorBase)
   at Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService.GetFeatureDataset(IEnumerable`1 legendItemDefinitions, List`1 bboxPoints)
2017-02-17 18:36:08,637 [159] DEBUG Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService [(null)] - End loading feature dataset for: {http://192.168.1.231:8282/geoserver/demo}ph_homes
2017-02-17 18:36:08,637 [159] ERROR Intergraph.WebSolutions.Core.WebClient.Platform.MapServices.MapServiceManagerHandler [(null)] - Processing ended with exception.
Intergraph.WebSolutions.Core.SDIPortal.MapManager.GMLParser.GmlParserException: Code: XML getFeature request SAX parsing error, Locator: org.vfny.geoserver.util.requests.readers.XmlRequestReader, Message: org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: fes:ValueReference.  HINT: tags are case-sensitive!
Attempted to construct illegal filter - I dont understand the tag: fes:ValueReference.  HINT: tags are case-sensitive!
   at Intergraph.WebSolutions.Core.SDIPortal.WFS.Service.WFSMapService.GetFeatureDataset(IEnumerable`1 legendItemDefinitions, List`1 bboxPoints)
   at Intergraph.WebSolutions.Core.WebClient.Platform.MapServices.MapServiceManagerHandler.GetFeatureDataset(String id, HttpContext context)
   at Intergraph.WebSolutions.Core.WebClient.Platform.MapServices.MapServiceManagerHandler.ProcessRequest(HttpContext context)

 

Technical Evangelist
Posts: 624
Registered: ‎09-11-2015

Re: Error when loading a GeoServer WFS into the Geospatial portal

Hi Elvis,

 

I've seen this problem on other Geoservers. It helped to use WFS 1.1.0 instead of 2.0.0. It might be a bug in the Geoserver.

 

Regards,

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Frequent Contributor
Posts: 80
Registered: ‎08-10-2016

Re: Error when loading a GeoServer WFS into the Geospatial portal

Hi Jan,

 

Thanks a lot, WFS version 1.1.0 worked.

 

 

Regards,

 

Elvis.

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.