namespace is not defined. #1753
Unanswered
signofgrowth
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
We recently encountered a sporadic error, the "tw" namespace is not defined.
Normally the script runs fine in a loop every few seconds. But when we start another script running on the same Thread that ended with error. It causes the first script to start to fail. It continues to fail on the same thread. When the script is executed on different thread, it runs okay. Restart the server, it is back to normal.
I also noticed that when we set breakpoint and debug the org.mozilla.javascript.ScriptRuntime.notFoundError(Scriptable, String), the first script only failed a few time, then it starts to execute normally.
It seems there is thread level variable or state not being set right, However somehow debugging caused it correct it.
I am not sure what that piece of code could be or what we need to reset from the integration code.
EcmaError -- ScriptError: executeServiceByName Process Test:ReferenceError: "tw" is not defined. (test.js#3) at(3:-1)
org.mozilla.javascript.EcmaError: ReferenceError: "tw" is not defined. (test.js#3)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4563)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4544)
at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:4632)
at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1952)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1972)
Beta Was this translation helpful? Give feedback.
All reactions