You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Carlos Chávez <cc...@agssa.net> on 2003/10/07 18:20:38 UTC

woody block: Failed to execute pipeline.: java.util.EmptyStackException

 Hi to all,

 i'm working with woody,
 i'm using WoodyTemplateTransformer,
 when the first time i execute one form this work fine, validation is ok
 etc,
 but the second time i execute other diferent form and i try to submit
 this form this is the message is show me and every form is execute after
 shown this message too, this happen in the woody form examples:

 Internal Server Error

Message: Failed to execute pipeline.

Description: org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: java.util.EmptyStackException

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet

Request URI

582753205b63194d165212306b871064134e683c.continue

cause

java.util.EmptyStackException

request-uri

/sga/582753205b63194d165212306b871064134e683c.continue

full exception chain stacktrace

Original Exception: java.util.EmptyStackException
	at org.apache.xml.utils.IntStack.peek(IntStack.java:163)
	at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.comment(SAX2DTM.java:2486)
	at
org.apache.xalan.transformer.TransformerHandlerImpl.comment(TransformerHandlerImpl.java:933)
	at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265)
	at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265)
	at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265)
	at
org.apache.cocoon.woody.transformation.WidgetReplacingPipe.comment(WidgetReplacingPipe.java:465)
	at org.apache.cocoon.components.sax.XMLTeePipe.comment(XMLTeePipe.java:186)
	at
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:159)
	at
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:110)
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:270)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:492)
	at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:161)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:351)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.handleCocoonRedirect(TreeProcessor.java:408)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:360)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:304)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:640)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:534)


stacktrace

org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.util.EmptyStackException
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:293)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:492)
	at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:161)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:351)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.handleCocoonRedirect(TreeProcessor.java:408)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:360)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:304)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:640)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:534)
Caused by: java.util.EmptyStackException
	at org.apache.xml.utils.IntStack.peek(IntStack.java:163)
	at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.comment(SAX2DTM.java:2486)
	at
org.apache.xalan.transformer.TransformerHandlerImpl.comment(TransformerHandlerImpl.java:933)
	at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265)
	at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265)
	at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265)
	at
org.apache.cocoon.woody.transformation.WidgetReplacingPipe.comment(WidgetReplacingPipe.java:465)
	at org.apache.cocoon.components.sax.XMLTeePipe.comment(XMLTeePipe.java:186)
	at
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:159)
	at
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:110)
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:270)
	... 44 more
java.util.EmptyStackException
	at org.apache.xml.utils.IntStack.peek(IntStack.java:163)
	at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.comment(SAX2DTM.java:2486)
	at
org.apache.xalan.transformer.TransformerHandlerImpl.comment(TransformerHandlerImpl.java:933)
	at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265)
	at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265)
	at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265)
	at
org.apache.cocoon.woody.transformation.WidgetReplacingPipe.comment(WidgetReplacingPipe.java:465)
	at org.apache.cocoon.components.sax.XMLTeePipe.comment(XMLTeePipe.java:186)
	at
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:159)
	at
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:110)
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:270)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:492)
	at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:161)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:351)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.handleCocoonRedirect(TreeProcessor.java:408)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:360)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:304)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:640)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:534)

Apache Cocoon 2.1.3-dev

-- 
Carlos Chávez
AG Software, S.A.
776-8344
267-3007



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


Re: woody block: Failed to execute pipeline.: java.util.EmptyStackException

Posted by Carlos Chávez <cc...@agsoftware.dnsalias.com>.
Bruno Dumon Escribio :-)


> Could you guys try if changing the "reuse-parsers" parameter in the
> cocoon.xconf to false helps? It seems to do the trick, but I'm unable to
> reproduce the error reliably so I need some confirmation on that.

  Hi bruno,

  Thank for you help.

  we change the parameter to false and all work fine again.

  Antonio Gallardo made the commit to the CVS.

  Thank again for your tip.

  Carlos Chavez



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


Re: woody block: Failed to execute pipeline.: java.util.EmptyStackException

Posted by Bruno Dumon <br...@outerthought.org>.
On Thu, 2003-10-09 at 20:59, Bruno Dumon wrote:
> On Thu, 2003-10-09 at 20:30, Tony Collen wrote:
> > Bruno Dumon wrote:
> > > On Tue, 2003-10-07 at 18:20, Carlos Chávez wrote:
> > > 
> > >> Hi to all,
> > >>
> > >> i'm working with woody,
> > >> i'm using WoodyTemplateTransformer,
> > >> when the first time i execute one form this work fine, validation is ok
> > >> etc,
> > >> but the second time i execute other diferent form and i try to submit
> > >> this form this is the message is show me and every form is execute after
> > >> shown this message too, this happen in the woody form examples:
> > 
> > 
> > I've recently gotten this same thing, in fact, with the Woody samples.
> > 
> > Running current CVS and "cocoon servlet" :
> > 
> > 1. Browse to http://localhost:8888/
> > 2. Samples -> Blocks w/Samples -> Woody
> > 3. Click on "Flowscript" under "Basic Samples"
> > 4. Click on "form1 action page" to switch to the CSS tab view
> > 5. I either get an EmptyStackException here, or after submitting to add 
> > a new row.
> > 
> > Hope this helps, somehow :)
> 
> Ok, thanks, now I'm also able to reproduce the error, though not
> precisely as you mention here. I seem to only get it with the flow
> examples. Will look a bit closer at it...

scrap that, it just pops up randomly, but once a form is infected it
keeps giving the error. Strangely enough the logtransformer shows me
that a comment from the XSL pops up in the pipeline SAX events...

Could you guys try if changing the "reuse-parsers" parameter in the
cocoon.xconf to false helps? It seems to do the trick, but I'm unable to
reproduce the error reliably so I need some confirmation on that.

I remeber Stefano & Sylvain wondering about why it was set to false on
the hackaton and changing it... we may just have found the reason ;-)
(see also bugzilla 22795)

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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


Re: woody block: Failed to execute pipeline.: java.util.EmptyStackException

Posted by Bruno Dumon <br...@outerthought.org>.
On Thu, 2003-10-09 at 20:30, Tony Collen wrote:
> Bruno Dumon wrote:
> > On Tue, 2003-10-07 at 18:20, Carlos Chávez wrote:
> > 
> >> Hi to all,
> >>
> >> i'm working with woody,
> >> i'm using WoodyTemplateTransformer,
> >> when the first time i execute one form this work fine, validation is ok
> >> etc,
> >> but the second time i execute other diferent form and i try to submit
> >> this form this is the message is show me and every form is execute after
> >> shown this message too, this happen in the woody form examples:
> 
> 
> I've recently gotten this same thing, in fact, with the Woody samples.
> 
> Running current CVS and "cocoon servlet" :
> 
> 1. Browse to http://localhost:8888/
> 2. Samples -> Blocks w/Samples -> Woody
> 3. Click on "Flowscript" under "Basic Samples"
> 4. Click on "form1 action page" to switch to the CSS tab view
> 5. I either get an EmptyStackException here, or after submitting to add 
> a new row.
> 
> Hope this helps, somehow :)

Ok, thanks, now I'm also able to reproduce the error, though not
precisely as you mention here. I seem to only get it with the flow
examples. Will look a bit closer at it...

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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


Re: woody block: Failed to execute pipeline.: java.util.EmptyStackException

Posted by Tony Collen <co...@umn.edu>.
Bruno Dumon wrote:
> On Tue, 2003-10-07 at 18:20, Carlos Chávez wrote:
> 
>> Hi to all,
>>
>> i'm working with woody,
>> i'm using WoodyTemplateTransformer,
>> when the first time i execute one form this work fine, validation is ok
>> etc,
>> but the second time i execute other diferent form and i try to submit
>> this form this is the message is show me and every form is execute after
>> shown this message too, this happen in the woody form examples:


I've recently gotten this same thing, in fact, with the Woody samples.

Running current CVS and "cocoon servlet" :

1. Browse to http://localhost:8888/
2. Samples -> Blocks w/Samples -> Woody
3. Click on "Flowscript" under "Basic Samples"
4. Click on "form1 action page" to switch to the CSS tab view
5. I either get an EmptyStackException here, or after submitting to add 
a new row.

Hope this helps, somehow :)

Tony


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


Re: woody block: Failed to execute pipeline.: java.util.EmptyStackException

Posted by Carlos Chávez <cc...@agssa.net>.
Bruno Dumon Escribio :-)
> On Thu, 2003-10-09 at 18:06, Carlos Chávez wrote:
>> Bruno Dumon Escribio :-)
>> > On Tue, 2003-10-07 at 18:20, Carlos Chávez wrote:
>> >>  Hi to all,
>> >>
>> >>  i'm working with woody,
>> >>  i'm using WoodyTemplateTransformer,
>> >>  when the first time i execute one form this work fine, validation
>> is
>> >> ok etc,
>> >>  but the second time i execute other diferent form and i try to
>> submit
>> >> this form this is the message is show me and every form is execute
>> after shown this message too, this happen in the woody form
>> examples:
>> > <snipped message/>
>> >
>> > Hi Carlos,
>> >
>> > I don't know immediately what's causing this, but it would help if
>> you could post the relevant sitemap snippet, the form definition and
>> the form template.
>>
>>   hi bruno, i hope the following information help us.
> <snipped the information/>
>
> Hmmm... the stacktrace you send earlier showed the error occured from a
> comment SAX event, which the WoodyTemplateTransformer simply passes on
> from its input, which is the output of the filegenerator reading the
> template file.
>
> Strangely enough, in the templates you posted here I saw no comments at
> all, so I'm wondering where that came from. Did you maybe remove them?

  Hi Bruno,

  This template do not have any comment because i write then
  and is only for test, we in process to made an application
  that use woody.

>
> Given the fact that the error always occurs on the second call, I'm
> wondering if maybe the problem is caused by the caching, but I wouldn't
> know what.

  not it is.

>
> --
> Bruno Dumon                             http://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> bruno@outerthought.org                          bruno@apache.org
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


-- 
Carlos Chávez
AG Software, S.A.
776-8344
267-3007



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


Re: woody block: Failed to execute pipeline.: java.util.EmptyStackException

Posted by Bruno Dumon <br...@outerthought.org>.
On Thu, 2003-10-09 at 18:06, Carlos Chávez wrote:
> Bruno Dumon Escribio :-)
> > On Tue, 2003-10-07 at 18:20, Carlos Chávez wrote:
> >>  Hi to all,
> >>
> >>  i'm working with woody,
> >>  i'm using WoodyTemplateTransformer,
> >>  when the first time i execute one form this work fine, validation is
> >> ok etc,
> >>  but the second time i execute other diferent form and i try to submit
> >> this form this is the message is show me and every form is execute
> >> after shown this message too, this happen in the woody form examples:
> > <snipped message/>
> >
> > Hi Carlos,
> >
> > I don't know immediately what's causing this, but it would help if you
> > could post the relevant sitemap snippet, the form definition and the
> > form template.
> 
>   hi bruno, i hope the following information help us.
<snipped the information/>

Hmmm... the stacktrace you send earlier showed the error occured from a
comment SAX event, which the WoodyTemplateTransformer simply passes on
from its input, which is the output of the filegenerator reading the
template file.

Strangely enough, in the templates you posted here I saw no comments at
all, so I'm wondering where that came from. Did you maybe remove them?

Given the fact that the error always occurs on the second call, I'm
wondering if maybe the problem is caused by the caching, but I wouldn't
know what.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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


Re: woody block: Failed to execute pipeline.: java.util.EmptyStackException

Posted by Carlos Chávez <cc...@agsoftware.dnsalias.com>.
Bruno Dumon Escribio :-)
> On Tue, 2003-10-07 at 18:20, Carlos Chávez wrote:
>>  Hi to all,
>>
>>  i'm working with woody,
>>  i'm using WoodyTemplateTransformer,
>>  when the first time i execute one form this work fine, validation is
>> ok etc,
>>  but the second time i execute other diferent form and i try to submit
>> this form this is the message is show me and every form is execute
>> after shown this message too, this happen in the woody form examples:
> <snipped message/>
>
> Hi Carlos,
>
> I don't know immediately what's causing this, but it would help if you
> could post the relevant sitemap snippet, the form definition and the
> form template.

  hi bruno, i hope the following information help us.

  I have the following directory structure:
  /sga
      /docs
           /vendedor
                    /create
                            -bind.xml
                            -definition.xml
                            -flow.js
                            -template.xml
                    /search
                            -bind.xml
                            -definition.xml
                            -flow.js
                            -template.xml
                    -sitemap.xmap
      -sitemap.xmap

  option "create":
    form definition:
     <?xml version="1.0"?>
     <wd:form
       xmlns:wd="http://apache.org/cocoon/woody/definition/1.0"
       xmlns:i18n="http://apache.org/cocoon/i18n/2.1">

       <wd:field id="vendedor_nombre" required="true">
       <wd:label>Vendedor:</wd:label>
           <wd:datatype base="string">
                <wd:validation>
		   <wd:length min="5" max="50"/>
	        </wd:validation>
           </wd:datatype>
        </wd:field>
      </wd:form>

     form template:
      <?xml version="1.0"?>
      <document menu="true"
        xmlns:wt="http://apache.org/cocoon/woody/template/1.0"
        xmlns:wi="http://apache.org/cocoon/woody/instance/1.0">
        <header>
           <title>Vendedores</title>
        </header>
        <body>
          <s1 title="Vendedor">
            <br/>
            <wt:form-template action="#{$continuation/id}.continue"
             method="POST">
                <wt:widget-label id="vendedor_nombre"/>
                <wt:widget id="vendedor_nombre"/>
                <br/><br/>
                <input type="submit"/>
            </wt:form-template>
           </s1>
        </body>
       </document>

      flow:
cocoon.load("resource://org/apache/cocoon/woody/flow/javascript/woody2.js");

      function createform(form) {
          form.showForm("create-form-display");
          cocoon.request.setAttribute("createform", form.getWidget());
          cocoon.sendPage("create");
       }

      binding file:
      <?xml version="1.0"?>
      <wb:context xmlns:wb="http://apache.org/cocoon/woody/binding/1.0"
        path="/" >
        <wb:value id="vendedor_nombre" path="vendedor_nombre"/>
      </wb:context>

   option "search":
   definition form:
     <?xml version="1.0"?>
     <wd:form
       xmlns:wd="http://apache.org/cocoon/woody/definition/1.0"
       xmlns:i18n="http://apache.org/cocoon/i18n/2.1">

       <wd:field id="vendedor_nombre">
       <wd:label>Vendedor:</wd:label>
       <wd:datatype base="string"/>
       </wd:field>
    </wd:form>

    the template form is the same.
    the binding file is the same.

    flow:    
cocoon.load("resource://org/apache/cocoon/woody/flow/javascript/woody2.js");

    function searchform(form) {
       form.showForm("search-form-display");
       cocoon.request.setAttribute("searchform", form.getWidget());
       cocoon.sendPage("search");
     }

and this is the subsitemap:

<?xml version="1.0" encoding="UTF-8"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

<map:flow language="javascript">
    <map:script src="forms/create/flow.js"/>
    <map:script src="forms/search/flow.js"/>
</map:flow>

<map:pipelines>
    <map:pipeline>
        <map:match pattern="*-form-display">
            <map:generate src="forms/{1}/template.xml"/>
            <map:transform type="woody"/>
            <map:transform type="i18n"/>
            <map:transform src="context://stylesheets/agssa.xsl"/>
            <map:transform
src="context://resources/woody/woody-samples-styling.xsl"/>
            <map:transform type="i18n"/>
            <map:transform type="encodeURL"/>
            <map:serialize/>
        </map:match>

        <map:match pattern="*.continue">
            <map:call continuation="{1}"/>
        </map:match>

        <map:match pattern="*">
            <map:call function="woody">
                <map:parameter name="function" value="{1}form"/>
                <map:parameter name="form-definition"
value="forms/{1}/definition.xml"/>
                <map:parameter name="bindingURI" value="forms/{1}/bind.xml"/>
                <map:parameter name="attribute-name" value="{1}form"/>
            </map:call>
        </map:match>
    </map:pipeline>
</map:pipelines>
</map:sitemap>

my main sitemap is the same sitemap of the cocoon.war file compiled.

 when i'm execute "create" option all is ok, validation, show form,
 submit, the following form in execute is "search" is show fine, but
 when i submit the form send the message of error, after certain time no
 wants to work and sends the same message of error for all forms.

 cheers,
 thank for your help.

>
> --
> Bruno Dumon                             http://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> bruno@outerthought.org                          bruno@apache.org
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


-- 
Carlos Chávez



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


Re: woody block: Failed to execute pipeline.: java.util.EmptyStackException

Posted by Bruno Dumon <br...@outerthought.org>.
On Tue, 2003-10-07 at 18:20, Carlos Chávez wrote:
>  Hi to all,
> 
>  i'm working with woody,
>  i'm using WoodyTemplateTransformer,
>  when the first time i execute one form this work fine, validation is ok
>  etc,
>  but the second time i execute other diferent form and i try to submit
>  this form this is the message is show me and every form is execute after
>  shown this message too, this happen in the woody form examples:
<snipped message/>

Hi Carlos,

I don't know immediately what's causing this, but it would help if you
could post the relevant sitemap snippet, the form definition and the
form template.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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