Ok, I understand what happened ... :) 1/ There is a bug (sigh, I wish there were only one !) in HttpURLConnection in jdk 1.3 for accessing errors. I have a test case in cactus that returns a 302 status code and I need to be able to check that status code on the client side. I had to use a trick to make it work by ending the url with "/" ... yuck ... It seems the algorithm has been changed in 1.3.1 and it is now possible to get errors in the error stream (I haven't tried yet).
2/ I changed the way cactus works internally yesterday (it now passes its own internal parameters in the query string) and thus the URL does not end with a "/" anymore and this the test case was failing, so I removed it (commented it out) - I plan to use httpclient to make the http connection and that should solve the problem. thanks -Vincent ----- Original Message ----- From: "Sam Ruby" <[EMAIL PROTECTED]> To: "Jakarta Cactus Developers" <[EMAIL PROTECTED]> Sent: Saturday, October 20, 2001 2:03 PM Subject: Re: Cactus & JDK 1.3.1_01 > Vincent Massol wrote: > > > >> Second warning... ;-) > > > >I've had a look at the url you mentionned below and it seems everything is > >fine (the build completes successfully). There are a few warnings that we > >need to work on though but nothing critical. Could you be more specific on > >the problems that you have spotted ? > > Nevermind. > > As of yesterday, I was seeing the following, but apparently the problem has > been resolved since then: > > [java] [junit] Testcase: testStatusCode took 0.047 sec > [java] [junit] Caused an ERROR > [java] [junit] Server returned HTTP response code: 401 for URL: http://localhost:8082/test/ServletRedirector/ > [java] [junit] java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8082/test/ServletRedirector/ > [java] [junit] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection .java:564) > [java] [junit] at org.apache.cactus.client.AutoReadHttpURLConnection.getInputStream(AutoReadHt tpURLConnection.java:127) > [java] [junit] at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java:1 36) > [java] [junit] at org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:422) > [java] [junit] at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:130) > [java] [junit] at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371) > [java] [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) > [java] [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) > [java] [junit] at junit.framework.TestResult.run(TestResult.java:109) > [java] [junit] at junit.framework.TestCase.run(TestCase.java:131) > [java] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) > [java] [junit] at junit.framework.TestSuite.run(TestSuite.java:168) > [java] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) > [java] [junit] at junit.framework.TestSuite.run(TestSuite.java:168) > [java] [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu nner.java:231) > [java] [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR unner.java:409) > > - Sam Ruby > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
