Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 7923 invoked from network); 25 Mar 2007 15:13:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Mar 2007 15:13:55 -0000 Received: (qmail 87484 invoked by uid 500); 25 Mar 2007 15:14:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 87421 invoked by uid 500); 25 Mar 2007 15:14:00 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 87406 invoked by uid 99); 25 Mar 2007 15:14:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Mar 2007 08:14:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Mar 2007 08:13:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5C50D71406D for ; Sun, 25 Mar 2007 08:13:32 -0700 (PDT) Message-ID: <13598351.1174835612376.JavaMail.jira@brutus> Date: Sun, 25 Mar 2007 08:13:32 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2472) Use Throwable.initCause() to improve error reporting In-Reply-To: <17338071.1174471232368.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/DERBY-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-2472: -------------------------------------- Derby Info: [Patch Available] > Use Throwable.initCause() to improve error reporting > ---------------------------------------------------- > > Key: DERBY-2472 > URL: https://issues.apache.org/jira/browse/DERBY-2472 > Project: Derby > Issue Type: Improvement > Components: JDBC, Miscellaneous > Affects Versions: 10.3.0.0 > Reporter: Kristian Waagan > Priority: Minor > Attachments: derby-2472_initial_patch.diff, setStackTrace.diff > > > As Derby has moved to J2SE 1.4, Throwable.initCause() can now be used to improve error reporting. > As stated in the initial commit (that was backed out, see below): > 'Set Throwable.initCause() in a couple of locations at the JDBC level where we setup nested SQLExceptions. > This means that automatically the stack trace for a database failed to start includes the reason > for the failure, rather than just "see next exception". This is a great help when running > JUnit tests and getting failures to start a database.' > The initial commit was backed out because it broke numerous tests under JDK 1.6, and the author indicated he had no time to investigate. > The patch caused no failures when running the tests with Java SE 5.0. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.