cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31649] - [Patch] Flowscript: Switch to re-implementation of official Rhino
Date Tue, 19 Oct 2004 13:49:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31649>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31649

[Patch] Flowscript: Switch to re-implementation of official Rhino





------- Additional Comments From reinhard@apache.org  2004-10-19 13:49 -------
I set up a simple test script simulating 5 threads with 5 loops over the
calculator example. Works perfectly with rhino1_5r4 but throws following
exception with rhino1_6R1pre:

org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException
(resource://org/apache/cocoon/components/flow/javascript/fom/fom_system.js#19)
	at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1767)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:166)
	at org.mozilla.javascript.FunctionObject.callVarargs(FunctionObject.java:487)
	at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:390)
	at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:309)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:3070)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:141)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:301)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:141)
	at org.mozilla.javascript.Context.call(Context.java:488)
	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1496)
	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1467)
	at
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:788)
	at
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:120)
...

Having only one thread doesn't throw the nullpointer.

If you want to run the tests on your machine, you can use the attached testscript.

Best,
Reinhard

Mime
View raw message