ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burke.Kevin" <Kevin.Bu...@cic.gc.ca>
Subject RE: newbie trouble grokking error message
Date Wed, 29 Apr 2009 10:51:38 GMT
Hi Sean,

Check you bean class.  Are your setters public and ok? Make sure you are
mapping to compatible data types from the database back to your bean. If
they cannot be converted implicitly, define a handler in the ibatis SQL
map XML to convert to your bean attribute's type.

Kevin 


-----Original Message-----
From: Sean Mitchell [mailto:sean@mitchwood.com] 
Sent: April 28, 2009 3:46 PM
To: user-java@ibatis.apache.org
Subject: newbie trouble grokking error message


Hi...

I'm new to iBATIS, just started a new job last week and am trying to get
up to speed on a bunch of stuff, including iBATIS. The task I'm given is
to modify some existing code, which seems pretty straightforward.

Having made most of my mods (working and running within Eclipse) I'm
getting an error that I can't decipher:

2009-04-28 15:30:27,419[main           ] DEBUG
rrorCodeSQLExceptionTranslator - Unable to translate SQLException with
Error code '0', will now try the fallback translator
2009-04-28 15:30:27,419[main           ] DEBUG
DataSourceUtils - Returning JDBC Connection to DataSource unable to
execute upic translator.  Error message = SqlMapClient operation;
uncategorized SQLException for SQL []; SQL state [null]; error code [0];
--- The error occurred in cdw.upic.sqlmap.xml.
--- The error occurred while applying a result map.
--- Check the cdwUpic.aprIncentiveResultMap.
--- The error happened while setting a property on the result object.
--- Cause: java.lang.reflect.UndeclaredThrowableException; nested
exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in cdw.upic.sqlmap.xml.
--- The error occurred while applying a result map.
--- Check the cdwUpic.aprIncentiveResultMap.
--- The error happened while setting a property on the result object.
--- Cause: java.lang.reflect.UndeclaredThrowableException

I'm fairly sure that the problem is not cdwUpic.aprIncentiveResultMap,
because that has not changed and was working yesterday. This error
occurs no matter what resultmap my code uses. In fact, this worked
yesterday, but at some point today it started giving this error.

I'm guessing wildly that the problem is in the JDBC layer, although the
queries all work fine in SquirrelSQL. My other theory is that my project
(Maven based) is not configured properly somehow.

Anyone seen this before, or can suggest how I can get more information?

Cheers,

Sean

Mime
View raw message