jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tarek M. Nabil" <Tarek.Na...@itworx.com>
Subject Strange Problem
Date Sun, 16 Nov 2003 13:36:20 GMT
Hi everyone,

I'm new to Cactus. I'm developing my first test case and experiencing a very strange problem. When I put my real test alone in the TestCase, it fails with the following in the report (I replaced my package name with blabla)

<report>

Testsuite: blabla.charm.web.FlowFilterTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.563 sec

Testcase: testUnAuthorized took 1.563 sec
	Caused an ERROR
Failed to get the test results at [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector]
org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results at [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector]
	at org.apache.cactus.client.connector.http.DefaultHttpClient.dispatch49_doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:131)
	at org.apache.cactus.client.connector.http.DefaultHttpClient.around49_doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1222)
	at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:334)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:282)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:258)
	at org.apache.cactus.FilterTestCase.runTest(FilterTestCase.java:291)
	at org.apache.cactus.FilterTestCase.runBare(FilterTestCase.java:253)
org.apache.cactus.client.ParsingException: Not a valid response [500 Internal Server Error]
	at org.apache.cactus.client.connector.http.DefaultHttpClient.callGetResult(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:251)
	at org.apache.cactus.client.connector.http.DefaultHttpClient.dispatch49_doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:126)
	at org.apache.cactus.client.connector.http.DefaultHttpClient.around49_doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1222)
	at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:334)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:282)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:258)
	at org.apache.cactus.FilterTestCase.runTest(FilterTestCase.java:291)
	at org.apache.cactus.FilterTestCase.runBare(FilterTestCase.java:253)

</report>

Testcase: testUnAuthorized

Yet, if I include a trivial test which almost does nothing before it, it passes with the following report.

<report>

Testsuite: standish.charm.web.FlowFilterTest
Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.501 sec

Testcase: testTrivial took 0.381 sec
Testcase: testUnAuthorized took 0.12 sec

</report>

Here are the logs for the first case (when the test fails)

<log>

DEBUG 2003-11-16 15:24:17,819 org.apache.cactus.server.FilterTestRedirector - <init([ApplicationFilterConfig[name=FilterRedirector, filterClass=org.apache.cactus.server.FilterTestRedirector]])
DEBUG 2003-11-16 15:24:17,819 org.apache.cactus.server.FilterTestRedirector - >init
DEBUG 2003-11-16 15:24:18,770 org.apache.cactus.server.ServletTestRedirector - <doGet([org.apache.catalina.connector.HttpRequestFacade@3411a], [org.apache.catalina.connector.HttpResponseFacade@27508a])
DEBUG 2003-11-16 15:24:18,770 org.apache.cactus.server.ServletTestRedirector - <doPost([org.apache.catalina.connector.HttpRequestFacade@3411a], [org.apache.catalina.connector.HttpResponseFacade@27508a])
DEBUG 2003-11-16 15:24:18,770 org.apache.cactus.server.ServletTestRedirector - ------------- Start Servlet service
DEBUG 2003-11-16 15:24:18,780 org.apache.cactus.server.ServletImplicitObjects - <setHttpServletRequest([org.apache.catalina.connector.HttpRequestFacade@3411a])
DEBUG 2003-11-16 15:24:18,780 org.apache.cactus.server.ServletImplicitObjects - >setHttpServletRequest
DEBUG 2003-11-16 15:24:18,780 org.apache.cactus.server.ServletImplicitObjects - <setHttpServletResponse([org.apache.catalina.connector.HttpResponseFacade@27508a])
DEBUG 2003-11-16 15:24:18,780 org.apache.cactus.server.ServletImplicitObjects - >setHttpServletResponse
DEBUG 2003-11-16 15:24:18,780 org.apache.cactus.server.ServletImplicitObjects - <setServletContext([org.apache.catalina.core.ApplicationContextFacade@2bc3f5])
DEBUG 2003-11-16 15:24:18,780 org.apache.cactus.server.ServletImplicitObjects - >setServletContext
DEBUG 2003-11-16 15:24:18,780 org.apache.cactus.server.ServletImplicitObjects - <setServletConfig([org.apache.catalina.core.StandardWrapperFacade@4e3f41])
DEBUG 2003-11-16 15:24:18,780 org.apache.cactus.server.ServletImplicitObjects - >setServletConfig
DEBUG 2003-11-16 15:24:18,790 org.apache.cactus.server.ServletTestController - <handleRequest([org.apache.cactus.server.ServletImplicitObjects@4ecfdd])
DEBUG 2003-11-16 15:24:18,800 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_Service=RUN_TEST], [Cactus_Service])
DEBUG 2003-11-16 15:24:18,800 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [RUN_TEST]
DEBUG 2003-11-16 15:24:18,800 org.apache.cactus.server.AbstractWebTestController - Service to call = RUN_TEST
DEBUG 2003-11-16 15:24:18,820 org.apache.cactus.ServiceEnumeration - <valueOf([RUN_TEST])
DEBUG 2003-11-16 15:24:18,820 org.apache.cactus.ServiceEnumeration - >valueOf = [RUN_TEST]
DEBUG 2003-11-16 15:24:18,820 org.apache.cactus.server.ServletTestController - >handleRequest
DEBUG 2003-11-16 15:24:18,820 org.apache.cactus.server.ServletTestRedirector - >doPost
DEBUG 2003-11-16 15:24:18,820 org.apache.cactus.server.ServletTestRedirector - >doGet
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletTestRedirector - <doGet([org.apache.catalina.connector.HttpRequestFacade@3411a], [org.apache.catalina.connector.HttpResponseFacade@27508a])
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletTestRedirector - <doPost([org.apache.catalina.connector.HttpRequestFacade@3411a], [org.apache.catalina.connector.HttpResponseFacade@27508a])
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletTestRedirector - ------------- Start Servlet service
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletImplicitObjects - <setHttpServletRequest([org.apache.catalina.connector.HttpRequestFacade@3411a])
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletImplicitObjects - >setHttpServletRequest
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletImplicitObjects - <setHttpServletResponse([org.apache.catalina.connector.HttpResponseFacade@27508a])
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletImplicitObjects - >setHttpServletResponse
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletImplicitObjects - <setServletContext([org.apache.catalina.core.ApplicationContextFacade@2bc3f5])
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletImplicitObjects - >setServletContext
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletImplicitObjects - <setServletConfig([org.apache.catalina.core.StandardWrapperFacade@4e3f41])
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletImplicitObjects - >setServletConfig
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletTestController - <handleRequest([org.apache.cactus.server.ServletImplicitObjects@1cb0f4])
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_Service=RUN_TEST], [Cactus_Service])
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [RUN_TEST]
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.AbstractWebTestController - Service to call = RUN_TEST
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.ServiceEnumeration - <valueOf([RUN_TEST])
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.ServiceEnumeration - >valueOf = [RUN_TEST]
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletTestController - >handleRequest
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletTestRedirector - >doPost
DEBUG 2003-11-16 15:24:19,822 org.apache.cactus.server.ServletTestRedirector - >doGet
DEBUG 2003-11-16 15:24:20,462 org.apache.cactus.internal.client.WebClientTestCaseDelegate - <setDelegatedTest([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,462 org.apache.cactus.internal.client.WebClientTestCaseDelegate - >setDelegatedTest
DEBUG 2003-11-16 15:24:20,462 org.apache.cactus.internal.client.WebClientTestCaseDelegate - <setWrappedTest([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,462 org.apache.cactus.internal.client.WebClientTestCaseDelegate - >setWrappedTest
DEBUG 2003-11-16 15:24:20,462 org.apache.cactus.internal.client.WebClientTestCaseDelegate - <setConfiguration([org.apache.cactus.configuration.FilterConfiguration@3f2d5e])
DEBUG 2003-11-16 15:24:20,462 org.apache.cactus.internal.client.WebClientTestCaseDelegate - >setConfiguration
DEBUG 2003-11-16 15:24:20,462 org.apache.cactus.internal.server.ServerTestCaseDelegate - <setDelegatedTest([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,462 org.apache.cactus.internal.server.ServerTestCaseDelegate - >setDelegatedTest
DEBUG 2003-11-16 15:24:20,462 org.apache.cactus.internal.server.ServerTestCaseDelegate - <setWrappedTest([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,462 org.apache.cactus.internal.server.ServerTestCaseDelegate - >setWrappedTest
DEBUG 2003-11-16 15:24:20,472 org.apache.cactus.util.JUnitVersionHelper - <getTestCaseName([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,472 org.apache.cactus.util.JUnitVersionHelper - >getTestCaseName = [testUnAuthorized]
DEBUG 2003-11-16 15:24:20,472 org.apache.cactus.internal.client.WebClientTestCaseDelegate - ------------- Test: testUnAuthorized
DEBUG 2003-11-16 15:24:20,482 org.apache.cactus.internal.client.WebClientTestCaseDelegate - <callBeginMethod([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [], POST parameters = []])
DEBUG 2003-11-16 15:24:20,482 org.apache.cactus.util.JUnitVersionHelper - <getTestCaseName([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,482 org.apache.cactus.util.JUnitVersionHelper - >getTestCaseName = [testUnAuthorized]
DEBUG 2003-11-16 15:24:20,482 org.apache.cactus.util.JUnitVersionHelper - <getTestCaseName([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,482 org.apache.cactus.util.JUnitVersionHelper - >getTestCaseName = [testUnAuthorized]
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.internal.client.WebClientTestCaseDelegate - >callBeginMethod
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.RequestDirectives - <setClassName([blabla.charm.web.FlowFilterTest])
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.WebRequest - <addParameter([Cactus_TestClass], [blabla.charm.web.FlowFilterTest], [GET])
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.WebRequest - >addParameter
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.RequestDirectives - >setClassName
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.util.JUnitVersionHelper - <getTestCaseName([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.util.JUnitVersionHelper - >getTestCaseName = [testUnAuthorized]
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.RequestDirectives - <setMethodName([testUnAuthorized])
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.WebRequest - <addParameter([Cactus_TestMethod], [testUnAuthorized], [GET])
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.WebRequest - >addParameter
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.RequestDirectives - >setMethodName
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.RequestDirectives - <setAutoSession([true])
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.WebRequest - <addParameter([Cactus_AutomaticSession], [true], [GET])
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.WebRequest - >addParameter
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.RequestDirectives - >setAutoSession
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.client.connector.http.DefaultHttpClient - <doTest([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_TestMethod] = [[testUnAuthorized]]][[Cactus_TestClass] = [[blabla.charm.web.FlowFilterTest]]][[Cactus_AutomaticSession] = [[true]]]], POST parameters = []])
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.WebRequest - <addParameter([Cactus_Service], [CALL_TEST], [GET])
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.WebRequest - >addParameter
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.configuration.FilterConfiguration - <getRedirectorURL([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_TestMethod] = [[testUnAuthorized]]][[Cactus_TestClass] = [[blabla.charm.web.FlowFilterTest]]][[Cactus_AutomaticSession] = [[true]]][[Cactus_Service] = [[CALL_TEST]]]], POST parameters = []])
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.configuration.FilterConfiguration - <getRedirectorName([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_TestMethod] = [[testUnAuthorized]]][[Cactus_TestClass] = [[blabla.charm.web.FlowFilterTest]]][[Cactus_AutomaticSession] = [[true]]][[Cactus_Service] = [[CALL_TEST]]]], POST parameters = []])
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.configuration.FilterConfiguration - >getRedirectorName = [FilterRedirector]
DEBUG 2003-11-16 15:24:20,492 org.apache.cactus.configuration.FilterConfiguration - >getRedirectorURL = [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector]
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.client.connector.http.ConnectionHelperFactory - <getConnectionHelper([http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector], [org.apache.cactus.configuration.FilterConfiguration@3f2d5e])
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.client.connector.http.ConnectionHelperFactory - >getConnectionHelper = [org.apache.cactus.client.connector.http.HttpClientConnectionHelper@714ceb]
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.client.connector.http.HttpClientConnectionHelper - <connect([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_TestMethod] = [[testUnAuthorized]]][[Cactus_TestClass] = [[blabla.charm.web.FlowFilterTest]]][[Cactus_AutomaticSession] = [[true]]][[Cactus_Service] = [[CALL_TEST]]]], POST parameters = []], [org.apache.cactus.configuration.FilterConfiguration@3f2d5e])
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.client.connector.http.HttpUtil - <addHttpGetParameters([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_TestMethod] = [[testUnAuthorized]]][[Cactus_TestClass] = [[blabla.charm.web.FlowFilterTest]]][[Cactus_AutomaticSession] = [[true]]][[Cactus_Service] = [[CALL_TEST]]]], POST parameters = []], [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector])
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.WebRequest - <getParameterValuesGet([Cactus_TestMethod])
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.WebRequest - >getParameterValuesGet = [[Ljava.lang.String;@691f36]
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.WebRequest - <getParameterValuesGet([Cactus_TestClass])
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.WebRequest - >getParameterValuesGet = [[Ljava.lang.String;@694e92]
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.WebRequest - <getParameterValuesGet([Cactus_AutomaticSession])
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.WebRequest - >getParameterValuesGet = [[Ljava.lang.String;@2558d6]
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.WebRequest - <getParameterValuesGet([Cactus_Service])
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.WebRequest - >getParameterValuesGet = [[Ljava.lang.String;@6b7859]
DEBUG 2003-11-16 15:24:20,502 org.apache.cactus.client.connector.http.HttpUtil - >addHttpGetParameters = [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST]
DEBUG 2003-11-16 15:24:20,533 org.apache.cactus.util.UrlUtil - <getPath([http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST])
DEBUG 2003-11-16 15:24:20,533 org.apache.cactus.util.UrlUtil - >getPath = [/charm.after.cactus.v.1.1_7/FilterRedirector]
DEBUG 2003-11-16 15:24:20,533 org.apache.cactus.util.UrlUtil - <getQuery([http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST])
DEBUG 2003-11-16 15:24:20,533 org.apache.cactus.util.UrlUtil - >getQuery = [Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST]
DEBUG 2003-11-16 15:24:20,533 org.apache.cactus.util.CookieUtil - <createHttpState([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_TestMethod] = [[testUnAuthorized]]][[Cactus_TestClass] = [[blabla.charm.web.FlowFilterTest]]][[Cactus_AutomaticSession] = [[true]]][[Cactus_Service] = [[CALL_TEST]]]], POST parameters = []], [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST])
DEBUG 2003-11-16 15:24:20,543 org.apache.cactus.util.CookieUtil - <createHttpClientCookies([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_TestMethod] = [[testUnAuthorized]]][[Cactus_TestClass] = [[blabla.charm.web.FlowFilterTest]]][[Cactus_AutomaticSession] = [[true]]][[Cactus_Service] = [[CALL_TEST]]]], POST parameters = []], [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST])
DEBUG 2003-11-16 15:24:20,543 org.apache.cactus.util.CookieUtil - >createHttpClientCookies = [[Lorg.apache.commons.httpclient.Cookie;@3753f8]
DEBUG 2003-11-16 15:24:20,543 org.apache.cactus.util.CookieUtil - >createHttpState = [[ |  | ]]
DEBUG 2003-11-16 15:24:20,623 httpclient.wire           - >> "GET /charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST HTTP/1.1[\r][\n]"
DEBUG 2003-11-16 15:24:20,643 httpclient.wire           - >> "Content-type: application/x-www-form-urlencoded[\r][\n]"
DEBUG 2003-11-16 15:24:20,643 httpclient.wire           - >> "User-Agent: Jakarta Commons-HttpClient/2.0beta2[\r][\n]"
DEBUG 2003-11-16 15:24:20,643 httpclient.wire           - >> "Host: localhost:8080[\r][\n]"
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterTestRedirector - <doFilter([org.apache.catalina.connector.HttpRequestFacade@3411a], [org.apache.catalina.connector.HttpResponseFacade@27508a], [org.apache.catalina.core.ApplicationFilterChain@25844f])
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterTestRedirector - ------------- Start Filter service
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterImplicitObjects - <setHttpServletRequest([org.apache.catalina.connector.HttpRequestFacade@3411a])
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterImplicitObjects - >setHttpServletRequest
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterImplicitObjects - <setHttpServletResponse([org.apache.catalina.connector.HttpResponseFacade@27508a])
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterImplicitObjects - >setHttpServletResponse
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterImplicitObjects - <setFilterConfig([ApplicationFilterConfig[name=FilterRedirector, filterClass=org.apache.cactus.server.FilterTestRedirector]])
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterImplicitObjects - >setFilterConfig
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterImplicitObjects - <setServletContext([org.apache.catalina.core.ApplicationContext@742ad0])
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterImplicitObjects - >setServletContext
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterImplicitObjects - <setFilterChain([org.apache.catalina.core.ApplicationFilterChain@25844f])
DEBUG 2003-11-16 15:24:20,643 org.apache.cactus.server.FilterImplicitObjects - >setFilterChain
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.FilterTestController - <handleRequest([org.apache.cactus.server.FilterImplicitObjects@2acc65])
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST], [Cactus_Service])
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [CALL_TEST]
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.AbstractWebTestController - Service to call = CALL_TEST
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.ServiceEnumeration - <valueOf([CALL_TEST])
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.ServiceEnumeration - >valueOf = [CALL_TEST]
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST], [Cactus_TestClass])
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [blabla.charm.web.FlowFilterTest]
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.AbstractWebTestCaller - Class to call = [blabla.charm.web.FlowFilterTest]
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST], [Cactus_WrappedTestClass])
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [null]
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.AbstractWebTestCaller - No wrapped test class
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST], [Cactus_TestMethod])
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [testUnAuthorized]
DEBUG 2003-11-16 15:24:20,653 org.apache.cactus.server.AbstractWebTestCaller - Method to call = testUnAuthorized
DEBUG 2003-11-16 15:24:20,663 org.apache.cactus.util.ClassLoaderUtils - <loadClass([blabla.charm.web.FlowFilterTest], [class org.apache.cactus.server.FilterTestCaller])
DEBUG 2003-11-16 15:24:20,663 org.apache.cactus.util.ClassLoaderUtils - <loadClassFromWebappClassLoader([blabla.charm.web.FlowFilterTest], [class org.apache.cactus.server.FilterTestCaller])
DEBUG 2003-11-16 15:24:20,663 httpclient.wire           - >> "[\r][\n]"
DEBUG 2003-11-16 15:24:20,693 org.apache.cactus.util.ClassLoaderUtils - >loadClassFromWebappClassLoader = [class blabla.charm.web.FlowFilterTest]
DEBUG 2003-11-16 15:24:20,693 org.apache.cactus.util.ClassLoaderUtils - >loadClass = [class blabla.charm.web.FlowFilterTest]
DEBUG 2003-11-16 15:24:20,743 org.apache.cactus.internal.client.WebClientTestCaseDelegate - <setDelegatedTest([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,743 org.apache.cactus.internal.client.WebClientTestCaseDelegate - >setDelegatedTest
DEBUG 2003-11-16 15:24:20,743 org.apache.cactus.internal.client.WebClientTestCaseDelegate - <setWrappedTest([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,743 org.apache.cactus.internal.client.WebClientTestCaseDelegate - >setWrappedTest
DEBUG 2003-11-16 15:24:20,743 org.apache.cactus.internal.client.WebClientTestCaseDelegate - <setConfiguration([org.apache.cactus.configuration.FilterConfiguration@453807])
DEBUG 2003-11-16 15:24:20,743 org.apache.cactus.internal.client.WebClientTestCaseDelegate - >setConfiguration
DEBUG 2003-11-16 15:24:20,743 org.apache.cactus.internal.server.ServerTestCaseDelegate - <setDelegatedTest([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,743 org.apache.cactus.internal.server.ServerTestCaseDelegate - >setDelegatedTest
DEBUG 2003-11-16 15:24:20,743 org.apache.cactus.internal.server.ServerTestCaseDelegate - <setWrappedTest([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,743 org.apache.cactus.internal.server.ServerTestCaseDelegate - >setWrappedTest
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.ServletURL - <loadFromRequest([org.apache.catalina.connector.HttpRequestFacade@3411a])
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST], [Cactus_URL_Protocol])
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [null]
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST], [Cactus_URL_Server])
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [null]
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST], [Cactus_URL_ContextPath])
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [null]
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST], [Cactus_URL_ServletPath])
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [null]
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST], [Cactus_URL_PathInfo])
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [null]
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST], [Cactus_URL_QueryString])
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [null]
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.ServletURL - Undefined simulation URL
DEBUG 2003-11-16 15:24:20,753 org.apache.cactus.ServletURL - >loadFromRequest = [null]
DEBUG 2003-11-16 15:24:20,793 org.apache.cactus.util.JUnitVersionHelper - <getTestCaseName([testUnAuthorized(blabla.charm.web.FlowFilterTest)])
DEBUG 2003-11-16 15:24:20,793 org.apache.cactus.util.JUnitVersionHelper - >getTestCaseName = [testUnAuthorized]
DEBUG 2003-11-16 15:24:20,793 httpclient.wire           - << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2003-11-16 15:24:20,793 httpclient.wire           - << "Date: Sun, 16 Nov 2003 13:24:19 GMT[\r][\n]"
DEBUG 2003-11-16 15:24:20,793 httpclient.wire           - << "Transfer-Encoding: chunked[\r][\n]"
DEBUG 2003-11-16 15:24:20,803 httpclient.wire           - << "Server: Apache Tomcat/4.1.27 (HTTP/1.1 Connector)[\r][\n]"
DEBUG 2003-11-16 15:24:20,803 org.apache.cactus.client.connector.http.HttpClientConnectionHelper - >connect = [org.apache.commons.httpclient.util.HttpURLConnection:http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST]
DEBUG 2003-11-16 15:24:20,803 org.apache.cactus.client.connector.http.AutoReadHttpURLConnection - Original connection = org.apache.commons.httpclient.util.HttpURLConnection:http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_TestMethod=testUnAuthorized&Cactus_TestClass=blabla.charm.web.FlowFilterTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST
DEBUG 2003-11-16 15:24:20,803 org.apache.cactus.client.connector.http.AutoReadHttpURLConnection - Content-Length : [-1]
DEBUG 2003-11-16 15:24:20,803 httpclient.wire           - << "1"
DEBUG 2003-11-16 15:24:20,803 httpclient.wire           - << "3"
DEBUG 2003-11-16 15:24:20,803 httpclient.wire           - << "[\r]"
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - << "[\n]"
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - << "FILTER CHAIN OUTPUT"
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.client.connector.http.AutoReadHttpURLConnection - Read [19]: [FILTER CHAIN OUTPUT]
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - << "[\r]"
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - << "[\n]"
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - << "0"
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - << "[\r]"
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - << "[\n]"
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - << "[\r]"
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - << "[\n]"
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.RequestDirectives - <setService([GET_RESULTS])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.WebRequest - <addParameter([Cactus_Service], [GET_RESULTS], [GET])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.WebRequest - >addParameter
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.RequestDirectives - >setService
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.WebRequest - <setRedirectorName([null])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.WebRequest - >setRedirectorName
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.configuration.FilterConfiguration - <getRedirectorURL([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_Service] = [[GET_RESULTS]]]], POST parameters = []])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.configuration.FilterConfiguration - <getRedirectorName([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_Service] = [[GET_RESULTS]]]], POST parameters = []])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.configuration.FilterConfiguration - >getRedirectorName = [FilterRedirector]
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.configuration.FilterConfiguration - >getRedirectorURL = [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector]
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.client.connector.http.ConnectionHelperFactory - <getConnectionHelper([http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector], [org.apache.cactus.configuration.FilterConfiguration@3f2d5e])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.client.connector.http.ConnectionHelperFactory - >getConnectionHelper = [org.apache.cactus.client.connector.http.HttpClientConnectionHelper@3ca5f1]
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.client.connector.http.HttpClientConnectionHelper - <connect([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_Service] = [[GET_RESULTS]]]], POST parameters = []], [org.apache.cactus.configuration.FilterConfiguration@3f2d5e])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.client.connector.http.HttpUtil - <addHttpGetParameters([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_Service] = [[GET_RESULTS]]]], POST parameters = []], [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.WebRequest - <getParameterValuesGet([Cactus_Service])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.WebRequest - >getParameterValuesGet = [[Ljava.lang.String;@329f3d]
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.client.connector.http.HttpUtil - >addHttpGetParameters = [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_Service=GET_RESULTS]
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.util.UrlUtil - <getPath([http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_Service=GET_RESULTS])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.util.UrlUtil - >getPath = [/charm.after.cactus.v.1.1_7/FilterRedirector]
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.util.UrlUtil - <getQuery([http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_Service=GET_RESULTS])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.util.UrlUtil - >getQuery = [Cactus_Service=GET_RESULTS]
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.util.CookieUtil - <createHttpState([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_Service] = [[GET_RESULTS]]]], POST parameters = []], [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_Service=GET_RESULTS])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.util.CookieUtil - <createHttpClientCookies([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_Service] = [[GET_RESULTS]]]], POST parameters = []], [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_Service=GET_RESULTS])
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.util.CookieUtil - >createHttpClientCookies = [[Lorg.apache.commons.httpclient.Cookie;@749757]
DEBUG 2003-11-16 15:24:20,813 org.apache.cactus.util.CookieUtil - >createHttpState = [[ |  | ]]
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - >> "GET /charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_Service=GET_RESULTS HTTP/1.1[\r][\n]"
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - >> "Content-type: application/x-www-form-urlencoded[\r][\n]"
DEBUG 2003-11-16 15:24:20,813 httpclient.wire           - >> "User-Agent: Jakarta Commons-HttpClient/2.0beta2[\r][\n]"
DEBUG 2003-11-16 15:24:20,823 httpclient.wire           - >> "Host: localhost:8080[\r][\n]"
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterTestRedirector - <doFilter([org.apache.catalina.connector.HttpRequestFacade@1e2ca7], [org.apache.catalina.connector.HttpResponseFacade@5bd58], [org.apache.catalina.core.ApplicationFilterChain@51e730])
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterTestRedirector - ------------- Start Filter service
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterImplicitObjects - <setHttpServletRequest([org.apache.catalina.connector.HttpRequestFacade@1e2ca7])
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterImplicitObjects - >setHttpServletRequest
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterImplicitObjects - <setHttpServletResponse([org.apache.catalina.connector.HttpResponseFacade@5bd58])
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterImplicitObjects - >setHttpServletResponse
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterImplicitObjects - <setFilterConfig([ApplicationFilterConfig[name=FilterRedirector, filterClass=org.apache.cactus.server.FilterTestRedirector]])
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterImplicitObjects - >setFilterConfig
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterImplicitObjects - <setServletContext([org.apache.catalina.core.ApplicationContext@742ad0])
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterImplicitObjects - >setServletContext
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterImplicitObjects - <setFilterChain([org.apache.catalina.core.ApplicationFilterChain@51e730])
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterImplicitObjects - >setFilterChain
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.FilterTestController - <handleRequest([org.apache.cactus.server.FilterImplicitObjects@2116c9])
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_Service=GET_RESULTS], [Cactus_Service])
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [GET_RESULTS]
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.AbstractWebTestController - Service to call = GET_RESULTS
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.ServiceEnumeration - <valueOf([GET_RESULTS])
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.ServiceEnumeration - >valueOf = [GET_RESULTS]
DEBUG 2003-11-16 15:24:20,823 org.apache.cactus.server.AbstractWebTestCaller - Test Result = [null]
DEBUG 2003-11-16 15:24:20,823 httpclient.wire           - >> "[\r][\n]"
DEBUG 2003-11-16 15:24:20,993 org.apache.cactus.server.AbstractWebTestCaller - Test result : [Test ok]
DEBUG 2003-11-16 15:24:20,993 org.apache.cactus.server.AbstractWebTestCaller - Result saved in context scope
DEBUG 2003-11-16 15:24:20,993 org.apache.cactus.server.FilterTestController - >handleRequest
DEBUG 2003-11-16 15:24:20,993 org.apache.cactus.server.FilterTestRedirector - >doFilter
DEBUG 2003-11-16 15:24:22,005 httpclient.wire           - << "HTTP/1.1 500 Internal Server Error[\r][\n]"
DEBUG 2003-11-16 15:24:22,005 httpclient.wire           - << "Content-Type: text/xml; charset=UTF-8[\r][\n]"
DEBUG 2003-11-16 15:24:22,005 httpclient.wire           - << "Date: Sun, 16 Nov 2003 13:24:20 GMT[\r][\n]"
DEBUG 2003-11-16 15:24:22,005 httpclient.wire           - << "Transfer-Encoding: chunked[\r][\n]"
DEBUG 2003-11-16 15:24:22,005 httpclient.wire           - << "Server: Apache Tomcat/4.1.27 (HTTP/1.1 Connector)[\r][\n]"
DEBUG 2003-11-16 15:24:22,015 httpclient.wire           - << "Connection: close[\r][\n]"
WARN  2003-11-16 15:24:22,015 org.apache.commons.httpclient.HttpMethodBase - Chunk-encoded body missing
DEBUG 2003-11-16 15:24:22,015 org.apache.cactus.client.connector.http.HttpClientConnectionHelper - >connect = [org.apache.commons.httpclient.util.HttpURLConnection:http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector?Cactus_Service=GET_RESULTS]
DEBUG 2003-11-16 15:24:22,015 org.apache.cactus.configuration.FilterConfiguration - <getRedirectorURL([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_TestMethod] = [[testUnAuthorized]]][[Cactus_TestClass] = [[blabla.charm.web.FlowFilterTest]]][[Cactus_AutomaticSession] = [[true]]][[Cactus_Service] = [[CALL_TEST]]]], POST parameters = []])
DEBUG 2003-11-16 15:24:22,015 org.apache.cactus.configuration.FilterConfiguration - <getRedirectorName([simulation URL = [null], automatic session = [true], cookies = [], headers = [], GET parameters = [[[Cactus_TestMethod] = [[testUnAuthorized]]][[Cactus_TestClass] = [[blabla.charm.web.FlowFilterTest]]][[Cactus_AutomaticSession] = [[true]]][[Cactus_Service] = [[CALL_TEST]]]], POST parameters = []])
DEBUG 2003-11-16 15:24:22,015 org.apache.cactus.configuration.FilterConfiguration - >getRedirectorName = [FilterRedirector]
DEBUG 2003-11-16 15:24:22,015 org.apache.cactus.configuration.FilterConfiguration - >getRedirectorURL = [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector]
DEBUG 2003-11-16 15:24:22,015 org.apache.cactus.internal.client.WebClientTestCaseDelegate - Exception in test
DEBUG 2003-11-16 15:24:22,015 org.apache.cactus.util.ChainedRuntimeException - <printStackTrace([org.apache.log4j.spi.VectorWriter@7cf0ce])
DEBUG 2003-11-16 15:24:22,015 org.apache.cactus.client.ParsingException - <printStackTrace([org.apache.log4j.spi.VectorWriter@7cf0ce])
DEBUG 2003-11-16 15:24:22,015 org.apache.cactus.client.ParsingException - >printStackTrace
DEBUG 2003-11-16 15:24:22,015 org.apache.cactus.util.ChainedRuntimeException - >printStackTrace
org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results at [http://localhost:8080/charm.after.cactus.v.1.1_7/FilterRedirector]
	at org.apache.cactus.client.connector.http.DefaultHttpClient.dispatch49_doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:131)
	at org.apache.cactus.client.connector.http.DefaultHttpClient.around49_doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1222)
	at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:334)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:282)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:258)
	at org.apache.cactus.FilterTestCase.runTest(FilterTestCase.java:291)
	at org.apache.cactus.FilterTestCase.runBare(FilterTestCase.java:253)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
org.apache.cactus.client.ParsingException: Not a valid response [500 Internal Server Error]
	at org.apache.cactus.client.connector.http.DefaultHttpClient.callGetResult(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:251)
	at org.apache.cactus.client.connector.http.DefaultHttpClient.dispatch49_doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:126)
	at org.apache.cactus.client.connector.http.DefaultHttpClient.around49_doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1222)
	at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:334)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:282)
	at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:258)
	at org.apache.cactus.FilterTestCase.runTest(FilterTestCase.java:291)
	at org.apache.cactus.FilterTestCase.runBare(FilterTestCase.java:253)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
DEBUG 2003-11-16 15:24:22,025 org.apache.cactus.util.ChainedRuntimeException - <printStackTrace([java.io.PrintWriter@29ae05])
DEBUG 2003-11-16 15:24:22,025 org.apache.cactus.client.ParsingException - <printStackTrace([java.io.PrintWriter@29ae05])
DEBUG 2003-11-16 15:24:22,025 org.apache.cactus.client.ParsingException - >printStackTrace
DEBUG 2003-11-16 15:24:22,025 org.apache.cactus.util.ChainedRuntimeException - >printStackTrace
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletTestRedirector - <doGet([org.apache.catalina.connector.HttpRequestFacade@1e2ca7], [org.apache.catalina.connector.HttpResponseFacade@5bd58])
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletTestRedirector - <doPost([org.apache.catalina.connector.HttpRequestFacade@1e2ca7], [org.apache.catalina.connector.HttpResponseFacade@5bd58])
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletTestRedirector - ------------- Start Servlet service
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletImplicitObjects - <setHttpServletRequest([org.apache.catalina.connector.HttpRequestFacade@1e2ca7])
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletImplicitObjects - >setHttpServletRequest
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletImplicitObjects - <setHttpServletResponse([org.apache.catalina.connector.HttpResponseFacade@5bd58])
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletImplicitObjects - >setHttpServletResponse
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletImplicitObjects - <setServletContext([org.apache.catalina.core.ApplicationContextFacade@2bc3f5])
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletImplicitObjects - >setServletContext
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletImplicitObjects - <setServletConfig([org.apache.catalina.core.StandardWrapperFacade@4e3f41])
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletImplicitObjects - >setServletConfig
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletTestController - <handleRequest([org.apache.cactus.server.ServletImplicitObjects@13c0cf])
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_Service=RUN_TEST], [Cactus_Service])
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [RUN_TEST]
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.AbstractWebTestController - Service to call = RUN_TEST
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.ServiceEnumeration - <valueOf([RUN_TEST])
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.ServiceEnumeration - >valueOf = [RUN_TEST]
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletTestController - >handleRequest
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletTestRedirector - >doPost
DEBUG 2003-11-16 15:24:22,065 org.apache.cactus.server.ServletTestRedirector - >doGet
DEBUG 2003-11-16 15:24:22,626 org.apache.cactus.server.ServletTestRedirector - <doGet([org.apache.catalina.connector.HttpRequestFacade@1e2ca7], [org.apache.catalina.connector.HttpResponseFacade@5bd58])
DEBUG 2003-11-16 15:24:22,626 org.apache.cactus.server.ServletTestRedirector - <doPost([org.apache.catalina.connector.HttpRequestFacade@1e2ca7], [org.apache.catalina.connector.HttpResponseFacade@5bd58])
DEBUG 2003-11-16 15:24:22,626 org.apache.cactus.server.ServletTestRedirector - ------------- Start Servlet service
DEBUG 2003-11-16 15:24:22,626 org.apache.cactus.server.ServletImplicitObjects - <setHttpServletRequest([org.apache.catalina.connector.HttpRequestFacade@1e2ca7])
DEBUG 2003-11-16 15:24:22,626 org.apache.cactus.server.ServletImplicitObjects - >setHttpServletRequest
DEBUG 2003-11-16 15:24:22,626 org.apache.cactus.server.ServletImplicitObjects - <setHttpServletResponse([org.apache.catalina.connector.HttpResponseFacade@5bd58])
DEBUG 2003-11-16 15:24:22,626 org.apache.cactus.server.ServletImplicitObjects - >setHttpServletResponse
DEBUG 2003-11-16 15:24:22,626 org.apache.cactus.server.ServletImplicitObjects - <setServletContext([org.apache.catalina.core.ApplicationContextFacade@2bc3f5])
DEBUG 2003-11-16 15:24:22,626 org.apache.cactus.server.ServletImplicitObjects - >setServletContext
DEBUG 2003-11-16 15:24:22,636 org.apache.cactus.server.ServletImplicitObjects - <setServletConfig([org.apache.catalina.core.StandardWrapperFacade@4e3f41])
DEBUG 2003-11-16 15:24:22,636 org.apache.cactus.server.ServletImplicitObjects - >setServletConfig
DEBUG 2003-11-16 15:24:22,636 org.apache.cactus.server.ServletTestController - <handleRequest([org.apache.cactus.server.ServletImplicitObjects@576e70])
DEBUG 2003-11-16 15:24:22,636 org.apache.cactus.server.ServletUtil - <getQueryStringParameter([Cactus_Service=RUN_TEST], [Cactus_Service])
DEBUG 2003-11-16 15:24:22,636 org.apache.cactus.server.ServletUtil - >getQueryStringParameter = [RUN_TEST]
DEBUG 2003-11-16 15:24:22,636 org.apache.cactus.server.AbstractWebTestController - Service to call = RUN_TEST
DEBUG 2003-11-16 15:24:22,636 org.apache.cactus.ServiceEnumeration - <valueOf([RUN_TEST])
DEBUG 2003-11-16 15:24:22,636 org.apache.cactus.ServiceEnumeration - >valueOf = [RUN_TEST]
DEBUG 2003-11-16 15:24:22,636 org.apache.cactus.server.ServletTestController - >handleRequest
DEBUG 2003-11-16 15:24:22,636 org.apache.cactus.server.ServletTestRedirector - >doPost
DEBUG 2003-11-16 15:24:22,636 org.apache.cactus.server.ServletTestRedirector - >doGet

</log>

Here's my TestCase class

<code>

package blabla.charm.web;

import java.io.*;
import javax.servlet.*;

import junit.framework.*;
import org.apache.cactus.*;

/**
 * Test the {@link FlowFilter}.
 * Creation date: Sep 11, 2003
 * @author Tarek Nabil
 */
public class FlowFilterTest extends FilterTestCase {

	// the output that will be written in the doFilter method of the mock FilterChain
	private static final String OUTPUT = "FILTER CHAIN OUTPUT";

	// the FilterChain object that will be passed to the doFilter method
	private FilterChain filterChain = null;
	
	/**
	 * Construts a new instance of this TestCase setting its name to the test name
	 * @param testName the name of the test
	 */
	public FlowFilterTest(String testName) {
		super(testName);
	}

	/**
	 * Creates a suite that contains all the tests in this test case
	 * @return a suite of tests to run
	 */
	public static Test suite() {
		return new TestSuite(FlowFilterTest.class);
	}

	/**
	 * Performs the common set up steps required for all tests.
	 * @see junit.framework.TestCase#setUp()
	 */
	protected void setUp() throws Exception {
		super.setUp();
		// Create a mock FilterChain object to pass to Filter.doFilter()
		FilterChain mockFilterChain = new FilterChain() {
			public void doFilter(
				ServletRequest request,
				ServletResponse response)
				throws IOException, ServletException {
				// Write something to the ouptut to test aginst
				PrintWriter writer = response.getWriter();
				writer.write(OUTPUT);
				writer.close();
			}
		};
		this.filterChain = mockFilterChain;
	}

	/**
	 * Performs the required cleanup after the tests.
	 * @see junit.framework.TestCase#tearDown()
	 */
	protected void tearDown() throws Exception {
		super.tearDown();
	}

	/**
	 * A trivial test to make sure the process is working.
	 */
	public void testTrivial() {
		assertTrue(true);
	}
	
	public void endTrivial(WebResponse response) {
		assertTrue(true);
	}
			
	/**
	 * Tests that when the user is not authorized, no redirection should be done.
	 * @throws Exception
	 */
	public void testUnAuthorized() throws Exception {
		// the request is unauthorized by default
		FlowFilter filter = new FlowFilter();
		filter.doFilter(request, response, filterChain);		
	}
	
	public void endUnAuthorized(WebResponse response) {
		assertEquals(response.getText(), OUTPUT);
	}
}

</code>

I'm testong on Tomcat 4.1.27 and using cactus-13-1.5-beta1.

Any help is appreciated.

Thanks,
Tarek M. Nabil

Mime
View raw message