Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 97540 invoked from network); 3 Dec 2010 09:11:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 09:11:58 -0000 Received: (qmail 46668 invoked by uid 500); 3 Dec 2010 09:11:58 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 46482 invoked by uid 500); 3 Dec 2010 09:11:56 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 46474 invoked by uid 99); 3 Dec 2010 09:11:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 09:11:55 +0000 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of supun06@gmail.com designates 209.85.216.67 as permitted sender) Received: from [209.85.216.67] (HELO mail-qw0-f67.google.com) (209.85.216.67) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 09:11:48 +0000 Received: by qwf6 with SMTP id 6so1074581qwf.10 for ; Fri, 03 Dec 2010 01:11:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=9pdOWDwYdiJ3Jca83my2K73jcEVJFrrUSjBDDep1XUM=; b=rUxe9+fCQQA2MNH1kznZJ32g0uXopq11Kh1qCl9z5kzD2a+ZhAxIbwIgTG7SJ6yKVB w12RH3HyMZPCvgzDx1HBGvhf2tkpJb0a7xz0POPaQIrwjH0G88CXaEklSbcztjrZlHE7 YKwGXiLy/ZnaAzWCaKAxB1L+YEpXw3NVW9MAk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=muYuVv37FaKNoguH/NN2IfX6mIuu3dDwT6A5Ncq+CGLmIvZkzhkDwN6PQyCovFIQVs LziO4MSCpsH9xmhhtydJRU77XV14QPf5aTszuFrZ0QtOie76Tdqjix8FlF93fd9X9F94 /ClCJIEUWe7PQqqKWc+TZhp6jORejO00vuYjQ= MIME-Version: 1.0 Received: by 10.229.192.144 with SMTP id dq16mr1084770qcb.51.1291367487364; Fri, 03 Dec 2010 01:11:27 -0800 (PST) Received: by 10.220.33.139 with HTTP; Fri, 3 Dec 2010 01:11:27 -0800 (PST) In-Reply-To: <1290608368.10402.7.camel@ubuntu> References: <1290608368.10402.7.camel@ubuntu> Date: Fri, 3 Dec 2010 14:41:27 +0530 Message-ID: Subject: Re: Intermittent Exception while submitting a response From: Supun Kamburugamuva To: HttpComponents Project Content-Type: multipart/alternative; boundary=0016363b80305bdee104967dec48 X-Virus-Checked: Checked by ClamAV on apache.org --0016363b80305bdee104967dec48 Content-Type: text/plain; charset=ISO-8859-1 This was due to the way in which connections were handled. When I changed it this worked. But I couldn't pin point the cause because there were lots of changes. Thanks, Supun.. On Wed, Nov 24, 2010 at 7:49 PM, Oleg Kalnichevski wrote: > On Wed, 2010-11-24 at 19:17 +0530, Supun Kamburugamuva wrote: > > While submitting a response with HttpCore-NIO I get the following > exception. > > This happens after some messages have being successfully transferred. Any > > pointers, that guide me in the write direction to figure out what went > wrong > > would be much appreciated. > > > > java.lang.IllegalArgumentException > > at java.nio.Buffer.position(Buffer.java:218) > > at sun.nio.cs.US_ASCII$Encoder.encodeArrayLoop(US_ASCII.java:161) > > at sun.nio.cs.US_ASCII$Encoder.encodeLoop(US_ASCII.java:193) > > at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544) > > at > > > org.apache.http.impl.nio.reactor.SessionOutputBufferImpl.writeLine(SessionOutputBufferImpl.java:158) > > at > > > org.apache.http.impl.nio.codecs.DefaultHttpResponseWriter.writeHeadLine(DefaultHttpResponseWriter.java:57) > > at > > > org.apache.http.impl.nio.codecs.DefaultHttpResponseWriter.writeHeadLine(DefaultHttpResponseWriter.java:44) > > at > > > org.apache.http.impl.nio.codecs.AbstractMessageWriter.write(AbstractMessageWriter.java:90) > > at > > > org.apache.http.impl.nio.DefaultNHttpServerConnection.submitResponse(DefaultNHttpServerConnection.java:241) > > > > > > Thanks, > > Supun.. > > Hi Supun > > The exception is thrown by a non-public JRE class, so I cannot > definitively say as to what is likely to be the cause of the problem. I > can only guess that this might be due to a non-ASCII character in the > HTTP message head. > > Can you reproduce the issue with a test case independently from Synapse? > > Cheers > > Oleg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org > For additional commands, e-mail: dev-help@hc.apache.org > > -- Technical Lead, WSO2 Inc http://wso2.org supunk.blogspot.com --0016363b80305bdee104967dec48--