# Mapped\_geo\_shape test error but I don't use any geo code v7.16.3

**URL:** <https://discuss.elastic.co/t/mapped-geo-shape-test-error-but-i-dont-use-any-geo-code-v7-16-3/300634>\
**Category:** Elasticsearch\
**Created:** [March 24, 2022, 8:05pm UTC](https://discuss.elastic.co/t/mapped-geo-shape-test-error-but-i-dont-use-any-geo-code-v7-16-3/300634 "2022-03-24T20:05:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian8371](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@brian8371](https://discuss.elastic.co/u/brian8371)\
**Post date:** [March 24, 2022, 8:05pm UTC](https://discuss.elastic.co/t/mapped-geo-shape-test-error-but-i-dont-use-any-geo-code-v7-16-3/300634/1 "2022-03-24T20:05:58Z")

</div>

I have a class that extends [AbstractQueryTestCase](https://javadoc.io/static/org.elasticsearch.test/framework/7.16.3/org/elasticsearch/test/AbstractQueryTestCase.html) and all of its tests are failing, included ones that I didn't override, with the same stacktrace error:

```auto
Failed to parse mapping [_doc]: No handler for type [geo_shape] declared on field [mapped_geo_shape]
MapperParsingException[Failed to parse mapping [_doc]: No handler for type [geo_shape] declared on field [mapped_geo_shape]]; nested: MapperParsingException[No handler for type [geo_shape] declared on field [mapped_geo_shape]];
at app//org.elasticsearch.index.mapper.MapperService.parseMappings(MapperService.java:505)
at app//org.elasticsearch.index.mapper.MapperService.mergeAndApplyMappings(MapperService.java:419)
at app//org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:415)
at app//org.elasticsearch.test.AbstractBuilderTestCase$ServiceHolder.<init>(AbstractBuilderTestCase.java:426)
at app//org.elasticsearch.test.AbstractBuilderTestCase.lambda$beforeTest$0(AbstractBuilderTestCase.java:242)

```

Searching this forum for `mapped_geo_shape` reveals other users have solved this error by including a couple dependencies but I have tried that a few different ways without luck. See my attempst commented out in [my build.gradle file](https://paste.ofcode.org/5bxuf47T4aa9dWQUv8HinS)

Any advice on how to properly include `jts-core` and `spatial4j` dependencies or is something else wrong?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 21, 2022, 8:06pm UTC](https://discuss.elastic.co/t/mapped-geo-shape-test-error-but-i-dont-use-any-geo-code-v7-16-3/300634/2 "2022-04-21T20:06:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
