siddhi-io / docker-siddhi

Docker resources for Siddhi cloud-native streaming
Apache License 2.0
10 stars 10 forks source link

[dependencies] js:eval error & link invalid #35

Closed AntiKnot closed 3 months ago

AntiKnot commented 3 years ago

Description:

In guide https://siddhi.io/en/v5.1/docs/guides/database-static-rule-processing/guide/ demo app ComboSuperMartPromoProcess a feature js:eval

@info(name='execute-promocard-rules')
from RuleStream#window.length(1)
select RuleStream.messageId, RuleStream.promoCardTypeDiscount, js:eval(str:fillTemplate(RuleStream.promoRule, map:create("amount", RuleStream.amount, "cardPeriod", time:dateDiff(time:currentDate(), RuleStream.promoCardIssueDate, 'yyyy-MM-dd', 'yyyy-MM-dd'))), 'bool') as result
insert into RuleReslutsStream;

it will cause error

Caused by : java.lang.ClassNotFoundException: jdk.nashorn.internal.runtime.ParserException cannot be found by siddhi-script-js_5.0.3

and when i try to build image from base, ant download link is invalid.

Suggested Labels:

dependencies

Suggested Assignees:

I will provide a suggested PR @EurusEurus

Affected Product Version: version: https://github.com/siddhi-io/docker-siddhi/commit/ca2b604f378bc8535ec5ef89720b2bef88675ea2 Siddhi docker siddhiio/siddhi-tooling:5.1.2

OS, DB, other environment details and versions:

Steps to reproduce: just follow guide https://siddhi.io/en/v5.1/docs/guides/database-static-rule-processing/guide/ editor UI will raise error jdk/nashorn/internal/runtime/ParserException tooling log will rise error Caused by : java.lang.ClassNotFoundException: jdk.nashorn.internal.runtime.ParserException cannot be found by siddhi-script-js_5.0.3

Related Issues: