cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Poetz (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COCOON-2179) Exception generator doesn't work properly
Date Thu, 20 Mar 2008 06:54:24 GMT

    [ https://issues.apache.org/jira/browse/COCOON-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580682#action_12580682
] 

Reinhard Poetz commented on COCOON-2179:
----------------------------------------

Looking at the currently failing integration tests I think that we really have a problem with
the environment cleanup (as being guessed by Grek):

-------------------------------------------------------------------------------
Test set: org.apache.cocoon.it.servletservice.SubSitemaps
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.51 sec <<< FAILURE!
testSimplePipelineFromSubSitemap(org.apache.cocoon.it.servletservice.SubSitemaps)  Time elapsed:
0.45 sec  <<< ERROR!
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 Generator already set. Cannot
set generator 'file'     at <map:generate> - /blocks/cocoon-servlet-service-sample/test1/sub/sitemap.xmap:26:39
    at <map:match> - /blocks/cocoon-servlet-service-sample/test1/sub/sitemap.xmap:25:33
    at <map:mount> - /blocks/cocoon-servlet-service-sample/test1/sitemap.xmap:83:49
    at <map:match> - /blocks/cocoon-servlet-service-sample/test1/sitemap.xmap:82:35
for http://localhost:8888/cocoon-servlet-service-sample1/sub/test
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:346)


This only happens when I run the integrationt tests but not when I access the URL directly
with a browser :-/ 

> Exception generator doesn't work properly
> -----------------------------------------
>
>                 Key: COCOON-2179
>                 URL: https://issues.apache.org/jira/browse/COCOON-2179
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Reinhard Poetz
>            Priority: Blocker
>
> I run across some obscure behaviour, when I use the exception generator: The problem
is that it only works every second request.
> When it fails, following exception is thrown:
> Caused by: org.apache.cocoon.ProcessingException: Generator already set. Cannot set genera
> tor 'exception'
>         at <map:generate type="exception"> - file:///F:/os/cocoon/trunk/blocks/cocoon-it/.
> /src/main/resources/COB-INF/sitemap.xmap:211:43
>         at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setGenerator(A
> bstractProcessingPipeline.java:205)
> I don't remember that I have seen this with RC2. 
> I added a sample to cocoon-it and a test case to cocoon-webapp (org.apache.cocoon.it.sitemap.ErrorHandlingTest).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message