Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 83228 invoked from network); 3 Dec 2004 18:30:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Dec 2004 18:30:32 -0000 Received: (qmail 58611 invoked by uid 500); 3 Dec 2004 18:30:31 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 58584 invoked by uid 500); 3 Dec 2004 18:30:31 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 58568 invoked by uid 99); 3 Dec 2004 18:30:31 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of yiwang3@cisco.com designates 171.71.176.72 as permitted sender) Received: from sj-iport-3-in.cisco.com (HELO sj-iport-3.cisco.com) (171.71.176.72) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 03 Dec 2004 10:30:29 -0800 Received: from sj-core-2.cisco.com (171.71.177.254) by sj-iport-3.cisco.com with ESMTP; 03 Dec 2004 11:38:11 +0000 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== Received: from mira-sjc5-e.cisco.com (IDENT:mirapoint@mira-sjc5-e.cisco.com [171.71.163.15]) by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id iB3IUBIT008602 for ; Fri, 3 Dec 2004 10:30:11 -0800 (PST) Received: from yiwang3w2k01 (dhcp-171-69-69-38.cisco.com [171.69.69.38]) by mira-sjc5-e.cisco.com (MOS 3.4.5-GR) with SMTP id AUL92222; Fri, 3 Dec 2004 10:29:22 -0800 (PST) Message-ID: <003601c4d966$02763790$264545ab@amer.cisco.com> From: "Yi Wang" To: "HttpClient User Discussion" References: Subject: Re: JasperExcetion Date: Fri, 3 Dec 2004 10:29:22 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4942.400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4942.400 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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" To: "HttpClient User Discussion" 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" > 02.12.2004 21:38 > Please respond to > "HttpClient User Discussion" > > > To > "HttpClient User Discussion" > 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 - -<< > "Apache Tomcat/4.1.29 - Error > report

HTTP Status 500 - Internal Server > Error


type Exception > report

message Internal Server > Error

description The server encountered an internal > error (Internal Server Error) that prevented it from fulfilling this > request.

exception >

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