ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Maves <Nathan.Ma...@Sun.COM>
Subject error while using a CTH
Date Mon, 31 Oct 2005 19:41:11 GMT
Here is the error.


com.ibatis.dao.client.DaoException: Error executing query for list.   
Cause: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in reporting/request/dao/ibatis/mapping/ 
Requests.xml.
--- The error occurred while applying a result map.
--- Check the requestResult.
--- Check the result mapping for the 'submitter' property.
--- Cause: java.sql.SQLException: statement handle not executed
Caused by: java.sql.SQLException: statement handle not executed
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in reporting/request/dao/ibatis/mapping/ 
Requests.xml.
--- The error occurred while applying a result map.
--- Check the requestResult.
--- Check the result mapping for the 'submitter' property.
--- Cause: java.sql.SQLException: statement handle not executed
Caused by: java.sql.SQLException: statement handle not executed
     reporting.request.dao.ibatis.BaseSqlMapDao.executeQueryForList 
(BaseSqlMapDao.java:34)

just another error

com.ibatis.dao.client.DaoException: Error executing query for list.   
Cause: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in reporting/request/dao/ibatis/mapping/ 
Requests.xml.
--- The error occurred while applying a result map.
--- Check the requestResult.
--- The error happened while setting a property on the result object.
--- Cause: java.sql.SQLException: Closed Resultset: next
Caused by: java.sql.SQLException: Closed Resultset: next




Here is the CTh code

  public Object getResult(ResultGetter getter) throws SQLException {

         String value = getter.getString();
         if(value == null)
             return null;
         log.debug("User Value : " + value);

         User user;
         try {
             user = UserService.getInstance().getUser(value);
         } catch (EmployeeNotFoundException e) {
             log.error("COuld not find employee : " + value, e);
             user = null;
         }

         return user;
     }

and the sqlmap

<result property="submitter" column="submitter"  
typeHandler="reporting.request.dao.ibatis.UserCustomTypeHandler"/>


I am at a loss here.


Mime
View raw message