# JsonProviderImpl not found but only for UpdateByQuery responses

**URL:** <https://discuss.elastic.co/t/jsonproviderimpl-not-found-but-only-for-updatebyquery-responses/337051>\
**Category:** Elasticsearch\
**Tags:** docker, language-clients\
**Created:** [June 28, 2023, 8:21am UTC](https://discuss.elastic.co/t/jsonproviderimpl-not-found-but-only-for-updatebyquery-responses/337051 "2023-06-28T08:21:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndtreviv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndtreviv/32/22494_2.png) [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Post date:** [June 28, 2023, 8:21am UTC](https://discuss.elastic.co/t/jsonproviderimpl-not-found-but-only-for-updatebyquery-responses/337051/1 "2023-06-28T08:21:14Z")

</div>

I'm getting the following error only when deserialising UpdateByQuery responses:

```auto
2023-06-27 18:00:18:193 +0000 [http-nio-8080-exec-4] ERROR Error: Provider org.glassfish.json.JsonProviderImpl not found
jakarta.json.JsonException: Provider org.glassfish.json.JsonProviderImpl not found
    at jakarta.json.spi.JsonProvider.provider(JsonProvider.java:75)
    at co.elastic.clients.json.jackson.JsonValueParser.<init>(JsonValueParser.java:39)
    at co.elastic.clients.json.jackson.JacksonJsonpParser.getValue(JacksonJsonpParser.java:233)
    at co.elastic.clients.json.JsonpDeserializerBase$8.deserialize(JsonpDeserializerBase.java:255)
    at co.elastic.clients.json.JsonpDeserializerBase$8.deserialize(JsonpDeserializerBase.java:249)
    at co.elastic.clients.json.JsonpDeserializer.deserialize(JsonpDeserializer.java:75)
    at co.elastic.clients.json.ObjectDeserializer$FieldObjectDeserializer.deserialize(ObjectDeserializer.java:72)
    at co.elastic.clients.json.ObjectDeserializer.deserialize(ObjectDeserializer.java:176)
    at co.elastic.clients.json.ObjectDeserializer.deserialize(ObjectDeserializer.java:137)
    at co.elastic.clients.json.JsonpDeserializer.deserialize(JsonpDeserializer.java:75)
    at co.elastic.clients.json.ObjectBuilderDeserializer.deserialize(ObjectBuilderDeserializer.java:79)
    at co.elastic.clients.json.DelegatingDeserializer$SameType.deserialize(DelegatingDeserializer.java:43)
    at co.elastic.clients.transport.rest_client.RestClientTransport.decodeResponse(RestClientTransport.java:325)
    at co.elastic.clients.transport.rest_client.RestClientTransport.getHighLevelResponse(RestClientTransport.java:291)
    at co.elastic.clients.transport.rest_client.RestClientTransport.performRequest(RestClientTransport.java:144)
    at co.elastic.clients.elasticsearch.ElasticsearchClient.updateByQuery(ElasticsearchClient.java:1722)
    at co.elastic.clients.elasticsearch.ElasticsearchClient.updateByQuery(ElasticsearchClient.java:1740)

```

Everything else works and has been working for ages.

I'm using this version of the client: `co.elastic.clients:elasticsearch-java:7.16.2` running against elasticsearch in docker with container version: `docker.elastic.co/elasticsearch/elasticsearch:7.16.2`

What could be the problem here?

---

<div class="post-metadata">

**Author:** ![ndtreviv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndtreviv/32/22494_2.png) [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Post date:** [June 29, 2023, 6:00pm UTC](https://discuss.elastic.co/t/jsonproviderimpl-not-found-but-only-for-updatebyquery-responses/337051/2 "2023-06-29T18:00:42Z")

</div>

In case the solution helps anyone else:

The issue was how I was calling the update by query.

All the code is in a springboot application. The code making the call was in a function in a `@Component`. The function was being called from a `@RestController` within a java `parallelStream`. When I changed it back to a `stream` it was fine.

Something about running the code in a `ForkJoinPool` means that, for some reason, no JsonProviderImpl is available in the execution context.

It's still a bit of a mystery to me, tbh. But the "fix" was to move from `parallelStream` back to `stream`.

---

<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:** [July 27, 2023, 6:00pm UTC](https://discuss.elastic.co/t/jsonproviderimpl-not-found-but-only-for-updatebyquery-responses/337051/3 "2023-07-27T18:00:52Z")

</div>

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