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 37187] New: - JavaFlow/CForm/select-list crash
Date Thu, 20 Oct 2005 19:20:12 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=37187>.
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=37187

           Summary: JavaFlow/CForm/select-list crash
           Product: Cocoon 2
           Version: 2.1.7
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: blocks
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: bdeshaies@yahoo.com


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) );
}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message