[ http://issues.apache.org/jira/browse/IBATIS-220?page=all ]
Bret Gregory updated IBATIS-220:
--------------------------------
Attachment: CronJob.xml
> Null Pointer in SqlExecutor.handleResults where ResultSet is null.
> ------------------------------------------------------------------
>
> Key: IBATIS-220
> URL: http://issues.apache.org/jira/browse/IBATIS-220
> Project: iBatis for Java
> Type: Bug
> Versions: 2.1.5, 2.1.6
> Environment: Windows XP Pro
> MS SQL Server
> Reporter: Bret Gregory
> Attachments: CronJob.xml
>
> I recently ran into a problem while executing a stored procedure using an
> inline map in iBatis 2.1.5_582. I tested this in 2.1.6_592 to see if the
> problem was resolved and I am still running into the issue. I am not sure if
> this is specific to the JDBC implementation for my SQL Server driver or not.
> Caused by: java.lang.NullPointerException
> at
> com.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor.java:355)
> at
> com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQueryProcedure(SqlExecutor.java:291)
> at
> com.ibatis.sqlmap.engine.mapping.statement.ProcedureStatement.sqlExecuteQuery(ProcedureStatement.java:34)
> at
> com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:173)
> The problem looks to be caused by the callable statement not returning a
> result set in the executeQueryProcedure method. The rs variable is set to
> null and passed into the handleResults() method. This method attempts to get
> the Type, and the Null Pointer is thrown.
> This looks like a bug and this code executes normally in iBatis 2.0.9.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira