You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Rezaei, Mohammad A." <mo...@gs.com> on 2004/11/18 16:09:27 UTC
RE: Upgrade from 3.0-alpha1 to 3.0-alpha2 causes a ClassCastExcep
tion
Yes, the code was compiled after the upgrade.
Thanks
Moh
>-----Original Message-----
>From: Roland Weber [mailto:ROLWEBER@de.ibm.com]
>Sent: Thursday, November 18, 2004 10:06 AM
>To: HttpClient Project
>Subject: Re: Upgrade from 3.0-alpha1 to 3.0-alpha2 causes a
>ClassCastException
>
>
>Hello Moh,
>
>have you tried to recompile your code with the new version?
>
>cheers,
> Roland
>
>
>
>
>"Rezaei, Mohammad A." <mo...@gs.com>
>18.11.2004 15:36
>Please respond to
>"HttpClient Project"
>
>
>To
>"'HttpClient Project'" <ht...@jakarta.apache.org>
>cc
>
>Subject
>Upgrade from 3.0-alpha1 to 3.0-alpha2 causes a ClassCastException
>
>
>
>
>
>
>I just upgraded from 3.0-alpha1 to 3.0-alpha2 and I'm seeing a
>ClassCastException. Here is the stack trace:
>
> at
>org.apache.commons.httpclient.params.HttpConnectionManagerParam
>s.getMaxConne
>ctionsPerHost(HttpConnectionManagerParams.java:143)
> at
>org.apache.commons.httpclient.MultiThreadedHttpConnectionManage
>r.doGetConnec
>tion(MultiThreadedHttpConnectionManager.java:425)
> at
>org.apache.commons.httpclient.MultiThreadedHttpConnectionManage
>r.getConnecti
>onWithTimeout(MultiThreadedHttpConnectionManager.java:382)
> at
>org.apache.commons.httpclient.HttpMethodDirector.executeMethod(
>HttpMethodDir
>ector.java:161)
> at
>org.apache.commons.httpclient.HttpClient.executeMethod(HttpClie
>nt.java:437)
> at
>org.apache.commons.httpclient.HttpClient.executeMethod(HttpClie
>nt.java:324)
>
>Did I misconfigure something or is this a genuine bug and
>needs a bugzilla
>entry?
>
>Thanks
>Moh
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
Re: Upgrade from 3.0-alpha1 to 3.0-alpha2 causes a ClassCastException
Posted by Oleg Kalnichevski <ol...@apache.org>.
Mohammad,
The API has simply changed. The 'http.connection-manager.max-per-host'
parameter used to return Integer in a1. As of a2 it returns Map
Please see the preferences guide for details
http://jakarta.apache.org/commons/httpclient/3.0/preference-api.html#HTTP%20connection%20manager%20parameters
Hope this helps
Oleg
On Thu, Nov 18, 2004 at 10:09:27AM -0500, Rezaei, Mohammad A. wrote:
> Yes, the code was compiled after the upgrade.
>
> Thanks
> Moh
>
> >-----Original Message-----
> >From: Roland Weber [mailto:ROLWEBER@de.ibm.com]
> >Sent: Thursday, November 18, 2004 10:06 AM
> >To: HttpClient Project
> >Subject: Re: Upgrade from 3.0-alpha1 to 3.0-alpha2 causes a
> >ClassCastException
> >
> >
> >Hello Moh,
> >
> >have you tried to recompile your code with the new version?
> >
> >cheers,
> > Roland
> >
> >
> >
> >
> >"Rezaei, Mohammad A." <mo...@gs.com>
> >18.11.2004 15:36
> >Please respond to
> >"HttpClient Project"
> >
> >
> >To
> >"'HttpClient Project'" <ht...@jakarta.apache.org>
> >cc
> >
> >Subject
> >Upgrade from 3.0-alpha1 to 3.0-alpha2 causes a ClassCastException
> >
> >
> >
> >
> >
> >
> >I just upgraded from 3.0-alpha1 to 3.0-alpha2 and I'm seeing a
> >ClassCastException. Here is the stack trace:
> >
> > at
> >org.apache.commons.httpclient.params.HttpConnectionManagerParam
> >s.getMaxConne
> >ctionsPerHost(HttpConnectionManagerParams.java:143)
> > at
> >org.apache.commons.httpclient.MultiThreadedHttpConnectionManage
> >r.doGetConnec
> >tion(MultiThreadedHttpConnectionManager.java:425)
> > at
> >org.apache.commons.httpclient.MultiThreadedHttpConnectionManage
> >r.getConnecti
> >onWithTimeout(MultiThreadedHttpConnectionManager.java:382)
> > at
> >org.apache.commons.httpclient.HttpMethodDirector.executeMethod(
> >HttpMethodDir
> >ector.java:161)
> > at
> >org.apache.commons.httpclient.HttpClient.executeMethod(HttpClie
> >nt.java:437)
> > at
> >org.apache.commons.httpclient.HttpClient.executeMethod(HttpClie
> >nt.java:324)
> >
> >Did I misconfigure something or is this a genuine bug and
> >needs a bugzilla
> >entry?
> >
> >Thanks
> >Moh
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org