ElasticGeo provides a GeoTools data store that allows geospatial features from an Elasticsearch index to be published via OGC services using GeoServer.
GNU General Public License v3.0
168
stars
85
forks
source link
ClassCastException when walking a mapping with attribute called "type" #8
Geoserver crashes with a stack trace, saying HashMap can't be cast as a String.
The trick is that the mapping above has {"type": {"type": "string"}}, and the value of the first type key is not a string. This stems from ElasticDataStore's walk method.
When publishing a new layer for an index that contains the following type mapping:
Geoserver crashes with a stack trace, saying HashMap can't be cast as a String.
The trick is that the mapping above has
{"type": {"type": "string"}}
, and the value of the firsttype
key is not a string. This stems from ElasticDataStore's walk method.