Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 91841 invoked from network); 17 Oct 2010 12:02:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Oct 2010 12:02:59 -0000 Received: (qmail 72598 invoked by uid 500); 17 Oct 2010 12:02:59 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 72531 invoked by uid 500); 17 Oct 2010 12:02:57 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 72524 invoked by uid 99); 17 Oct 2010 12:02:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Oct 2010 12:02:57 +0000 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Oct 2010 12:02:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 40F5323889F1; Sun, 17 Oct 2010 12:01:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1023471 - /commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java Date: Sun, 17 Oct 2010 12:01:58 -0000 To: commits@commons.apache.org From: mturk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101017120158.40F5323889F1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mturk Date: Sun Oct 17 12:01:57 2010 New Revision: 1023471 URL: http://svn.apache.org/viewvc?rev=1023471&view=rev Log: DAEMON-177 Use getTargetException instead getCause. Modify the Nick's patch by hand, cause previous was already applied Modified: commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java Modified: commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java?rev=1023471&r1=1023470&r2=1023471&view=diff ============================================================================== --- commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java (original) +++ commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java Sun Oct 17 12:01:57 2010 @@ -190,7 +190,7 @@ public final class DaemonLoader } catch (InvocationTargetException e) { - Throwable thrown = e.getCause(); + Throwable thrown = e.getTargetException(); /* DaemonInitExceptions can fail with a nicer message */ if (thrown instanceof DaemonInitException) { failed(((DaemonInitException) thrown).getMessageWithCause());