hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David.Co...@apcc.com
Subject Re: JDK 1.1.8 problems
Date Wed, 13 Aug 2003 21:16:40 GMT

Yeah I am using a drop in library to do collections.  I got alpha 2 up and
going on 1.1.8 with no code changes to httpclient.  If the setbuffer was
conditionally used I think it will all work fine.  I am going to go ahead
and try changing it myself and see what I come up with.




                                                                                         
                         
                    Oleg                                                                 
                         
                    Kalnichevski         To:     Commons HttpClient Project              
                         
                    <olegk@apache        <commons-httpclient-dev@jakarta.apache.org>
                              
                    .org>                cc:                                          
                            
                                         Subject:     Re: JDK 1.1.8 problems             
                         
                    08/13/2003                                                           
                         
                    04:02 PM                                                             
                         
                    Please                                                               
                         
                    respond to                                                           
                         
                    "Commons                                                             
                         
                    HttpClient                                                           
                         
                    Project"                                                             
                         
                                                                                         
                         
                                                                                         
                         




David,
I am a maintainer of my own private Java 1.1 compatible fork of
HttpClient (Some of my firm's clients insist on supporting MacOS 9
platform which does not have a Java 1.2 compatible JRE). I can assure
you there's much more to this problem than just one method call. I guess
that you must be using some sort of Java 1.2 collections framework
emulation library. I seriously do not know how it would be possible
otherwise.

Oleg

On Wed, 2003-08-13 at 23:01, David.Cowan@apcc.com wrote:
> That is really the only code that causes it not to work though.  It seems
> like it would be worth changing 3 lines of code to support 1.1.8 users.
>
>
>
>
>

>                     Oleg

>                     Kalnichevski         To:     Commons HttpClient
Project
>                     <olegk@apache
<commons-httpclient-dev@jakarta.apache.org>
>                     .org>                cc:

>                                          Subject:     Re: JDK 1.1.8
problems
>                     08/13/2003

>                     03:46 PM

>                     Please

>                     respond to

>                     "Commons

>                     HttpClient

>                     Project"

>

>

>
>
>
>
> David,
> HttpClient requires Java 2 compatible JRE (> 1.2.x), primarily because
> it uses Java 2 collections framework. We have never aimed at providing
> Java 1.1 compatibility.
>
> Oleg
>
>
> On Wed, 2003-08-13 at 22:47, David.Cowan@apcc.com wrote:
> > I have upgraded from
> >
> > commons-httpclient-2.0-alpha2  to commons-httpclient-2.0-rc1 and am now
> > having problems in HttpConnection
> >
> > 2003-08-13 17:10:26,233 ERROR: java.net.Socket: method
getSendBufferSize
> ()I
> > not found
> >
> > java.lang.NoSuchMethodError: java.net.Socket: method getSendBufferSize
()I
> > not found
> >      at org.apache.commons.httpclient.HttpConnection.open()
> >      at org.apache.commons.httpclient.HttpMethodBase.processRequest()
> >      at org.apache.commons.httpclient.HttpMethodBase.execute()
> >
> >
> > This method was added in 1.2 and is not supported in 1.1.8.
> >
> > This was not a problem in alpha 2.  The offending lines of code is line
> > 695, 748 and 1226 in HttpConnection.  Could this be conditionally used
on
> > < 1.2.
> >
> > Ex:
> >
> >             if (sendBufferSize != -1 &&
> > Double.parseDouble(System.getProperty("java.version")) >=  1.2) {
> >                 socket.setSendBufferSize(sendBufferSize);
> >             }
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
commons-httpclient-dev-help@jakarta.apache.org
>


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






Mime
View raw message