javascript (spidermonkey) readline() not work anymore

18 views
Skip to first unread message

Angela Moss

unread,
Apr 26, 2020, 5:44:21 PM4/26/20
to rextester
its seems something missing. It works before.

Error(s), warning(s):
org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException
	at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1893)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
	at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:387)
	at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
	at org.mozilla.javascript.gen._home_ren_Desktop_rextester_linux_2_0_usercode_1818039802_source_js_1._c_script_0(Unknown Source)
	at org.mozilla.javascript.gen._home_ren_Desktop_rextester_linux_2_0_usercode_1818039802_source_js_1.call(Unknown Source)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282)
	at org.mozilla.javascript.gen._home_ren_Desktop_rextester_linux_2_0_usercode_1818039802_source_js_1.call(Unknown Source)
	at org.mozilla.javascript.gen._home_ren_Desktop_rextester_linux_2_0_usercode_1818039802_source_js_1.exec(Unknown Source)
	at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:601)
	at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:560)
	at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:531)
	at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:179)
	at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:100)
	at org.mozilla.javascript.Context.call(Context.java:501)
	at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:503)
	at org.mozilla.javascript.tools.shell.Main.exec(Main.java:161)
	at org.mozilla.javascript.tools.shell.Main.main(Main.java:136)
Caused by: java.lang.NullPointerException
	at org.mozilla.javascript.tools.shell.Global.readline(Global.java:1149)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
	... 17 more
Reply all
Reply to author
Forward
0 new messages