Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 80910 invoked from network); 4 Sep 2009 06:04:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Sep 2009 06:04:10 -0000 Received: (qmail 96703 invoked by uid 500); 4 Sep 2009 06:04:09 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 96651 invoked by uid 500); 4 Sep 2009 06:04:09 -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 96643 invoked by uid 99); 4 Sep 2009 06:04:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 06:04:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 06:03:59 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MjRta-00025c-2X for user-java@ibatis.apache.org; Thu, 03 Sep 2009 23:03:38 -0700 Message-ID: <25288763.post@talk.nabble.com> Date: Thu, 3 Sep 2009 23:03:38 -0700 (PDT) From: adi203793 To: user-java@ibatis.apache.org Subject: Ibatis conversion error on DB2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: aditya.prajapati@tcs.com X-Virus-Checked: Checked by ClamAV on apache.org I have been using Ibatis through Spring to acccessing data from DB2 to java. I have been run this query so many times sometimes it works and sometimes not. means I m not able to replicate it.while updating the record I got the error like this: UPDATE STHEDRL1 SET STHRIN=? WHERE STHINT=? AND STHNUM=? AND STHSCD=? AND STHADT=? Types: [java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, java.lang.Integer] ERRORID rg.springframework.dao.DataIntegrityViolationExc eption --EXCEPTION DETAILS-- Message : SqlMapClient operation; SQL []; --- Cause: java.sql.SQLException: [SQL0302] Conversion error on host variable or parameter *N.; nested exception is com.ibatis.common.jdbc.exception.NestedSQLExceptio n: --- The error occurred while applying a parameter map. --- Check the ShopDatesEntrySqlMap.updateRingForUltraInspectionR ecord-InlineParameterMap. --- Check the statement (update failed). Please send ur suggesstion.Thanks in advance. and after few days again I got the error:which I have never received earlier.we have used this query so many times and after few minuts its working fine again.Please send ur suggesstion.Thanks in advance. Cause: java.sql.SQLException: [SQL0406] Conversion error on assignment to column TRNPTM. at org.springframework.jdbc.support.SQLStateSQLExcept ionTranslator.translate(SQLStateSQLExceptionTransl ator.java:111) at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.translate(SQLErrorCodeSQLExcepti onTranslator.java:322) at org.springframework.orm.ibatis.SqlMapClientTemplat e.execute(SqlMapClientTemplate.java:212) at org.springframework.orm.ibatis.SqlMapClientTemplat e.insert(SqlMapClientTemplate.java:397) Caused by: com.ibatis.common.jdbc.exception.NestedSQLExceptio n: --- The error occurred while applying a parameter map. --- Check the PresentationData.insertCarMarkIntoMFCARCHG-InlineParameterMap. --- Check the statement (update failed). -- View this message in context: http://www.nabble.com/Ibatis-conversion-error-on-DB2-tp25288763p25288763.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org