Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 37037 invoked from network); 15 Mar 2006 23:08:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Mar 2006 23:08:42 -0000 Received: (qmail 63879 invoked by uid 500); 15 Mar 2006 23:07:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 63646 invoked by uid 500); 15 Mar 2006 23:07:38 -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 63637 invoked by uid 99); 15 Mar 2006 23:07:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Mar 2006 15:07:38 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.34] (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Mar 2006 15:07:38 -0800 Received: from phys-mpk-1 ([129.146.11.81]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id k2FN7HQj000876 for ; Wed, 15 Mar 2006 16:07:17 -0700 (MST) Received: from conversion-daemon.mpk-mail1.sfbay.sun.com by mpk-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IW600I01XIXAD@mpk-mail1.sfbay.sun.com> (original mail from David.Vancouvering@Sun.COM) for derby-dev@db.apache.org; Wed, 15 Mar 2006 15:07:17 -0800 (PST) Received: from [129.150.24.92] (vpn-129-150-24-92.SFBay.Sun.COM [129.150.24.92]) by mpk-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IW60053TYSPY6@mpk-mail1.sfbay.sun.com> for derby-dev@db.apache.org; Wed, 15 Mar 2006 15:05:17 -0800 (PST) Date: Wed, 15 Mar 2006 15:05:22 -0800 From: "David W. Van Couvering" Subject: Re: SQLException and missing stack trace In-reply-to: <4411FCAC.3070404@sun.com> To: derby-dev@db.apache.org Message-id: <44189DB2.9030807@sun.com> MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_BpSW3BOwAHX3BxzsFHhIDg)" X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) References: <20060123155916.41637.qmail@minotaur.apache.org> <43E3BDB7.1000705@sun.com> <4411F5C5.3010001@gmail.com> <4411FCAC.3070404@sun.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --Boundary_(ID_BpSW3BOwAHX3BxzsFHhIDg) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT Hi, Sunitha. Did you log a JIRA for this? I didn't see it... David David W. Van Couvering wrote: > Yes, I agree this is a bug, thanks for catching this Sunitha. > > David > > Sunitha Kambhampati wrote: > >> Hi all, >> >> I came across this when I was fixing another issue and realized that >> the error message didnt show me the actual underlying exception/cause. >> 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. >> Thanks, >> Sunitha. --Boundary_(ID_BpSW3BOwAHX3BxzsFHhIDg) Content-type: text/x-vcard; charset=utf-8; name=david.vancouvering.vcf Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=david.vancouvering.vcf begin:vcard fn:David W Van Couvering n:Van Couvering;David W org:Sun Microsystems, Inc.;Database Technology Group email;internet:david.vancouvering@sun.com title:Senior Staff Software Engineer tel;work:510-550-6819 tel;cell:510-684-7281 x-mozilla-html:TRUE version:2.1 end:vcard --Boundary_(ID_BpSW3BOwAHX3BxzsFHhIDg)--