Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 17721 invoked from network); 5 Dec 2009 06:25:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Dec 2009 06:25:48 -0000 Received: (qmail 34475 invoked by uid 500); 5 Dec 2009 06:25:47 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 34391 invoked by uid 500); 5 Dec 2009 06:25:46 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 34383 invoked by uid 99); 5 Dec 2009 06:25:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Dec 2009 06:25:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.130.132.50] (HELO jacques.telenet-ops.be) (195.130.132.50) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Dec 2009 06:25:36 +0000 Received: from [192.168.1.2] ([84.196.128.95]) by jacques.telenet-ops.be with bizsmtp id DJRF1d00823dwD80JJRFkb; Sat, 05 Dec 2009 07:25:16 +0100 Subject: Re: URLConnectionUtils.closeLoudly() From: Jos Snellings To: users@cocoon.apache.org In-Reply-To: <1259936998.3973.229.camel@luna> References: <1259936136.2594.13.camel@joske-laptop> <1259936998.3973.229.camel@luna> Content-Type: text/plain; charset="UTF-8" Organization: Upperware GmbH Date: Sat, 05 Dec 2009 07:25:15 +0100 Message-ID: <1259994315.2597.1.camel@joske-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org You are right in "literal".equals(param), but that is not the source of the problem. Like smoking, it is a habit I'd better give up ;-) Jos On Fri, 2009-12-04 at 15:29 +0100, Johannes Lichtenberger wrote: > On Fri, 2009-12-04 at 15:15 +0100, Jos Snellings wrote: > > [StackTrace] > > > It is certainly not closing a connection quietly :-) > > > > In URLResponse.java, is it possible that in execute() > > > > servletConnection = this.url.openConnection(); is null? > > > > Responses are like: > > if (action.equals("st")) return new > > URLResponse("servlet:/thesaurusedit/stdemo",data); > > if (action.equals("term")) return new > > URLResponse("servlet:/edit/term", data); > > } > > > > return new URLResponse("servlet:editor/workspace", data); > > Well, you know I'm not really familiar with cocoon, but I would replace > action.equals("st") with "st".equals(action) and action.equals("term") > equally, so you can't get NullPointerExceptions in this place (I know > it's not the source of the problem). > > greetings, > Johannes > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org