# Error JAVA on update

**URL:** <https://community.siren.io/t/error-java-on-update/177>\
**Category:** Siren Federate (Elasticsearch Plugin)\
**Created:** [January 13, 2020, 3:50pm UTC](https://community.siren.io/t/error-java-on-update/177 "2020-01-13T15:50:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalypso63](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@kalypso63](https://community.siren.io/u/kalypso63)\
**Post date:** [January 13, 2020, 3:50pm UTC](https://community.siren.io/t/error-java-on-update/177/1 "2020-01-13T15:50:29Z")

</div>

Hi guy,

I have a problem when i update a record (Article) on ES which is joined with an other index (Company).

I have this error

# {“total”:5,“successful”:4,“skipped”:0,“failed”:1,“failures”:[{“shard”:1,“index”:“app\_project”,“node”:“4B2AWZghTuuyQK-Eo1C58Q”,“reason”:{“type”:“exception”,“reason”:“Unable to call method=private void org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(org.elasticsearch.search.internal.ShardSearchRequest,org.elasticsearch.search.internal.SearchContext) throws java.lang.Exception with args [io.siren.federate.core.g.a.c@23444fed, [4B2AWZghTuuyQK-Eo1C58Q][app\_project][1] query=[+type.id:[1 TO 1] +statut.id:{6 7 8} +CachingWrapperQuery(LongsHashSemiJoinQuery(companies.id:[inputData=3386-603806648-27674846-125208000])) #companies.porteuse:T]] on org.elasticsearch.search.c@33f0f9a0”,“caused\_by”:{“type”:“invocation\_target\_exception”,“reason”:null,“caused\_by”:{“type”:“null\_pointer\_exception”,“reason”:null}}}}]}

Could you help me please ?

Thanks

Mickael

---

<div class="post-metadata">

**Author:** ![Stephane\_Campinas](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.siren.io/stephane_campinas/32/22_2.png) [@Stephane\_Campinas](https://community.siren.io/u/Stephane_Campinas)\
**Post date:** [January 13, 2020, 3:59pm UTC](https://community.siren.io/t/error-java-on-update/177/2 "2020-01-13T15:59:28Z")

</div>

Can you add the request parameter `error_trace` and see if you get a bit more ?  
If not, can you add the parameter `debug` ? The output can be big.

---

<div class="post-metadata">

**Author:** ![kalypso63](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@kalypso63](https://community.siren.io/u/kalypso63)\
**Post date:** [January 13, 2020, 4:06pm UTC](https://community.siren.io/t/error-java-on-update/177/3 "2020-01-13T16:06:25Z")

</div>

> [@Stephane\_Campinas](#):
>
> If not, can you add the parameter `debug`

I try with error\_trace but failure message is same.

Where I must setted debug parameter ? On ES or on siren federate ?

---

<div class="post-metadata">

**Author:** ![Stephane\_Campinas](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.siren.io/stephane_campinas/32/22_2.png) [@Stephane\_Campinas](https://community.siren.io/u/Stephane_Campinas)\
**Post date:** [January 13, 2020, 4:08pm UTC](https://community.siren.io/t/error-java-on-update/177/4 "2020-01-13T16:08:49Z")

</div>

This is also a request parameter.

What are the steps you take to reproduce the issue ? Make a join, update a doc, then again a join ?

---

<div class="post-metadata">

**Author:** ![kalypso63](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@kalypso63](https://community.siren.io/u/kalypso63)\
**Post date:** [January 13, 2020, 5:05pm UTC](https://community.siren.io/t/error-java-on-update/177/5 "2020-01-13T17:05:34Z")

</div>

> [@kalypso63](#):
>
> not, can you add the parameter `debug`

I have a script which update each indice (article & company). When i update a record company and make a join query, the error appear

---

<div class="post-metadata">

**Author:** ![Stephane\_Campinas](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.siren.io/stephane_campinas/32/22_2.png) [@Stephane\_Campinas](https://community.siren.io/u/Stephane_Campinas)\
**Post date:** [January 14, 2020, 9:08am UTC](https://community.siren.io/t/error-java-on-update/177/6 "2020-01-14T09:08:21Z")

</div>

I am not able to reproduce this problem locally. Is it possible that you share your script ?  
For the record, I have tested the following script but didn’t get an exception:

```auto
#! /bin/bash

http PUT localhost:9200/_bulk <<< '{ "index" : { "_index" : "articles", "_type" : "article", "_id" : "1" } }
{ "title" : "The NoSQL database glut", "mentions" : [1, 2] }
{ "index" : { "_index" : "articles", "_type" : "article", "_id" : "2" } }
{ "title" : "Graph Databases Seen Connecting the Dots", "mentions" : [] }
{ "index" : { "_index" : "articles", "_type" : "article", "_id" : "3" } }
{ "title" : "How to determine which NoSQL DBMS best fits your needs", "mentions" : [2, 4] }
{ "index" : { "_index" : "articles", "_type" : "article", "_id" : "4" } }
{ "title" : "MapR ships Apache Drill", "mentions" : [4] }
{ "index" : { "_index" : "companies", "_type" : "company", "_id" : "1" } }
{ "id": 1, "name" : "Elastic" }
{ "index" : { "_index" : "companies", "_type" : "company", "_id" : "2" } }
{ "id": 2, "name" : "Orient Technologies" }
{ "index" : { "_index" : "companies", "_type" : "company", "_id" : "3" } }
{ "id": 3, "name" : "Cloudera" }
{ "index" : { "_index" : "companies", "_type" : "company", "_id" : "4" } }
{ "id": 4, "name" : "MapR" }
'

for i in $(seq 10); do
	http POST localhost:9200/companies/_doc/1/_update <<< "$(jo doc=$(jo name=toto$i))"
	http localhost:9200/siren/articles/_search error_trace==true <<< "$(jo query=$(jo join=$(jo indices=$(jo -a companies) on=$(jo -a mentions id) request=$(jo query=$(jo term=$(jo name=orient))))))"
done

for i in $(seq 10); do
	http POST localhost:9200/articles/_doc/1/_update <<< "$(jo doc=$(jo title=toto$i))"
	http localhost:9200/siren/articles/_search error_trace==true <<< "$(jo query=$(jo join=$(jo indices=$(jo -a companies) on=$(jo -a mentions id) request=$(jo query=$(jo term=$(jo name=orient))))))"
done

```

What about the Elasticsearch logs ? Do they have any exception stack trace ?  
What version of Federate are you using ? This was tested on `6.8.5-10.3.4`.

---

<div class="post-metadata">

**Author:** ![kalypso63](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@kalypso63](https://community.siren.io/u/kalypso63)\
**Post date:** [January 14, 2020, 4:00pm UTC](https://community.siren.io/t/error-java-on-update/177/7 "2020-01-14T16:00:05Z")

</div>

Problem solved. This is a problem with my bash script to index all document. I need to set the type with HASH\_JOIN too.

Thanks

---

<div class="post-metadata">

**Author:** ![kalypso63](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@kalypso63](https://community.siren.io/u/kalypso63)\
**Post date:** [January 16, 2020, 7:50am UTC](https://community.siren.io/t/error-java-on-update/177/8 "2020-01-16T07:50:21Z")

</div>

Do you know where can i download siren federate 6.8.5-10.3.4 ?

---

<div class="post-metadata">

**Author:** ![Stephane\_Campinas](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.siren.io/stephane_campinas/32/22_2.png) [@Stephane\_Campinas](https://community.siren.io/u/Stephane_Campinas)\
**Post date:** [January 21, 2020, 11:32am UTC](https://community.siren.io/t/error-java-on-update/177/9 "2020-01-21T11:32:33Z")

</div>

Sorry 10.3.4 is still an internal branch but I have tested this against 10.3.3 without problem.
