Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 73123 invoked from network); 10 Mar 2006 21:56:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Mar 2006 21:56:12 -0000 Received: (qmail 36738 invoked by uid 500); 10 Mar 2006 21:56:11 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 36503 invoked by uid 500); 10 Mar 2006 21:56:11 -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 36493 invoked by uid 99); 10 Mar 2006 21:56:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Mar 2006 13:56:11 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_SORBS_WEB,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ksunithaghm@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO pproxy.gmail.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Mar 2006 13:56:09 -0800 Received: by pproxy.gmail.com with SMTP id n25so402010pyg for ; Fri, 10 Mar 2006 13:55:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=CVgoYlQCyEZuThE72mrvo6ApHPDzTnZMKQXCfigYS++NbzIpGI5p9cmxrk8fHegttsqDzd2CVgDPtXS69njbOAA4xe3B7WVaEaZ9ngqDJr72np2KVS2juIgGWQ+P2qT7JkZTsWlzQytxF0MkmmddUqT0wLXm6RmFTyqVIHzNEzM= Received: by 10.35.105.18 with SMTP id h18mr155733pym; Fri, 10 Mar 2006 13:55:49 -0800 (PST) Received: from ?9.30.38.121? ( [129.42.184.35]) by mx.gmail.com with ESMTP id z80sm158092pyg.2006.03.10.13.55.48; Fri, 10 Mar 2006 13:55:48 -0800 (PST) Message-ID: <4411F5C5.3010001@gmail.com> Date: Fri, 10 Mar 2006 13:55:17 -0800 From: Sunitha Kambhampati User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: SQLException and missing stack trace References: <20060123155916.41637.qmail@minotaur.apache.org> <43E3BDB7.1000705@sun.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 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.