Return-Path: Delivered-To: apmail-synapse-dev-archive@www.apache.org Received: (qmail 90340 invoked from network); 20 Oct 2008 19:44:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Oct 2008 19:44:35 -0000 Received: (qmail 41073 invoked by uid 500); 20 Oct 2008 19:44:37 -0000 Delivered-To: apmail-synapse-dev-archive@synapse.apache.org Received: (qmail 41033 invoked by uid 500); 20 Oct 2008 19:44:37 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 41009 invoked by uid 99); 20 Oct 2008 19:44:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 12:44:37 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 19:43:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4B375234C21D for ; Mon, 20 Oct 2008 12:43:44 -0700 (PDT) Message-ID: <18004560.1224531824307.JavaMail.jira@brutus> Date: Mon, 20 Oct 2008 12:43:44 -0700 (PDT) From: "Ruwan Linton (JIRA)" To: dev@synapse.apache.org Subject: [jira] Resolved: (SYNAPSE-443) If ClientHandler receives a response of bad request from http server, causes many NullPointerExceptions. In-Reply-To: <1960834790.1221162824273.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SYNAPSE-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ruwan Linton resolved SYNAPSE-443. ---------------------------------- Resolution: Fixed Fix Version/s: 1.3 Fixed on the trunk.. > If ClientHandler receives a response of bad request from http server, causes many NullPointerExceptions. > -------------------------------------------------------------------------------------------------------- > > Key: SYNAPSE-443 > URL: https://issues.apache.org/jira/browse/SYNAPSE-443 > Project: Synapse > Issue Type: Bug > Components: Transports > Affects Versions: 1.3 > Reporter: Jason Walton > Assignee: Ruwan Linton > Fix For: 1.3 > > > In ClientHandler.responseReceived(), if the resposne.getStatusLine().getStatusCode() is HttpStatus.SC_BAD_REQUEST, we log the error and return. After this, IO Reactor tries to stream the response content to us with a call to inputReady(), however the RESPONSE_SINK_BUFFER will be null, so we throw a NullPointerException. IO Reactor will continue to try to deliver content to us, so the result is a huge pile of NullPointerExceptions. > Easy fix seems to be to call "processResponse()" in the SC_BAD_REQUEST case of the switch statement, like every other case does. -- 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: dev-unsubscribe@synapse.apache.org For additional commands, e-mail: dev-help@synapse.apache.org