Error: java.lang.String cannot be cast to java.lang.Boolean
Hi,
When I try and query services from the Geocortex REST endpoint, I get the error below on some of them. However, I also have 4 services coming from the same server, and on one of them I do not get this error.
The WMS server returned the following error(s): : java.lang.RuntimeException: Parsing failed for PropertyIsEqualTo: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean Parsing failed for PropertyIsEqualTo: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean java.lang.String cannot be cast to java.lang.Boolean.
Is it an error with Geocortex, or is it an error with the server/service I am quering?
0
-
Could you explain how you query those services? 0 -
Hi Berend,
I can try. If you go to the following this link (https://arealinformation.miljoeportal.dk/geocortex/essentials/rest/sites/EksterneLag6/map/mapservices/128/layers/1/query?text=&objectIds=&where=1%3D1&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&maxAllowableOffset=&outFields=&f=html&outSR=&resultLimit=10&returnCountOnly=false&returnGeometry=true&returnIdsOnly=false) you can see the error happening. The same error happens on when accessing this link (https://arealinformation.miljoeportal.dk/geocortex/essentials/rest/sites/EksterneLag7/map/mapservices/127/layers/3/query?text=&objectIds=&where=1%3D1&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&maxAllowableOffset=&outFields=&f=html&outSR=&resultLimit=10&returnCountOnly=false&returnGeometry=true&returnIdsOnly=false) . However, when using this (https://arealinformation.miljoeportal.dk/geocortex/essentials/rest/sites/EksterneLag8/map/mapservices/126/layers/0/query?text=&objectIds=&where=1%3D1&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&maxAllowableOffset=&outFields=&f=html&outSR=&resultLimit=10&returnCountOnly=false&returnGeometry=true&returnIdsOnly=false) or this (https://arealinformation.miljoeportal.dk/geocortex/essentials/rest/sites/EksterneLag9/map/mapservices/3/layers/0/query?text=&objectIds=&where=1%3D1&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&maxAllowableOffset=&outFields=&f=html&outSR=&resultLimit=10&returnCountOnly=false&returnGeometry=true&returnIdsOnly=false) there is no error.
All of the services, I believe, are being published from the same server, but I am unsure if this is an error from their end, if there is an error in the way that we have set up the service in Geocortex, or if it is an error with Geocortex.0 -
Hi Astrid,
Those messages are coming from the underlying map server. Geocortex Essentials does not use java when accepting query requests for services, so it would not throw exception "java.lang.ClassCastException".
To provide query functionality for WMS services, requests for queries are routed through Essentials which then redirects those requests to a WFS or to the WMS. You may be able to troubleshoot further by using Fiddler as a proxy between Essentials and the underlying WMS/WFS service - however, if the service is SSL this may not work.
For instructions on how to configure Fiddler as a proxy, refer to this KB article: https://support.geocortex.com/essentialsGSCkba?id=kA360000000Cib0
Regards,
-Malcolm0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer