2015-01-19 15:13:17,603 [ ] [main] INFO mireka.startup.Start Starting Mireka 4.1.1...
2015-01-19 15:13:18,056 [ ] [main] DEBUG m.startup.ScriptApi Evaluating conf\mireka.js...
2015-01-19
15:13:18,071 [ ] [main] ERROR mireka.startup.Start
Cannot read configuration. Include stack: [conf\mireka.js]
javax.script.ScriptException: TypeError:
mireka.startup.ScriptApi@6c130c45 has no such function "include" in
conf\mireka.js at line number 7
at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521)
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:187)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
at mireka.startup.ScriptApi.include(ScriptApi.java:50)
at mireka.startup.Start.configure(Start.java:45)
at mireka.startup.Start.main(Start.java:31)
Caused
by: jdk.nashorn.internal.runtime.ECMAException: TypeError:
mireka.startup.ScriptApi@6c130c45 has no such function "include"
at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173)
at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkBean(NashornBottomLinker.java:118)
at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:73)
at
jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124)
at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144)
at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232)
at jdk.nashorn.internal.scripts.Script$mireka.runScript(conf\mireka.js:7)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568)
... 7 common frames omitted
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
...
load("nashorn:mozilla_compat.js");If this does not work, than I have to bundle Rhino.
--
---
You received this message because you are subscribed to the Google Groups "Mireka mail server and SMTP proxy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mireka+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This is caused by the upgrade from Rhino to Nashorn in JDK 8. The Javascript engine is not part of the JRE, only an addon to the JDK, it is not required to maintain compatibility.
Fixing this maybe only requires a single line to include the compatibility script (preferably conditionally, depending on the JavaScript engine),
load("nashorn:mozilla_compat.js");If this does not work, than I have to bundle Rhino.