Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 76472 invoked from network); 22 Dec 2009 10:16:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Dec 2009 10:16:06 -0000 Received: (qmail 25407 invoked by uid 500); 22 Dec 2009 10:16:06 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 25383 invoked by uid 500); 22 Dec 2009 10:16:06 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 25373 invoked by uid 500); 22 Dec 2009 10:16:06 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 25370 invoked by uid 99); 22 Dec 2009 10:16:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 10:16:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 10:16:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 10DDE234C04C for ; Tue, 22 Dec 2009 02:15:44 -0800 (PST) Message-ID: <1295740147.1261476944058.JavaMail.jira@brutus> Date: Tue, 22 Dec 2009 10:15:44 +0000 (UTC) From: "Christian Mueller (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1530) Upgrade camel-http to use httpclient 4.0 In-Reply-To: <1786230527.1239714211813.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56603#action_56603 ] Christian Mueller commented on CAMEL-1530: ------------------------------------------ Claus, that's what i mean... :-( In org.apache.http.params.HttpConnectionParams.getSoTimeout(HttpParams), the code is the following: {code} public static int getSoTimeout(final HttpParams params) { if (params == null) { throw new IllegalArgumentException("HTTP parameters may not be null"); } return params.getIntParameter(CoreConnectionPNames.SO_TIMEOUT, 0); } {code} and org.apache.http.params.AbstractHttpParams.getIntParameter(String, int) is defined as: {code} public int getIntParameter(final String name, int defaultValue) { Object param = getParameter(name); if (param == null) { return defaultValue; } return ((Integer)param).intValue(); } {code} So, if the so_timeout a String, we get a ClassCastException. There is no type conversion. I don't know why the way to configure the HttpClient is so inconvenient... :-( Should I continue my work on HttpParamsBuilder or do you have a better idea (I'm offline from this evening until 12/28/2009)? I also have to work on camel-http/camel-jetty, because 17 test fails in camel-jetty. All tests in camel-http succeed. If you agree, I will provide some more unit tests (may be not a camel route test) in camel-http because I think tests in camel-hhtp should fail, if there are issues in camel-http. What do you think? Christian > Upgrade camel-http to use httpclient 4.0 > ---------------------------------------- > > Key: CAMEL-1530 > URL: https://issues.apache.org/activemq/browse/CAMEL-1530 > Project: Apache Camel > Issue Type: Improvement > Components: camel-http > Affects Versions: 2.0-M1 > Reporter: Claus Ibsen > Assignee: Christian Mueller > Fix For: 2.2.0 > > > Upgrading httpclient from 3.1 to 4.0 requires changes in the camel-http code as the API has change quite a lot. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.