Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 27154 invoked from network); 8 Feb 2008 16:55:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2008 16:55:45 -0000 Received: (qmail 26289 invoked by uid 500); 8 Feb 2008 16:55:32 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 26274 invoked by uid 500); 8 Feb 2008 16:55:32 -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 26263 invoked by uid 99); 8 Feb 2008 16:55:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 08:55:32 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.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, 08 Feb 2008 16:55:01 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JNWVJ-0004Ok-0O for user-java@ibatis.apache.org; Fri, 08 Feb 2008 08:55:09 -0800 Message-ID: <15359372.post@talk.nabble.com> Date: Fri, 8 Feb 2008 08:55:09 -0800 (PST) From: MrNobody To: user-java@ibatis.apache.org Subject: iBATIS no longer allows me to set java.sql.Timestamp property MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tony.lozina@pepsi.com X-Virus-Checked: Checked by ClamAV on apache.org I had suffered a hard drive meltdown a couple of weeks ago and had to restore a project I am working on which involves loading objects from an Oracle database using iBATIS. Now I finally got the database and the application back up and running (the database I was using to develop on was also a local instance) but when I run my project iBATIS is complaining about setting the Timestamp properties on my result class. --- Cause: java.lang.RuntimeException: Error setting property 'setActionDate' of 'com.pbg.roadnet.bo.WorkerAction@d8ca48'. Cause: java.lang.IllegalArgumentException: argument type mismatch; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/pbg/roadnet/dao/sqlmap/WorkerAction.xml. --- The error occurred while applying a result map. --- Check the selectActionsWithinRange-AutoResultMap. --- The error happened while setting a property on the result object. the "ActionDate" property on my java object- which was restored from my old project and is 100% identical to when it ran fine before- is a java.sql.Timestamp field. So what could suddenly cause this to fail? I thought of two possibilities: one is that the driver I am using now is not the same (unfortunately I did not backup the driver I was using before so I just downloaded the latest Oracle 10g driver - ojdbc14.jar). I could maybe start trying some older drivers if you think this is the most likely cause. the second is that maybe I did not use the right column type on the database tables. See, while the database version itself is exactly the same (Oracle 10g Express Edition) the tables had to be rebuilt not from scripts matching my old schema but by reverse engineering them based on my sql map files (basically looked at what columns I was selected, their types, and created tables to match). So the bottom line with this is, I cant remember if I used DATE or TIMESTAMP as the Oracle column type. I am very sure though, that I actually used DATE, which is what I have now. But for the hell of it I tried TIMESTAMP and still iBATIS is spitting that error at me. Do you have any ideas what could be causing this sudden conflict? -- View this message in context: http://www.nabble.com/iBATIS-no-longer-allows-me-to-set-java.sql.Timestamp-property-tp15359372p15359372.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com.