You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Steven D. Majewski" <sd...@virginia.edu> on 2007/01/16 00:27:45 UTC
java.lang.IllegalStateException: Pipeline has already been processed for this request
OK: I've managed to find (I think) what caused this error, but I'm
hoping someone
can explain what exactly it means to me:
java.lang.IllegalStateException: Pipeline has already been
processed for this request
I was debugging some flowscript, and I stuck in a sendPageAndWait()
call to a template
page to show me some intermediate values. When my values were not
showing up, I changed
it to a sendPage(). [ I did this because when it wasn't working, I
looked at another
place where I called the same pipeline and it worked, and there I was
calling sendPage(),
so I changed it to follow more closely what I knew was working code. ]
I got the above error, I couldn't figure out what it meant.
I tried a number of things, including stoping and restarting tomcat
+cocoon.
Eventually, I put back the sendPageAndWait() and it started working
again.
Can someone explain what happened and what that message above means ?
-- Steve Majewski - University of Virginia Alderman Library
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: java.lang.IllegalStateException: Pipeline has already been processed for this request
Posted by "Steven D. Majewski" <sd...@virginia.edu>.
On Jan 15, 2007, at 6:46 PM, Joerg Heinicke wrote:
> On 16.01.2007 00:27, Steven D. Majewski wrote:
>
>> java.lang.IllegalStateException: Pipeline has already been
>> processed for this request
>
>> Can someone explain what happened and what that message above means ?
>
> The message itself means that you try to send a second response on
> one request. From your description I guess the sendPage() results
> in the first response. As the flow is not interrupted by a
> sendPageAnd*Wait*() it continues the processing and will probably
> come to a second sendPage() which again results in a response. This
> will then cause the above exception. It's only a guess, but sounds
> reasonable, doesn't it ;)
>
> Jörg
>
Thanks. Yes, that makes perfect sense.
I've been using flowscript in a couple of pipelines,
but I'm just starting to try to use the 'flow' part.
For some strange reason, I wasn't thinking about the
possibility that the script would keep running after
the page was sent.
BTW: I think the original bug I was hitting was another
instance of Java strings vs. Javascript strings.
I'm guessing that parameters must be Java strings.
-- Steve Majewski - University of Virginia Alderman Library
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: java.lang.IllegalStateException: Pipeline has already been processed
for this request
Posted by Joerg Heinicke <jo...@gmx.de>.
On 16.01.2007 00:27, Steven D. Majewski wrote:
> java.lang.IllegalStateException: Pipeline has already been processed
> for this request
> Can someone explain what happened and what that message above means ?
The message itself means that you try to send a second response on one
request. From your description I guess the sendPage() results in the
first response. As the flow is not interrupted by a sendPageAnd*Wait*()
it continues the processing and will probably come to a second
sendPage() which again results in a response. This will then cause the
above exception. It's only a guess, but sounds reasonable, doesn't it ;)
Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org