Cactus
  1. Cactus
  2. CACTUS-200

print error content if ...cactus.internal.client.connector.http.DefaultHttpClient.callGetResult gets response code other than 200

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      jdk1.5, cygwin, winxp

      Description

      The "test.tomcat.40" target of the latest struts distribution failed with not particularly useful insight why:
      << [junit] Running org.apache.struts.taglib.logic.TestEmptyTag
      [junit] Testsuite: org.apache.struts.taglib.logic.TestEmptyTag
      [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.873 sec
      [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.873 sec
      [junit] Testcase: testEmptyTagUsingName took 1.863 sec
      [junit] Caused an ERROR
      [junit] Failed to get the test results at http://localhost:8080/test/JspRedirector
      [junit] org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results at [http://localhost:8080/tes
      t/JspRedirector]
      [junit] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClie
      nt.java:92)
      [junit] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultH
      ttpClient.java:306)
      [junit] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
      [junit] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.j
      ava:159)
      [junit] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocol
      Handler.java:80)
      [junit] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpP
      rotocolHandler.java:306)
      [junit] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java
      )
      [junit] at org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
      [junit] at org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
      [junit] at org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
      [junit] org.apache.cactus.internal.client.ParsingException: Noot a valid response [500 Internal Server Error]
      [junit] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callGetResult(DefaultHttpClient.ja
      va:215)
      [junit] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClie
      nt.java:87)
      [junit] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultH
      ttpClient.java:306)
      [junit] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
      [junit] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.j>>

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ralf Hauser
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development