Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 94644 invoked from network); 27 Jan 2010 02:31:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2010 02:31:22 -0000 Received: (qmail 42985 invoked by uid 500); 27 Jan 2010 02:31:22 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 42918 invoked by uid 500); 27 Jan 2010 02:31:21 -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 42910 invoked by uid 99); 27 Jan 2010 02:31:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 02:31:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jeffgbutler@gmail.com designates 209.85.210.188 as permitted sender) Received: from [209.85.210.188] (HELO mail-yx0-f188.google.com) (209.85.210.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 02:31:13 +0000 Received: by yxe26 with SMTP id 26so4448965yxe.4 for ; Tue, 26 Jan 2010 18:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=SliqJuONhb7MY9Q+EGz+/1GMSvKgL6rdXHvnLSQTqO0=; b=lga2X9aKmFrAKMFZUOzpicjavhpWRdbT4HMu6lg9bokCALUMWDl/TXTYqvMGwCmXYh ld7HnlGNaFram6e3RZumxN48GdPQMe+hdiHNhwTMAy9Gnu7boORT9VYZMnTd7Kdnujqx ffW89B3RATaLaooxmKVflZt9z8Qy/28mNHxwY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=b7fs3w+OZaB8PflDCEiKrxM5Q41hzjcFSB995e1RVflI5KeHdm7kFAFYVDZoeugKJ0 Cxr6MYMRk/ZBtuL4+32686L8Y+rSzKqd9vOrlFI9r6EHFWiNhTaGj5NrJRW99Y4YNZrj D9LYBX8dd+i6ef6Due3p7TDbEEetq17vHMX+Y= MIME-Version: 1.0 Received: by 10.150.163.4 with SMTP id l4mr11689108ybe.300.1264559450570; Tue, 26 Jan 2010 18:30:50 -0800 (PST) In-Reply-To: References: Date: Tue, 26 Jan 2010 20:30:50 -0600 Message-ID: Subject: Re: Strange data/number clobbered problem From: Jeff Butler To: user-java@ibatis.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org That's a really old version of iBATIS. Look in the V2 developer's guide for the "numericScale" attribute of a parameter map (either inline or declared). You'll need to upgrade to a newer version of iBATIS to use it. This will likely fix the problem. Older versions of iBATIS did not handle this properly. Jeff Butler On Tue, Jan 26, 2010 at 6:32 PM, Wu, Daniel wrote= : > Hi, > > > > We recently encountered some issues which potentially related to iBitis. > > We searched the web and the mailing list archive but did not find > anything useful so far. =A0I am submitting this to the mailing list to se= e > if anyone has encountered this problem before and/or maybe point me some > direction. > > > > We are using iBatis 2.1.7.597 or our production environment. =A0It is a > java web application deployed to a farm of tomcat 5.5.27. =A0On one > instance of the tomcat farm, the decimal point of numerical value was > clobbered; the rest of the instances in the farm seems to be ok. =A0To > troubleshoot, we isolated the instance and hot deployed new modified web > > app in the same tomcat container. =A0 =A0 =A0The modified app is compiled= from > > same branch of source code but we added some logging and a jsp page to > allow us to run ad-hoc sql query. > > > > The modified app still shows the wrong numerical value, but the value is > correct when we did direct sql execution through the jsp page. =A0We > turned on the logging java.sql.* and saw the logging output that we > believe is coming from iBatis: > > > > 2010-01-26 19:59:11,889 [TP-Processor6] DEBUG java.sql.ResultSet - > {rset-100101} Result: [30453, New Releases $9.99 , 9.99 price for new > releases, N, 0, 0.0, 2009-04-03 02:00:00.0, 2012-04-03 19:00:42.0, > > 2009-04-03 19:00:53.0, 2010-01-18 21:18:12.0, SSD] > > > > Where the 0.0 supposed to be 9.9. =A0The pattern of the issue is that the > decimal point is shifted in the value, for example 15.95 becomes 159.5. > > > > We are currently stuck because we don't want to bounce the instance and > we are not exactly sure how to trigger issue. =A0We can only suspect that > there are some funny thing going on between iBatis and jdbc. > > > > Again, please let me know if you have seen this issue. =A0Thank you in > advance. > > > > Daniel Wu > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org > For additional commands, e-mail: user-java-help@ibatis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org