ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: error while using a CTH
Date Wed, 02 Nov 2005 14:23:25 GMT
Nathan,

Congratulations. You've won the award for "Most Complex Stuff Done With a
CTH".

Now you can stop. ;-)

Cheers,
Clinton

On 10/31/05, Nathan Maves <Nathan.Maves@sun.com> wrote:
>
> 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