Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 98236 invoked from network); 16 Mar 2011 00:09:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Mar 2011 00:09:51 -0000 Received: (qmail 72522 invoked by uid 500); 16 Mar 2011 00:09:51 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 72466 invoked by uid 500); 16 Mar 2011 00:09:51 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 72458 invoked by uid 99); 16 Mar 2011 00:09:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 00:09:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 00:09:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id ABF983AB360 for ; Wed, 16 Mar 2011 00:09:29 +0000 (UTC) Date: Wed, 16 Mar 2011 00:09:29 +0000 (UTC) From: "Daniel Gredler (JIRA)" To: issues@commons.apache.org Message-ID: <159100663.5585.1300234169701.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (NET-374) ParserInitializationException doesn't use standard JDK exception chaining MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 ParserInitializationException doesn't use standard JDK exception chaining ------------------------------------------------------------------------- Key: NET-374 URL: https://issues.apache.org/jira/browse/NET-374 Project: Commons Net Issue Type: Improvement Components: FTP Affects Versions: 2.2 Reporter: Daniel Gredler Priority: Minor ParserInitializationException appears to have its own rootCause instance variable, rather than using RuntimeException's constructors which allow a cause to be specified (ParserInitializationException extends RuntimeException). So for example on line 53 of this class [1], I would expect to see a simple invocation to super(message, rootCause). The reason this has come up is that we're logging these exceptions using log4j, but because ParserInitializationException doesn't use the standard JDK exception chaining, we don't get visibility into the root issue in the logs. This was discussed briefly on the user mailing list [2]. [1] http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/ParserInitializationException.java?view=markup [2] http://markmail.org/thread/6hn3doow352ic6ho -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira