Reputation: 81
When I try to use a javascript function I get this error: "could not initialize class io.siddhi.extension.script.js.EvalJavaScript"
I see in the lib folder that the siddhi-script-js-5.0.3.jar is there, both in the runner and the tooling, do I need to install any more extension?
I think there is a BUG in Siddhi with the javascrpt plugin.
I add the Siddhi official example and there is an error, you can notice in the third image.
Upvotes: 2
Views: 270
Reputation: 570
I guess this is an official bug from Siddhi-Docker, as the base JDK image used for the dockerization is a slim version, which doesn't have the NashornScript libraries for JS compilation.
The siddhi-runner works on using a non-slim version of base JDK image. I have verified it locally and it works well. My pull request is pending for review.
https://github.com/siddhi-io/docker-siddhi/pull/33
Upvotes: 1