Details

    • Type: Bug Bug
    • Status: Continued
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.7
    • Fix Version/s: None
    • Component/s: Blocks: Java Flow
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other

      Description

      I get an error whenever I include an <fd:selection-list src="cocoon:/XYZ"> where
      both the form and the XYZ pipeline use JavaFlow. The error is:

      No continuation is running
      cause: java.lang.IllegalStateException: No continuation is running
      java.lang.IllegalStateException: No continuation is running
      at
      org.apache.cocoon.components.flow.java.Continuation.suspend(Continuation.java:79)
      at
      org.apache.cocoon.components.flow.java.AbstractContinuable.sendPageAndWait(AbstractContinuable.java:75)
      at org.apache.cocoon.forms.flow.java.FormInstance.show(FormInstance.java:181)

      The reason is that when cocoon:/XYZ runs, a continuation is created for the same
      thread as the form continuation. The continuationsmap in Continuation class gets
      overwritten. When cocoon:/XYZ returns, the map is cleared for the thread,
      leaving no continuation for the form.

      Here's a bit of code from the app to help explain.

      The form contains a selection list defined as:
      <fd:field id="user">
         <fd:datatype base="string"/>
         <fd:selection-list src="cocoon:/UserSelectList" dynamic="true"/>
      </fd:field>

      The sitemap contains:
      <map:match pattern="UserSelectList">
         <map:call function="generateUserList"/>
      </map:match>

      Then I have the following JavaFlow
      public void doGenerateUserList() throws Exception {
         Collection userList = databaseManager.getUserList();
         sendPage("user_list", new VarMap().add("list", userList) );
      }

        Activity

        Benoit Deshaies created issue -
        Jeff Turner made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 37187 12324964
        Pier Fumagalli made changes -
        Workflow jira [ 12341399 ] Cocoon Workflow [ 12341408 ]
        Reinhard Poetz made changes -
        Bugzilla Id 37187
        Component/s Blocks: Java Flow [ 12310468 ]
        Component/s Blocks: (Undefined) [ 12310440 ]
        Description I get an error whenever I include an <fd:selection-list src="cocoon:/XYZ"> where
        both the form and the XYZ pipeline use JavaFlow. The error is:

        No continuation is running
        cause: java.lang.IllegalStateException: No continuation is running
        java.lang.IllegalStateException: No continuation is running
        at
        org.apache.cocoon.components.flow.java.Continuation.suspend(Continuation.java:79)
        at
        org.apache.cocoon.components.flow.java.AbstractContinuable.sendPageAndWait(AbstractContinuable.java:75)
        at org.apache.cocoon.forms.flow.java.FormInstance.show(FormInstance.java:181)

        The reason is that when cocoon:/XYZ runs, a continuation is created for the same
        thread as the form continuation. The continuationsmap in Continuation class gets
        overwritten. When cocoon:/XYZ returns, the map is cleared for the thread,
        leaving no continuation for the form.

        Here's a bit of code from the app to help explain.

        The form contains a selection list defined as:
        <fd:field id="user">
           <fd:datatype base="string"/>
           <fd:selection-list src="cocoon:/UserSelectList" dynamic="true"/>
        </fd:field>

        The sitemap contains:
        <map:match pattern="UserSelectList">
           <map:call function="generateUserList"/>
        </map:match>

        Then I have the following JavaFlow
        public void doGenerateUserList() throws Exception {
           Collection userList = databaseManager.getUserList();
           sendPage("user_list", new VarMap().add("list", userList) );
        }
        I get an error whenever I include an <fd:selection-list src="cocoon:/XYZ"> where
        both the form and the XYZ pipeline use JavaFlow. The error is:

        No continuation is running
        cause: java.lang.IllegalStateException: No continuation is running
        java.lang.IllegalStateException: No continuation is running
        at
        org.apache.cocoon.components.flow.java.Continuation.suspend(Continuation.java:79)
        at
        org.apache.cocoon.components.flow.java.AbstractContinuable.sendPageAndWait(AbstractContinuable.java:75)
        at org.apache.cocoon.forms.flow.java.FormInstance.show(FormInstance.java:181)

        The reason is that when cocoon:/XYZ runs, a continuation is created for the same
        thread as the form continuation. The continuationsmap in Continuation class gets
        overwritten. When cocoon:/XYZ returns, the map is cleared for the thread,
        leaving no continuation for the form.

        Here's a bit of code from the app to help explain.

        The form contains a selection list defined as:
        <fd:field id="user">
           <fd:datatype base="string"/>
           <fd:selection-list src="cocoon:/UserSelectList" dynamic="true"/>
        </fd:field>

        The sitemap contains:
        <map:match pattern="UserSelectList">
           <map:call function="generateUserList"/>
        </map:match>

        Then I have the following JavaFlow
        public void doGenerateUserList() throws Exception {
           Collection userList = databaseManager.getUserList();
           sendPage("user_list", new VarMap().add("list", userList) );
        }
        Jean-Baptiste Quenot made changes -
        Status Open [ 1 ] On Hold [ 10000 ]
        Simone Gianni made changes -
        Attachment javaflow-continuationstack.diff [ 12324854 ]
        Jörg Heinicke made changes -
        Status On Hold [ 10000 ] Continued [ 10001 ]
        Mark Thomas made changes -
        Assignee Cocoon Developers Team [ cocoon ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Benoit Deshaies
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development