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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to