[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpclient-users
Subject:    Re: JasperExcetion
From:       "Yi Wang" <yiwang3 () cisco ! com>
Date:       2004-12-03 18:29:22
Message-ID: 003601c4d966$02763790$264545ab () amer ! cisco ! com
[Download RAW message or body]

Roland:
I set the "User Agent" header to "Jakarta Commons-HttpClient/3.0" or
"JC-HttpClient/3.0" and got the same exception with "Array index out of
range" message.
But when I set it to "Something Else" I got the right response "OK 200".
I will open a bug.

Thanks for your help.
Yi

----- Original Message -----
From: "Roland Weber" <ROLWEBER@de.ibm.com>
To: "HttpClient User Discussion" <httpclient-user@jakarta.apache.org>
Sent: Friday, December 03, 2004 12:03 AM
Subject: Re: JasperExcetion


> Hello Yi,
>
> Jasper (on the server) seems to have a problem with the
> default User-Agent header set by HttpClient 3.0. You should
> try the following:
>
> 1. set the User-Agent manually to something different, like
>    "Jakarta Commons-HttpClient" or some User-Agent string
>    used by a browser, or an empty string
> 2. if that solves the problem, or leads to other exceptions
>    that include fragments of the User-Agent string in their
>    message, file a bug report against Tomcat/Jasper
>    http://jakarta.apache.org/tomcat/index.html
>
> hope that helps,
>   Roland
>
>
>
>
>
> "Yi Wang" <yiwang3@cisco.com>
> 02.12.2004 21:38
> Please respond to
> "HttpClient User Discussion"
>
>
> To
> "HttpClient User Discussion" <httpclient-user@jakarta.apache.org>
> cc
>
> Subject
> JasperExcetion
>
>
>
>
>
>
> Hi, Folks:
> Can someone give me some clue why I got the following exception?
>
> Thanks
> Yi
>
> 2004/12/02 12:28:31:242 PST [DEBUG] header - ->> "GET
> /cwhp/cwhp.applications.do HTTP/1.1[\r][\n]"
> 2004/12/02 12:28:31:242 PST [DEBUG] HttpMethodBase - -Adding Host request
> header
> 2004/12/02 12:28:31:242 PST [DEBUG] header - ->> "User-Agent: Jakarta
> Commons-HttpClient/3.0-beta1[\r][\n]"
> 2004/12/02 12:28:31:252 PST [DEBUG] header - ->> "Host:
> blade-6:1741[\r][\n]"
> 2004/12/02 12:28:31:252 PST [DEBUG] header - ->> "Cookie: $Version=0;
> JSESSIONID=FC0C6A76CEA3325D1B0FFAE1AF4EA223; $Path=/cwhp[\r][\n]"
> 2004/12/02 12:28:31:252 PST [DEBUG] header - ->> "Cookie: $Version=0;
> jsessionid=F34FBA0636E85F681D598B5232F493A0; $Path=/[\r][\n]"
> 2004/12/02 12:28:31:252 PST [DEBUG] header - ->> "Cookie: $Version=0;
> MICEcookie=F34FBA0636E85F681D598B5232F493A0; $Path=/[\r][\n]"
> 2004/12/02 12:28:31:252 PST [DEBUG] header - ->> "[\r][\n]"
> 2004/12/02 12:28:31:303 PST [DEBUG] header - -<< "HTTP/1.1 500 Internal
> Server Error[\r][\n]"
> 2004/12/02 12:28:31:303 PST [DEBUG] header - -<< "Date: Thu, 02 Dec 2004
> 20:26:34 GMT[\r][\n]"
> 2004/12/02 12:28:31:303 PST [DEBUG] header - -<< "Server: Apache[\r][\n]"
> 2004/12/02 12:28:31:303 PST [DEBUG] header - -<< "Content-Language:
> en-US[\r][\n]"
> 2004/12/02 12:28:31:303 PST [DEBUG] header - -<< "Connection:
> close[\r][\n]"
> 2004/12/02 12:28:31:303 PST [DEBUG] header - -<< "Transfer-Encoding:
> chunked[\r][\n]"
> 2004/12/02 12:28:31:483 PST [DEBUG] header - -<< "Content-Type:
> text/html;charset=ISO-8859-1[\r][\n]"
> 2004/12/02 12:28:31:483 PST [DEBUG] content - -<< "8"
> 2004/12/02 12:28:31:483 PST [DEBUG] content - -<< "0"
> 2004/12/02 12:28:31:483 PST [DEBUG] content - -<< "0"
> 2004/12/02 12:28:31:503 PST [DEBUG] content - -<< "[\r]"
> 2004/12/02 12:28:31:503 PST [DEBUG] content - -<< "[\n]"
> 2004/12/02 12:28:31:503 PST [DEBUG] content - -<<
> "<html><head><title>Apache Tomcat/4.1.29 - Error
> report</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color :
> white;background-color : #0086b2;} H3{font-family :
> sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
> BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color
> : white;} B{color : white;background-color : #0086b2;} HR{color :
> #0086b2;} --></STYLE> </head><body><h1>HTTP Status 500 - Internal Server
> Error</h1><HR size="1" noshade><p><b>type</b> Exception
> report</p><p><b>message</b> <u>Internal Server
> Error</u></p><p><b>description</b> <u>The server encountered an internal
> error (Internal Server Error) that prevented it from fulfilling this
> request.</u></p><p><b>exception</b>
> <pre>org.apache.jasper.JasperException: For input string: "3.0-"[\r][\n]"
> 2004/12/02 12:28:31:503 PST [DEBUG] content - -<< "[0x9]at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)[\r][\n]"
> 2004/12/02 12:28:31:503 PST [DEBUG] content - -<< "[0x9]at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)[\r]
[\n]"
> 2004/12/02 12:28:31:503 PST [DEBUG] content - -<< "[0x9]at
> org.apache.jasper.servlet.JspServlet.service(JspServlet."
>


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic