Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 39740 invoked from network); 8 May 2007 23:56:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2007 23:56:36 -0000 Received: (qmail 53194 invoked by uid 500); 8 May 2007 23:56:42 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 53163 invoked by uid 500); 8 May 2007 23:56:42 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 53154 invoked by uid 99); 8 May 2007 23:56:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2007 16:56:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2007 16:56:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 84D4F714066 for ; Tue, 8 May 2007 16:56:15 -0700 (PDT) Message-ID: <27298132.1178668575541.JavaMail.jira@brutus> Date: Tue, 8 May 2007 16:56:15 -0700 (PDT) From: "Steffen Pingel (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Created: (HTTPCORE-72) HttpConnectionParams.getSocketBufferSize() returns -1 by default MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org HttpConnectionParams.getSocketBufferSize() returns -1 by default ---------------------------------------------------------------- Key: HTTPCORE-72 URL: https://issues.apache.org/jira/browse/HTTPCORE-72 Project: HttpComponents Core Issue Type: Improvement Components: HttpCore NIO Affects Versions: 4.0-alpha5 Reporter: Steffen Pingel I was using an object of type BasicHttpParams which had no properties set and got an exception in the constructor of ExpandableBuffer when I tried to create a DefaultNHttpServerConnection. It is somewhat difficult for a caller to tell from the trace was the cause of the error actually is: java.lang.IllegalArgumentException at java.nio.Buffer.(Buffer.java:174) at java.nio.ByteBuffer.(ByteBuffer.java:259) at java.nio.ByteBuffer.(ByteBuffer.java:267) at java.nio.MappedByteBuffer.(MappedByteBuffer.java:64) at java.nio.DirectByteBuffer.(DirectByteBuffer.java:94) at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288) at org.apache.http.nio.util.ExpandableBuffer.(ExpandableBuffer.java:46) at org.apache.http.impl.nio.reactor.SessionInputBuffer.(SessionInputBuffer.java:55) at org.apache.http.impl.nio.NHttpConnectionBase.(NHttpConnectionBase.java:111) at org.apache.http.impl.nio.DefaultNHttpServerConnection.(DefaultNHttpServerConnection.java:63) [...] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org