cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Soddemann <Thomas.Soddem...@rzg.mpg.de>
Subject Re: EmptyStackException javaflow
Date Thu, 11 Aug 2005 07:37:39 GMT
Hi,

since nobody has answered this yet,
I guess you have to write

public void doSave(){
        try {
            var parameters = getParameters();
            var project = parameters.getParameter( "project" );
            var report = parameters.getParameter( "report" );
	    // alternatively you probably could use
            // var project = cocoon.parameters["project"];
            // var report = cocoon.parameters["report"];
            sendPageAndWait( "saveDialog/" + project + "/" + report );
            if( logger.isDebugEnabled() ){
                logger.debug( "Back from send page and wait, now going
to save report" );
            }
            sendPage( "saveReport/" + project + "/" + report );
        }catch( Exception e ){
            logger.error( "There was an error in doing save", e );
        }
    }

Cheers,
Thomas

Irv Salisbury wrote:

>I am getting an EmptyStackException utilizing javaflow and sendPageAndWait.
>
>Here is the actual exception:
>
>java.util.EmptyStackException
>	at org.apache.cocoon.components.flow.java.ContinuationStack.popInt(ContinuationStack.java:85)
>	at com.dotech.cocoon.flow.reports.adhoc.MainFlow.doSave(MainFlow.java)
>	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.apache.cocoon.components.flow.java.JavaInterpreter.handleContinuation(JavaInterpreter.java:248)
>	at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:123)
>	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
>
>Here is the code in our method:
>
>    public void doSave(){
>        try {
>            Parameters parameters = getParameters();
>            String project = parameters.getParameter( "project" );
>            String report = parameters.getParameter( "report" );
>            sendPageAndWait( "saveDialog/" + project + "/" + report );
>            if( logger.isDebugEnabled() ){
>                logger.debug( "Back from send page and wait, now going
>to save report" );
>            }
>            sendPage( "saveReport/" + project + "/" + report );
>        }catch( Exception e ){
>            logger.error( "There was an error in doing save", e );
>        }
>    }
>
>Basically, the saveDialog method shows a regular form (no cforms) 
>Inside there, I submit back to a continuation id that I get utilizing
>the following:
>
>      <map:match pattern="saveDialog/*/*">
>	  <map:generate src="cocoon:/reuse-basic/{1}/{2}/none" label="raw"/>
>	  <map:transform src="stylesheets/{global:skin}/saveDialog.xsl" type="xslt">
>               <map:parameter name="continuationId"
>value="{flow-continuation:id}"/>
>          </map:transform>
>          <map:serialize type="html"/>
>      </map:match>
>
>It is upon submission of the form that I get the exception.  I am
>using javaflow.  Any help would be greatly appreciated.
>
>Irv
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message