Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 98972 invoked from network); 17 Mar 2006 20:51:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Mar 2006 20:51:24 -0000 Received: (qmail 63865 invoked by uid 500); 17 Mar 2006 20:51:23 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 63833 invoked by uid 500); 17 Mar 2006 20:51:23 -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 63824 invoked by uid 99); 17 Mar 2006 20:51:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2006 12:51:23 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2006 12:51:22 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id CF314D4A00 for ; Fri, 17 Mar 2006 20:51:01 +0000 (GMT) Message-ID: <926418208.1142628661845.JavaMail.jira@ajax> Date: Fri, 17 Mar 2006 20:51:01 +0000 (GMT) From: "David Van Couvering (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-1117) SQLException can lose stacktrace in some cases. In-Reply-To: <957312949.1142465158242.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1117?page=all ] David Van Couvering resolved DERBY-1117: ---------------------------------------- Resolution: Fixed Submitted, revision 386710. Includes a new test that verifies chaining works correctly, both with getCause() and getNextException(). The rule is SQLExceptions get added to getNextException(), other exceptions are added to as the initial cause. The test failed prior to fix, passes now. Added this test to the derbynetclientmats suite. I used the junit framework, works nicely, I was able to whip up a test very quickly! > SQLException can lose stacktrace in some cases. > ------------------------------------------------ > > Key: DERBY-1117 > URL: http://issues.apache.org/jira/browse/DERBY-1117 > Project: Derby > Type: Bug > Components: Network Client > Versions: 10.2.0.0 > Reporter: Sunitha Kambhampati > Assignee: David Van Couvering > Priority: Minor > Fix For: 10.2.0.0 > > cause is being lost in the following constructor in SqlException > public SqlException(LogWriter logwriter, > MessageId msgid, Object[] args, Throwable cause) > { > this( > logwriter, > msgutil_.getCompleteMessage( > msgid.msgid, > args), > ExceptionUtil.getSQLStateFromIdentifier(msgid.msgid), > ExceptionUtil.getSeverityFromIdentifier(msgid.msgid)); > } > maybe we should add setThrowable(cause) so we dont lose track of it. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira