hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rezaei, Mohammad A." <mohammad.rez...@gs.com>
Subject RE: Upgrade from 3.0-alpha1 to 3.0-alpha2 causes a ClassCastExcep tion
Date Thu, 18 Nov 2004 15:17:31 GMT
Here is the setup code, just in case:

    private static MultiThreadedHttpConnectionManager httpConnectionManager
= new MultiThreadedHttpConnectionManager();

    static
    {
        HttpConnectionManagerParams params =
httpConnectionManager.getParams();
 
params.setIntParameter(HttpConnectionManagerParams.MAX_HOST_CONNECTIONS, 5);
        params.setStaleCheckingEnabled(true);
        params.setSoTimeout(0);
        params.setConnectionTimeout(20000);
        new IdleConnectionCloser(httpConnectionManager).start();
    }

Thanks
Moh

>-----Original Message-----
>From: Rezaei, Mohammad A. 
>Sent: Thursday, November 18, 2004 10:09 AM
>To: 'HttpClient Project'
>Subject: 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." <mohammad.rezaei@gs.com> 
>>18.11.2004 15:36
>>Please respond to
>>"HttpClient Project"
>>
>>
>>To
>>"'HttpClient Project'" <httpclient-dev@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


Mime
View raw message