Change exception message when a setter can not be invoked ---------------------------------------------------------
Key: IBATIS-516 URL: https://issues.apache.org/jira/browse/IBATIS-516 Project: iBatis for Java Issue Type: Improvement Components: SQL Maps Affects Versions: 2.3.0 Environment: Java SUN version 1.5.0_08-b03 / MySQL 5.0 Reporter: Sébastien Launay Priority: Minor When the object to be mapped redefined #toString() method we can have the following exception message: java.lang.RuntimeException: Error setting property 'setPrice' of '32 (name)'. Cause: java.lang.IllegalArgumentException at com.ibatis.sqlmap.engine.accessplan.PropertyAccessPlan.setProperties(PropertyAccessPlan.java:52) Furthermore, the value to set is not describe in this message. A message like the following will ease finding the reason : java.lang.RuntimeException: Error setting property 'setPrice' for object of type 'com....MyBean' with value of type 'null'. Cause: java.lang.IllegalArgumentException at com.ibatis.sqlmap.engine.accessplan.PropertyAccessPlan.setProperties(PropertyAccessPlan.java:52) In my case this was because the database column was null and i was expecting a float which can not be set to null. This might also come in handy when the type of the setter is not compatible with the type of the value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.