You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sathish Sathyan <sa...@yahoo.co.in> on 2006/03/13 16:48:22 UTC

Problem with ErrorPage test-suite in Tomcat 5.5.15

Hi All,
 I recently upgraded tomcat from 5.5.9 to 5.5.15.
 When I try to run the run-tester target in the unit test suite in tomcat
 5.5.15, 4 of the test cases in the "ErrorPage" suite always fails.(The
 test cases passes in 5.5.9)
 The output comes like this:
 
 ErrorPage:
    [tester] OK [GET /tester/ErrorPage01 HTTP/1.0]
    [tester] OK [GET /tester/WrappedErrorPage01 HTTP/1.0]
    [tester] OK [GET /tester/ErrorPage03 HTTP/1.0]
    [tester] OK [GET /tester/WrappedErrorPage03 HTTP/1.0]
    [tester] OK [GET /tester/ErrorPage05?type=Arithmetic HTTP/1.0]
    [tester] OK [GET /tester/WrappedErrorPage05?type=Arithmetic HTTP/1.0]
    [tester] OK [GET /tester/ErrorPage05?type=Array HTTP/1.0]
    [tester] OK [GET /tester/WrappedErrorPage05?type=Array HTTP/1.0]
    [tester] OK [GET /tester/ErrorPage05?type=Number HTTP/1.0]
    [tester] OK [GET /tester/WrappedErrorPage05?type=Number HTTP/1.0]
    [tester] OK [GET /tester/ErrorPage07 HTTP/1.0]
    [tester] OK [GET /tester/WrappedErrorPage07 HTTP/1.0]
    [tester] FAIL [GET /tester/ErrorPage08?type=Arithmetic HTTP/1.0]
 Expected data 'ErrorPage06 PASSED - SERVLET', got data 'ErrorPage06
 FAILED - message is not correct'
    [tester] FAIL [GET /tester/WrappedErrorPage08?type=Arithmetic
 HTTP/1.0] Expected data 'ErrorPage06 PASSED - SERVLET', got data
 'ErrorPage06 FAILED - message is not correct'
    [tester] FAIL [GET /tester/ErrorPage08?type=Array HTTP/1.0] Expected
 data 'ErrorPage06 PASSED - JSP', got data 'ErrorPage06 FAILED - message
 is not correct'
    [tester] FAIL [GET /tester/WrappedErrorPage08?type=Array HTTP/1.0]
 Expected data 'ErrorPage06 PASSED - JSP', got data 'ErrorPage06 FAILED -
 message is not correct'
    [tester] OK [GET /tester/ErrorPage08?type=Number HTTP/1.0]
    [tester] OK [GET /tester/WrappedErrorPage08?type=Number HTTP/1.0]
    [tester] OK [GET /tester/ErrorPage09 HTTP/1.0]
    [tester] OK [GET /tester/WrappedErrorPage09 HTTP/1.0]
 
 
 Can somebody guide me on what the problem is and what are the fixes?
 Attached is the output when I try to access the link from the browser.
 
 ErrorPage06 FAILED - message is not correct
 
 EXCEPTION:  java.lang.ArrayIndexOutOfBoundsException: ErrorPage08 Threw ArrayIndexOutOfBoundsException
 EXCEPTION_TYPE:  java.lang.ArrayIndexOutOfBoundsException
 MESSAGE:  Exception in JSP: /ErrorPage08.jsp:12
 
 9:             throw new ArithmeticException
 10:                 ("ErrorPage08 Threw ArithmeticException");
 11:         } else if ("Array".equals(type)) {
 12:             throw new ArrayIndexOutOfBoundsException
 13:                 ("ErrorPage08 Threw ArrayIndexOutOfBoundsException");
 14:         } else if ("Number".equals(type)) {
 15:             throw new NumberFormatException
 
 
 Stacktrace:
 REQUEST_URI:  /tester/WrappedErrorPage08
 SERVLET_NAME:  ErrorPage08
 
 Thanks in Advance,
 
 Sathish
 
 
				
---------------------------------
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.