cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "imran pariyani (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (COCOON-1579) Continuation, sendPage and Rhino 1.6r1
Date Tue, 11 Sep 2007 17:27:32 GMT

    [ https://issues.apache.org/jira/browse/COCOON-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526472
] 

pariyani edited comment on COCOON-1579 at 9/11/07 10:26 AM:
------------------------------------------------------------------

I am also facing a similar problem  but in my case the scenario is a bit different . I have
a form which i submit and if everything is ok then in the flowscript i use sendpage(some pipeline)..
this pipeline is again with a form and it calls the flowscript which generates a new continuation
.. now if i try to submit this form i get a nullpointerexception .. below is the stacktrace
.. 

i tried the workaround mentioned here .. but still i get the same error :(

Any help would be appreciated 

java.lang.NullPointerException
	at org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsGet_request(FOM_Cocoon.java:578)
	at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
	at org.mozilla.javascript.ScriptableObject.getByGetter(ScriptableObject.java:1677)
	at org.mozilla.javascript.ScriptableObject.get(ScriptableObject.java:180)
	at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1315)
	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1337)
	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1326)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2816


i just tried the same with cocoon-2.1.10 samples .. in the blocks/forms/flow/binding_example.js

change in the method form2bean(form) the line with sendpage
cocoon.sendPage("form2bean.flow", { "form2bean": bean });
send it to any pipeline with cforms and the if u try to submit that form u get to following
exception in the method <bold>jsGet_request</bold>:

Sitemap: error calling continuation
java.lang.NullPointerException
	at org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsGet_request(FOM_Cocoon.java:575)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
	at org.mozilla.javascript.ScriptableObject.getByGetter(ScriptableObject.java:1677)
	at org.mozilla.javascript.ScriptableObject.get(ScriptableObject.java:180)
	at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1315)
	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1337)
	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1326)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2816)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)
	at org.mozilla.javascript.Context.call(Context.java:489)
	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1556)
	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1526)
	at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:839)
	at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:124)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)



      was (Author: pariyani):
    I am also facing a similar problem  but in my case the scenario is a bit different . I
have a form which i submit and if everything is ok then in the flowscript i use sendpage(some
pipeline).. this pipeline is again with a form and it calls the flowscript which generates
a new continuation .. now if i try to submit this form i get a nullpointerexception .. below
is the stacktrace .. 

i tried the workaround mentioned here .. but still i get the same error :(

Any help would be appreciated 

java.lang.NullPointerException

	at org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsGet_request(FOM_Cocoon.java:578)

	at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)

	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

	at java.lang.reflect.Method.invoke(Method.java:585)

	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)

	at org.mozilla.javascript.ScriptableObject.getByGetter(ScriptableObject.java:1677)

	at org.mozilla.javascript.ScriptableObject.get(ScriptableObject.java:180)

	at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1315)

	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1337)

	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1326)

	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2816)

	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)

	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)

	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)

	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)

	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)

	at org.mozilla.javascript.Context.call(Context.java:489)

	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1556)

	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1526)

	at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter

.java:839)

	at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java

:124)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:47)

	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:69)

	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:69)

	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)

	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java

:235)

	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java

:177)

	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)

	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:47)

	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:69)

	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:69)

	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)

	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java

:235)

	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java

:177)

	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)

	at org.apache.cocoon.Cocoon.process(Cocoon.java:699)

	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252

)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)

	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)

	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

	at com.triplemind.site.webapp.servlet.ProcessingServlet.service(ProcessingServlet.java:627)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252

)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

	at com.triplemind.site.webapp.servlet.FilterServlet.doFilter(FilterServlet.java:191)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202

)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

	at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:346)

	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol

.java:664)

	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

	at java.lang.Thread.run(Thread.java:595)

</pre>

</p>

<p class="stacktrace">

<span class="description">Java full stacktrace</span><span onclick="toggle('full-stacktrace')"
id="full-stacktrace-switch"

 class="switch">[hide]</span>

<pre id="full-stacktrace">org.apache.cocoon.ProcessingException: Sitemap: error calling
continuation

	at &lt;map:call&gt; - file:/opt/tomcat/webapps/triplebase/cocoon/sitemap.xmap:545:46

	at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:113)

	at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java

:126)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:47)

	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:69)

	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:69)

	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)

	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java

:235)

	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java

:177)

	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)

	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:47)

	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:69)

	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)

	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode

.java:69)

	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)

	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java

:235)

	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java

:177)

	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)

	at org.apache.cocoon.Cocoon.process(Cocoon.java:699)

	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252

)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)

	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)

	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

	at com.triplemind.site.webapp.servlet.ProcessingServlet.service(ProcessingServlet.java:627)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252

)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

	at com.triplemind.site.webapp.servlet.FilterServlet.doFilter(FilterServlet.java:191)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202

)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

	at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:346)

	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol

.java:664)

	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

	at java.lang.Thread.run(Thread.java:595)

Caused by: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException
(resource

://org/apache/cocoon/forms/flow/javascript/Form.js#206)

	at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)

	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)

	at org.mozilla.javascript.ScriptableObject.getByGetter(ScriptableObject.java:1677)

	at org.mozilla.javascript.ScriptableObject.get(ScriptableObject.java:180)

	at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1315)

	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1337)

	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1326)

	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2816)

	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)

	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)

	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)

	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)

	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)

	at org.mozilla.javascript.Context.call(Context.java:489)

	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1556)

	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1526)

	at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter

.java:839)

	at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java

:124)

	... 48 more

Caused by: java.lang.NullPointerException

	at org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsGet_request(FOM_Cocoon.java:578)

	at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)

	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

	at java.lang.reflect.Method.invoke(Method.java:585)

	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)

	... 64 more
  
> Continuation, sendPage and Rhino 1.6r1
> --------------------------------------
>
>                 Key: COCOON-1579
>                 URL: https://issues.apache.org/jira/browse/COCOON-1579
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Flowscript
>    Affects Versions: 2.1.8, 2.1.9, 2.1.10
>         Environment: Operating System: Linux
> Platform: PC
>            Reporter: Philippe Gassmann
>         Attachments: bug.tar
>
>
> I use Rhino 1.6r1 (from trunk svn) in my cocoon. I get a NullPointerException in
> that case : 
> I first call a flow function to display a jx template using a continuation.
> Then I post the form (and the continuation) to a pipeline calling a flow
> function that does a cocoon.sendPage to a pipeline calling the continuation.
> Then, I does some things in the flow and I display the jx template again.
> The first time I post the form : OK it's working.
> The second time I post the form : A NullPointerException is thrown !
> Here is the full java stacktrace :
> java.lang.NullPointerException
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsGet_continuation(FOM_Cocoon.java:252)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:174)
> 	at org.mozilla.javascript.ScriptableObject.getByGetter(ScriptableObject.java:1617)
> 	at org.mozilla.javascript.ScriptableObject.get(ScriptableObject.java:177)
> 	at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1263)
> 	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1332)
> 	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1321)
> 	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2744)
> 	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164)
> 	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140)
> 	at org.mozilla.javascript.Context.call(Context.java:497)
> 	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1496)
> 	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1466)
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:861)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:123)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:102)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.handleCocoonRedirect(ConcreteTreeProcessor.java:298)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.access$000(ConcreteTreeProcessor.java:47)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:339)
> 	at
> org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:59)
> 	at
> org.apache.cocoon.components.flow.AbstractInterpreter.forwardTo(AbstractInterpreter.java:209)
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.forwardTo(FOM_JavaScriptInterpreter.java:914)
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.forwardTo(FOM_Cocoon.java:698)
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsFunction_sendPage(FOM_Cocoon.java:269)
> 	at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:174)
> 	at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:456)
> 	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:3026)
> 	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164)
> 	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140)
> 	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304)
> 	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:140)
> 	at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:912)
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:766)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:138)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
> 	at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:250)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
> 	at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:250)
> 	at org.apache.cocoon.Cocoon.process(Cocoon.java:624)
> 	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1149)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
> 	at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
> 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
> 	at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
> 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
> 	at org.mortbay.http.HttpServer.service(HttpServer.java:879)
> 	at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
> 	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
> 	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
> 	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
> 	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
> 	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
> Here is the full Java stacktrace : 
> org.apache.cocoon.ProcessingException: Sitemap: error calling function 'send'
> 	at <map:call> - file:/home/philou/public_html/sitemap.xmap:15:33
> 	at <map:mount> - file:/home/cocoon/cocoon-2.1-x/build/webapp/sitemap.xmap:811:85
> 	at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:102)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:140)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
> 	at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:250)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
> 	at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:250)
> 	at org.apache.cocoon.Cocoon.process(Cocoon.java:624)
> 	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1149)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
> 	at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
> 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
> 	at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
> 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
> 	at org.mortbay.http.HttpServer.service(HttpServer.java:879)
> 	at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
> 	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
> 	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
> 	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
> 	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
> 	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
> Caused by: org.mozilla.javascript.WrappedException: Wrapped
> org.apache.cocoon.ProcessingException: Sitemap: error calling continuation
> 	at <map:call> - file:/home/philou/public_html/sitemap.xmap:24:66
> 	at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1776)
> 	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:191)
> 	at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:456)
> 	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:3026)
> 	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164)
> 	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140)
> 	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304)
> 	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:140)
> 	at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:912)
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:766)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:138)
> 	... 35 more
> Caused by: org.apache.cocoon.ProcessingException: Sitemap: error calling
> continuation
> 	at <map:call> - file:/home/philou/public_html/sitemap.xmap:24:66
> 	at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:102)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:125)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:102)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.handleCocoonRedirect(ConcreteTreeProcessor.java:298)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.access$000(ConcreteTreeProcessor.java:47)
> 	at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:339)
> 	at
> org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:59)
> 	at
> org.apache.cocoon.components.flow.AbstractInterpreter.forwardTo(AbstractInterpreter.java:209)
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.forwardTo(FOM_JavaScriptInterpreter.java:914)
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.forwardTo(FOM_Cocoon.java:698)
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsFunction_sendPage(FOM_Cocoon.java:269)
> 	at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:174)
> 	... 46 more
> Caused by: 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:1776)
> 	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:191)
> 	at org.mozilla.javascript.ScriptableObject.getByGetter(ScriptableObject.java:1617)
> 	at org.mozilla.javascript.ScriptableObject.get(ScriptableObject.java:177)
> 	at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1263)
> 	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1332)
> 	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1321)
> 	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2744)
> 	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164)
> 	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140)
> 	at org.mozilla.javascript.Context.call(Context.java:497)
> 	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1496)
> 	at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1466)
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:861)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:123)
> 	... 67 more
> Caused by: java.lang.NullPointerException
> 	at
> org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsGet_continuation(FOM_Cocoon.java:252)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:174)
> 	... 80 more
> Note that this error occurs with rhino 1.6r1 (taken from cocoon trunk svn),
> rhino 1.6r1 taken from mozilla.org and the cvs head from mozilla.org, but is
> working with rhino1.5r4-continuations-R26.jar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message