Cocoon
  1. Cocoon
  2. COCOON-1579

Continuation, sendPage and Rhino 1.6r1

    Details

    • Type: Bug Bug
    • Status: Continued
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.8, 2.1.9, 2.1.10, 2.1.11
    • Fix Version/s: None
    • Component/s: - Flowscript
    • Labels:
      None
    • Environment:
      Operating System: Linux
      Platform: PC

      Description

      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

        Activity

        Philippe Gassmann created issue -
        Jeff Turner made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 36322 12324888
        Pier Fumagalli made changes -
        Workflow jira [ 12341323 ] Cocoon Workflow [ 12341446 ]
        Jean-Baptiste Quenot made changes -
        Assignee Cocoon Developers Team [ cocoon ] Jean-Baptiste Quenot [ jbq ]
        Jean-Baptiste Quenot made changes -
        Assignee Jean-Baptiste Quenot [ jbq ]
        Carsten Ziegeler made changes -
        Status Open [ 1 ] On Hold [ 10000 ]
        Antonio Gallardo made changes -
        Affects Version/s 2.1.9 [ 12310650 ]
        Affects Version/s 2.1.10 [ 12310931 ]
        Antonio Gallardo made changes -
        Status On Hold [ 10000 ] Continued [ 10001 ]
        Jeroen Reijn made changes -
        Affects Version/s 2.1.11 [ 12312231 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Philippe Gassmann
          • Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:

              Development