# Unable to use jackson within custom score scripts

**URL:** <https://discuss.elastic.co/t/unable-to-use-jackson-within-custom-score-scripts/49400>\
**Category:** Elasticsearch\
**Created:** [May 6, 2016, 10:58am UTC](https://discuss.elastic.co/t/unable-to-use-jackson-within-custom-score-scripts/49400 "2016-05-06T10:58:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pete\_Neiberg](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@Pete\_Neiberg](https://discuss.elastic.co/u/Pete_Neiberg)\
**Post date:** [May 6, 2016, 10:58am UTC](https://discuss.elastic.co/t/unable-to-use-jackson-within-custom-score-scripts/49400/1 "2016-05-06T10:58:35Z")

</div>

I am upgrading from ES 1.7 to 2.3.1 but I'm not able to get my custom score scripts running. they have complex DTOs as parameters that's why i use jackson to deserialize the string parameter within my Java score script.

I tried 3 different ways:  
add jackson within the plugin folder: java.lang.IllegalStateException: jar hell! during startup  
add jackson within the plugin.jar: java.lang.IllegalStateException: jar hell! during startup  
add no jackson jars: java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.ObjectMapper during script call

I also tried to change the isolated property in the plugin-descriptor to false =\> same results for the 3 ways above

If I remove the jackson imports and initialize the parameter DTOs with hardcoded values, everything works.

Any ideas what I do wrong?  
ES=2.3.1, jvm=jdk1.7.0\_79, OS=windows 10, jackson-version=2.6.2 (the same as ES 2.3.1)

---

<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 5, 2017, 10:53pm UTC](https://discuss.elastic.co/t/unable-to-use-jackson-within-custom-score-scripts/49400/2 "2017-07-05T22:53:21Z")

</div>


