Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 18314 invoked from network); 18 Jul 2006 20:21:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2006 20:21:18 -0000 Received: (qmail 94500 invoked by uid 500); 18 Jul 2006 20:21:17 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 94481 invoked by uid 500); 18 Jul 2006 20:21:17 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 94470 invoked by uid 99); 18 Jul 2006 20:21:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 13:21:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [129.55.12.40] (HELO ll.mit.edu) (129.55.12.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 13:21:16 -0700 Received: (from smtp@localhost) by ll.mit.edu (8.12.10/8.8.8) id k6IKKqAV017268 for ; Tue, 18 Jul 2006 16:20:52 -0400 (EDT) Received: from UNKNOWN( ), claiming to be "[155.34.198.75]" via SMTP by llmail, id smtpdAAAD3aWgG; Tue Jul 18 16:20:30 2006 Message-ID: <44BD428E.2050903@ll.mit.edu> Date: Tue, 18 Jul 2006 16:20:30 -0400 From: Vadim Grinshpun User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: locating errors in SqlMap 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, in a situation where iBATIS's parser throws an exception, is there a way to tell which part of the sql map being parsed is actually the culprit? The error shown in the exception is too vague, and doesn't point to a particular file/line/xml element/whatnot. Specifically, I have a case of a "no readable property named FOO", but the FOO in question is being used in a number of places, a number of which have just been modified. I could try to track it down by commenting out different parts of the map to see which part(s) make the error go appear/go away, but I was hoping there might be a more intelligent way to approach this. If there isn't a better way to do this currently, is it feasible to add better error reporting facilities into the parser, and are there any plans to do so? Thanks for any advice. -Vadim