question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Events" and "Commands" are no longer valid for Helper-JS

See original GitHub issue

javax.script.ScriptException: ReferenceError: "Commands" is not defined in nashorn:mozilla_compat.js at line number 67 2018-02-15 14:28:17 [WARN] at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:470) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:454) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155) 2018-02-15 14:28:17 [WARN] at me.lucko.scriptcontroller.internal.ScriptImpl.run(ScriptImpl.java:162) 2018-02-15 14:28:17 [WARN] at me.lucko.scriptcontroller.internal.ScriptLoaderImpl.lambda$reload$1(ScriptLoaderImpl.java:294) 2018-02-15 14:28:17 [WARN] at me.lucko.helper.Scheduler$SchedulerWrappedRunnable.run(Scheduler.java:638) 2018-02-15 14:28:17 [WARN] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71) 2018-02-15 14:28:17 [WARN] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353) 2018-02-15 14:28:17 [WARN] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739) 2018-02-15 14:28:17 [WARN] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) 2018-02-15 14:28:17 [WARN] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) 2018-02-15 14:28:17 [WARN] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) 2018-02-15 14:28:17 [WARN] at java.lang.Thread.run(Unknown Source) 2018-02-15 14:28:17 [WARN] Caused by: nashorn:mozilla_compat.js:67 ReferenceError: "Commands" is not defined 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:319) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:291) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1441) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.scripts.Script$Recompilation$9$1362A$\=nashorn\!mozilla_compat.value-1#__noSuchProperty__(nashorn:mozilla_compat.js:67) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.scripts.Script$17$gui.:program(plugins/helper-js/scripts/bin/lobby/gui.js:39) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.runtime.Context.evaluateSource(Context.java:1222) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.runtime.Context.load(Context.java:839) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.objects.Global.load(Global.java:1545) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.scripts.Script$16$\^eval\_.:program(<eval>:1) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393) 2018-02-15 14:28:17 [WARN] at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449) 2018-02-15 14:28:17 [WARN] ... 13 more

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
luckocommented, Feb 15, 2018

Yeah, latest update needs work - just switch back to the older version.

0reactions
luckocommented, Apr 2, 2018

Yes, the version was bumped to 5.0.0 to reflect that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

K14381: HTTP Class iRule events and commands are no ...
Beginning in BIG-IP 11.4.0, HTTP Class iRule events and commands are no longer available. Description. With the introduction of the Local ...
Read more >
ENABLE EVENTS - IBM
Use this command to enable the processing of one or more events. ... that is not supported on any platform, or if you...
Read more >
algoliasearch-helper - UNPKG
42, * fix(insideBoundingBox): prevent invalid parameter from throwing (#787) ... release command https://github.com/algolia/algoliasearch-helper-js/commit/ ...
Read more >
Why are commands and events separately represented?
Commands can be rejected. Events have happened. This is probably the most important reason. In an event-driven architecture, there can be no question...
Read more >
teenytest | Yarn - Package Manager
Plugin lifecycle events ... Below are the available events to hook into: ... they need to write a failing test or unflag the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found