# Update Zulu11 to Zulu17 JS Transformation Problems

**URL:** <https://community.openhab.org/t/update-zulu11-to-zulu17-js-transformation-problems/149345>\
**Category:** Other\
**Created:** [September 4, 2023, 6:45pm UTC](https://community.openhab.org/t/update-zulu11-to-zulu17-js-transformation-problems/149345 "2023-09-04T18:45:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bobby](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@Bobby](https://community.openhab.org/u/Bobby)\
**Post date:** [September 4, 2023, 6:45pm UTC](https://community.openhab.org/t/update-zulu11-to-zulu17-js-transformation-problems/149345/1 "2023-09-04T18:45:26Z")

</div>

Hi, i have problem after updating from Zulu11 to Zulu17 and OH 3.4.4 (Ubuntu 22.04) (in preparation for OH4). my JavaScript Transformations doesnt work anymore.

I have item descriptions with JS Transformations like this:

```csv
Number iChannel_0_RemQuantity "Rem. Quantity [JS(UlToMl.js):%s]"

```

in transform folder the UlToMl.js:

```javascript
(function(inputValue) {
  var ml = inputValue / 1000
  ml = Math.round(ml * 100) / 100
  var res = ml + " ml" 
  return res
})(input)

```

after updating vom zulu11 to zulu17 (removed all zulu11 packages and installed zulu17) i got the following log entry (still OH 3.4.4):

2023-09-04 20:43:33.830 [ERROR] [internal.JSONResponseExceptionMapper] - Unexpected exception occurred while processing REST request.  
java.lang.NullPointerException: Cannot invoke “javax.script.Compilable.compile(java.io.Reader)” because “engine” is null  
at org.openhab.transform.javascript.internal.JavaScriptEngineManager.getCompiledScriptByFilename(JavaScriptEngineManager.java:77) ~[?:?]  
at org.openhab.transform.javascript.internal.JavaScriptTransformationService.transform(JavaScriptTransformationService.java:119) ~[?:?]  
at org.openhab.core.transform.TransformationHelper.transform(TransformationHelper.java:125) ~[?:?]  
at org.openhab.core.transform.TransformationHelper.transform(TransformationHelper.java:100) ~[?:?]  
at org.openhab.core.io.rest.core.item.EnrichedItemDTOMapper.considerTransformation(EnrichedItemDTOMapper.java:148) ~[?:?]  
at org.openhab.core.io.rest.core.item.EnrichedItemDTOMapper.map(EnrichedItemDTOMapper.java:81) ~[?:?]

any advices?

regards Bobby

---

<div class="post-metadata">

**Author:** ![stamate\_viorel](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@stamate\_viorel](https://community.openhab.org/u/stamate_viorel)\
**Post date:** [September 4, 2023, 8:21pm UTC](https://community.openhab.org/t/update-zulu11-to-zulu17-js-transformation-problems/149345/2 "2023-09-04T20:21:33Z")

</div>

Have you already upgraded to openhab 4 ?

---

<div class="post-metadata">

**Author:** ![Bobby](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@Bobby](https://community.openhab.org/u/Bobby)\
**Post date:** [September 4, 2023, 8:37pm UTC](https://community.openhab.org/t/update-zulu11-to-zulu17-js-transformation-problems/149345/3 "2023-09-04T20:37:54Z")

</div>

No, not so far. I want to correct existing errors first, before I get more problems with the update.

---

<div class="post-metadata">

**Author:** ![wborn](https://community.openhab.org/user_avatar/community.openhab.org/wborn/32/55946_2.png) [@wborn](https://community.openhab.org/u/wborn)\
**Post date:** [September 4, 2023, 9:10pm UTC](https://community.openhab.org/t/update-zulu11-to-zulu17-js-transformation-problems/149345/4 "2023-09-04T21:10:46Z")

</div>

OH 3.4 does not fully support Java 17. Some of the JavaScript related issues were only fixed in OH 4. That’s why all the OH 3.4 documentation also instructs users to use Java 11 with it.

---

<div class="post-metadata">

**Author:** ![Bobby](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@Bobby](https://community.openhab.org/u/Bobby)\
**Post date:** [September 5, 2023, 1:30pm UTC](https://community.openhab.org/t/update-zulu11-to-zulu17-js-transformation-problems/149345/5 "2023-09-05T13:30:12Z")

</div>

ok, i have updated to OH 4.0.2 … now the JS Transformations work again 🙂
