Closed
Description
With milestone6 I get the following error:
javax.script.ScriptException: TypeError: Cannot call undefined in src/main/resources/vertx-js/util/jvm-npm.js at line number 121
at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:56)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:212)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:184)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:171)
at jdk.nashorn.internal.runtime.Undefined.lookupTypeError(Undefined.java:128)
at jdk.nashorn.internal.runtime.Undefined.lookup(Undefined.java:100)
at jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(NashornLinker.java:98)
at jdk.internal.dynalink.support.CompositeTypeBasedGuardingDynamicLinker.getGuardedInvocation(CompositeTypeBasedGuardingDynamicLinker.java:176)
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$jvm_npm._L27(src/main/resources/vertx-js/util/jvm-npm.js:121)
at jdk.nashorn.internal.scripts.Script$jvm_npm.runScript(src/main/resources/vertx-js/util/jvm-npm.js:27)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:498)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:206)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378)
at jdk.nashorn.internal.runtime.Context.evaluateSource(Context.java:885)
at jdk.nashorn.internal.runtime.Context.load(Context.java:563)
at jdk.nashorn.internal.objects.Global.load(Global.java:857)
at jdk.nashorn.internal.scripts.Script$\^eval\_.runScript(<eval>:1)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:498)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:206)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:546)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:528)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:524)
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:194)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at io.vertx.test.lang.js.JSRunner.load(JSRunner.java:56)
at io.vertx.test.lang.js.JSRunner.run(JSRunner.java:35)
at io.vertx.test.lang.js.JSRunner.run(JSRunner.java:28)
at io.vertx.test.lang.js.JSTestBase.runTest(JSTestBase.java:15)
at io.vertx.test.lang.js.TimeoutTest.testClearInterval(TimeoutTest.java:31)
The problem points to the following line
var synchronizedDoRequire = Java.synchronized(doRequire, verticleFactoryClass);
In milestone5 everything worked correctly.
This also happens if I just run mvn test
so it seems it's not my code causing this issue. I use JDK 1.8.0_31 by the way. Maybe there's some Nashorn feature that has been added in 1.8.0_40?
Thanks,
Michel
Metadata
Metadata
Assignees
Labels
No labels