# Java 8, elasticsearch, and MVEL

**URL:** <https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683>\
**Category:** Elasticsearch\
**Created:** [March 28, 2014, 4:18pm UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683 "2014-03-28T16:18:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Sanwald\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_sanwald_2/32/881_2.png) [@Paul\_Sanwald\_2](https://discuss.elastic.co/u/Paul_Sanwald_2)\
**Post date:** [March 28, 2014, 4:18pm UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683/1 "2014-03-28T16:18:18Z")

</div>

I've been testing ES with java 8, and everything is working fantastic, with  
the exception of MVEL, which is fairly broken. I've looked on the MVEL  
mailing lists, and on github issues, and there's not a lot of activity. I'm  
trying to decide if I should just migrate my MVEL scripts to a different  
language, which seems like the easiest path. Any thoughts? Have others  
moved ES installs to java 8 successfully?

--paul

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a0f5a4a0-3a22-42c4-a4ee-be4b9d7b9734%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a0f5a4a0-3a22-42c4-a4ee-be4b9d7b9734%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Paul\_Sanwald\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_sanwald_2/32/881_2.png) [@Paul\_Sanwald\_2](https://discuss.elastic.co/u/Paul_Sanwald_2)\
**Post date:** [April 4, 2014, 7:11pm UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683/2 "2014-04-04T19:11:17Z")

</div>

it seems I'm the only one with this problem. perhaps I will migrate our  
scripts to javascript. I'll post back to the group with results.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [April 6, 2014, 12:29pm UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683/3 "2014-04-06T12:29:03Z")

</div>

No, you are not the only one. MVEL breaks under Java 8 here. I use Java 8  
with ES without scripting right now. For doc boosting, I will need  
scripting desperately.

I also want to migrate away from MVEL. My favorite is Nashorn because it is  
part of Java 8 JDK, but I'm wrestling with thread safety issues - and my  
tests show low performance to my surprise.

So I have tried to implement some other script languages as a plugin with  
focus on JSR 223 (dynjs, jav8, luaj) but I'm stuck in the middle of getting  
them to run and sorting out what script language implementation give best  
performance and smartest resource usage behavior under ES.

Jörg

On Fri, Apr 4, 2014 at 9:11 PM, Paul Sanwald [paul@redowlanalytics.com](mailto:paul@redowlanalytics.com)wrote:

> it seems I'm the only one with this problem. perhaps I will migrate our  
> scripts to javascript. I'll post back to the group with results.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 6, 2014, 11:12pm UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683/4 "2014-04-06T23:12:39Z")

</div>

We are planning to address this on Elasticsearch itself. The tricky bit is the fact that we want to have a highly optimized concurrent scripting engine. You can install the Rhino one which should work for now, its pretty fast, and it allows for the type of execution we are after.

We will report back with findings and progress.

On Apr 6, 2014, at 14:29, [joergprante@gmail.com](mailto:joergprante@gmail.com) wrote:

> No, you are not the only one. MVEL breaks under Java 8 here. I use Java 8 with ES without scripting right now. For doc boosting, I will need scripting desperately.
> 
> I also want to migrate away from MVEL. My favorite is Nashorn because it is part of Java 8 JDK, but I'm wrestling with thread safety issues - and my tests show low performance to my surprise.
> 
> So I have tried to implement some other script languages as a plugin with focus on JSR 223 (dynjs, jav8, luaj) but I'm stuck in the middle of getting them to run and sorting out what script language implementation give best performance and smartest resource usage behavior under ES.
> 
> Jörg
> 
> On Fri, Apr 4, 2014 at 9:11 PM, Paul Sanwald [paul@redowlanalytics.com](mailto:paul@redowlanalytics.com) wrote:  
> it seems I'm the only one with this problem. perhaps I will migrate our scripts to javascript. I'll post back to the group with results.
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com).
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4A347467-FEEB-4685-BB57-850D031A808F%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/4A347467-FEEB-4685-BB57-850D031A808F%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Paul\_Sanwald\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_sanwald_2/32/881_2.png) [@Paul\_Sanwald\_2](https://discuss.elastic.co/u/Paul_Sanwald_2)\
**Post date:** [April 7, 2014, 11:30am UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683/5 "2014-04-07T11:30:26Z")

</div>

Thanks, Shay. If there's anything I can do to help with the effort, please  
do let me know.

On Sunday, April 6, 2014 7:12:39 PM UTC-4, kimchy wrote:

> We are planning to address this on Elasticsearch itself. The tricky bit is  
> the fact that we want to have a highly optimized concurrent scripting  
> engine. You can install the Rhino one which should work for now, its pretty  
> fast, and it allows for the type of execution we are after.
> 
> We will report back with findings and progress.
> 
> On Apr 6, 2014, at 14:29, [joerg...@gmail.com](mailto:joerg...@gmail.com) \<javascript:\> wrote:
> 
> No, you are not the only one. MVEL breaks under Java 8 here. I use Java 8  
> with ES without scripting right now. For doc boosting, I will need  
> scripting desperately.
> 
> I also want to migrate away from MVEL. My favorite is Nashorn because it  
> is part of Java 8 JDK, but I'm wrestling with thread safety issues - and my  
> tests show low performance to my surprise.
> 
> So I have tried to implement some other script languages as a plugin with  
> focus on JSR 223 (dynjs, jav8, luaj) but I'm stuck in the middle of getting  
> them to run and sorting out what script language implementation give best  
> performance and smartest resource usage behavior under ES.
> 
> Jörg
> 
> On Fri, Apr 4, 2014 at 9:11 PM, Paul Sanwald \<[pa...@redowlanalytics.com](mailto:pa...@redowlanalytics.com)\<javascript:\>
> 
> > wrote:
> 
> > it seems I'm the only one with this problem. perhaps I will migrate our  
> > scripts to javascript. I'll post back to the group with results.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/54edc661-2525-4ea8-b9e1-f83e733401e4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/54edc661-2525-4ea8-b9e1-f83e733401e4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Tim\_Uckun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tim_uckun/32/1256_2.png) [@Tim\_Uckun](https://discuss.elastic.co/u/Tim_Uckun)\
**Post date:** [April 7, 2014, 10:45pm UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683/6 "2014-04-07T22:45:36Z")

</div>

You should take a look at mirah.

On Monday, April 7, 2014 11:12:39 AM UTC+12, kimchy wrote:

> We are planning to address this on Elasticsearch itself. The tricky bit is  
> the fact that we want to have a highly optimized concurrent scripting  
> engine. You can install the Rhino one which should work for now, its pretty  
> fast, and it allows for the type of execution we are after.
> 
> We will report back with findings and progress.
> 
> On Apr 6, 2014, at 14:29, [joerg...@gmail.com](mailto:joerg...@gmail.com) \<javascript:\> wrote:
> 
> No, you are not the only one. MVEL breaks under Java 8 here. I use Java 8  
> with ES without scripting right now. For doc boosting, I will need  
> scripting desperately.
> 
> I also want to migrate away from MVEL. My favorite is Nashorn because it  
> is part of Java 8 JDK, but I'm wrestling with thread safety issues - and my  
> tests show low performance to my surprise.
> 
> So I have tried to implement some other script languages as a plugin with  
> focus on JSR 223 (dynjs, jav8, luaj) but I'm stuck in the middle of getting  
> them to run and sorting out what script language implementation give best  
> performance and smartest resource usage behavior under ES.
> 
> Jörg
> 
> On Fri, Apr 4, 2014 at 9:11 PM, Paul Sanwald \<[pa...@redowlanalytics.com](mailto:pa...@redowlanalytics.com)\<javascript:\>
> 
> > wrote:
> 
> > it seems I'm the only one with this problem. perhaps I will migrate our  
> > scripts to javascript. I'll post back to the group with results.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/76e763bb-5dcc-40b6-a4ed-c08a0659d603%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/76e763bb-5dcc-40b6-a4ed-c08a0659d603%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Bernhard\_Berger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bernhard_berger/32/833_2.png) [@Bernhard\_Berger](https://discuss.elastic.co/u/Bernhard_Berger)\
**Post date:** [April 15, 2014, 9:40am UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683/7 "2014-04-15T09:40:56Z")

</div>

Is there an open issue so that I can watch the progress for this bug? I  
cannot find any issue for this on GitHub.

Am 07.04.2014 01:12, schrieb Shay Banon:

> We will report back with findings and progress.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 21, 2014, 12:39pm UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683/8 "2014-04-21T12:39:43Z")

</div>

Hey,

this commits upgrades mvel, that seems to have fixed the java8 issues  
(still requires more testing on our side though):

> <https://github.com/elastic/elasticsearch/commit/21a36678883c159e50a03b76309d3da2a8e5d7b4>
>
> closes #5877

IIRC this bug has also been fixed in the new MVEL version:

> <https://github.com/elastic/elasticsearch/issues/5483>
>
> Hello,
> 
> We hit an interesting bug a few days ago with our testing cluster. It ap…pears that if we do 2 consecutive updates to a document, \*\*right after an elasticsearch restart\*\*, the second update fails with \`NullPointerException\`. If we run the test script a second time (without restarting the server), the update succeeds.
> 
> Our test script that demostrates the issue:
> 
> \`\`\`
> \# sudo /etc/init.d/elasticsearch restart && sleep 10 && bash test\_es\_mvel\_issue
> 
> echo "Delete everything"
> curl -X DELETE 'http://localhost:9200/\_all?pretty'
> 
> echo "Create test index"
> curl -X PUT 'http://localhost:9200/test?pretty'
> 
> echo "Add a document"
> curl -X PUT 'http://localhost:9200/test/tweet/1?pretty' -d '{
> "smth": "m"
> }'
> 
> echo "Issue an update using mvel"
> curl -X POST 'http://localhost:9200/test/tweet/1/\_update?pretty' -d '{
> "script": "foreach(field : updates.entrySet()) { ctx.\_source\[field.key\] = field.value; }",
> "params": {
> "updates": {
> "1": 1,
> "2": 1,
> "3": 1,
> "availability": null,
> "5": 1,
> "a": 1,
> "b": 1,
> "c": 1,
> "d": 1,
> "e": 1,
> "f": 1,
> "g": 1,
> "h": 1,
> "i": 1,
> "j": 1,
> "k": 1,
> "l": 1,
> "m": 1,
> "n": 1,
> "o": 1,
> "p": 1,
> "q": 1,
> "r": 1,
> "s": 1,
> "t": 1,
> "flter": 1
> }
> }
> }'
> 
> echo "Issue a second update"
> curl -X POST 'http://localhost:9200/test/tweet/1/\_update?pretty' -d '{
> "script": "foreach(field : updates.entrySet()) { ctx.\_source\[field.key\] = field.value; }",
> "params": {
> "updates": {
> "1": 1,
> "2": 1,
> "3": 1,
> "availability": null,
> "5": 1,
> "a": 1,
> "b": 1,
> "c": 1,
> "d": 1,
> "e": 1,
> "f": 1,
> "g": 1,
> "h": 1,
> "i": 1,
> "j": 1,
> "k": 1,
> "l": 1,
> "m": 1,
> "n": 1,
> "o": 1,
> "p": 1,
> "q": 1,
> "r": 1,
> "s": 1,
> "t": 1,
> "flter": 1
> }
> }
> }'
> 
> \#2014-03-20T15:20:30+02:00 \[400\] (0.016s)
> \#
> \# {
> \# "error": "ElasticSearchIllegalArgumentException\[failed to execute script\]; nested: NullPointerException; ",
> \# "status": 400
> \# 
> \# }
> 
> \`\`\`
> 
> The bug is reproducible to all elasticsearch versions (0.90, 1.0, 1.1, master).
> 
> Some interesting points that we noticed:
> \- It seems to depend on the payload, if we remove an attribute from the \`updates\` hash everything works.
> \- If we add some whitespace to the second's update mvel script, the update succeeds. Probably because it skips a cache.

--Alex

On Tue, Apr 15, 2014 at 11:40 AM, Bernhard Berger \<  
[bernhardberger3456@gmail.com](mailto:bernhardberger3456@gmail.com)\> wrote:

> Is there an open issue so that I can watch the progress for this bug? I  
> cannot find any issue for this on GitHub.
> 
> Am 07.04.2014 01:12, schrieb Shay Banon:
> 
> We will report back with findings and progress.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM\_afA7BVFCM4jSEwmqTVr%3DJgXhEU0a9PLx%2BzGtpf%3DpYDg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_afA7BVFCM4jSEwmqTVr%3DJgXhEU0a9PLx%2BzGtpf%3DpYDg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Paul\_Sanwald\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_sanwald_2/32/881_2.png) [@Paul\_Sanwald\_2](https://discuss.elastic.co/u/Paul_Sanwald_2)\
**Post date:** [May 16, 2014, 3:45pm UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683/9 "2014-05-16T15:45:53Z")

</div>

It's a little hard to tell between the mvel es commit histories and the  
github issue.

It looks like this isn't fixed, and isn't going to get fixed in MVEL? Am I  
misreading something?

--paul

On Monday, April 21, 2014 8:39:43 AM UTC-4, Alexander Reelsen wrote:

> Hey,
> 
> this commits upgrades mvel, that seems to have fixed the java8 issues  
> (still requires more testing on our side though):  
> [Upgrade to mvel 2.2.0.Final · elastic/elasticsearch@21a3667 · GitHub](https://github.com/elasticsearch/elasticsearch/commit/21a36678883c159e50a03b76309d3da2a8e5d7b4)
> 
> IIRC this bug has also been fixed in the new MVEL version:  
> [Unexpected mvel update NullPointerException · Issue #5483 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/5483)
> 
> --Alex
> 
> On Tue, Apr 15, 2014 at 11:40 AM, Bernhard Berger \<[bernhardb...@gmail.com](mailto:bernhardb...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Is there an open issue so that I can watch the progress for this bug? I  
> > cannot find any issue for this on GitHub.
> > 
> > Am 07.04.2014 01:12, schrieb Shay Banon:
> > 
> > We will report back with findings and progress.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
_Important Notice:_ The information contained in or attached to this email  
message is confidential and proprietary information of RedOwl Analytics,  
Inc., and by opening this email or any attachment the recipient agrees to  
keep such information strictly confidential and not to use or disclose the  
information other than as expressly authorized by RedOwl Analytics, Inc.  
If you are not the intended recipient, please be aware that any use,  
printing, copying, disclosure, dissemination, or the taking of any act in  
reliance on this communication or the information contained herein is  
strictly prohibited. If you think that you have received this email message  
in error, please delete it and notify the sender.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e4717341-fc95-4ca0-badf-50b38e6df5d2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e4717341-fc95-4ca0-badf-50b38e6df5d2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [May 16, 2014, 8:37pm UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683/10 "2014-05-16T20:37:53Z")

</div>

MVEL 2.2.0 fixes Java 8 compilation issue  
[http://jira.codehaus.org/browse/MVEL-299](http://jira.codehaus.org/browse/MVEL-299)

Jörg

On Fri, May 16, 2014 at 5:45 PM, Paul Sanwald [paul@redowlanalytics.com](mailto:paul@redowlanalytics.com)wrote:

> It's a little hard to tell between the mvel es commit histories and the  
> github issue.
> 
> It looks like this isn't fixed, and isn't going to get fixed in MVEL? Am I  
> misreading something?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoETutbGnKOT72psnAsZiUrMNomGyNmtwKLzVrmYcNF1XA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoETutbGnKOT72psnAsZiUrMNomGyNmtwKLzVrmYcNF1XA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:28am UTC](https://discuss.elastic.co/t/java-8-elasticsearch-and-mvel/16683/11 "2017-07-06T01:28:47Z")

</div>


