Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 60389 invoked from network); 3 Nov 2005 21:17:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Nov 2005 21:17:39 -0000 Received: (qmail 36763 invoked by uid 500); 3 Nov 2005 21:17:32 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 36744 invoked by uid 500); 3 Nov 2005 21:17:32 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 36733 invoked by uid 99); 3 Nov 2005 21:17:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 13:17:32 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.27.20.73] (HELO exchange01.reged.com) (216.27.20.73) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 13:17:27 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5E0BB.F42DA504" Subject: Null Pointer in iBatis 2.1.5_582 Date: Thu, 3 Nov 2005 16:17:10 -0500 Message-ID: <2FB8D8645C82124AB549A2641FC2E3D404FE0FEE@exchange01.reged.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Null Pointer in iBatis 2.1.5_582 Thread-Index: AcXgu/PmFayz2JAMRMKAX00R5eyo6w== From: "Bret Gregory" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C5E0BB.F42DA504 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I recently ran into a problem while executing a stored procedure using an inline map in iBatis 2.1.5_582. Caused by: java.lang.NullPointerException at com.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor .java:355) at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQueryProcedure(Sql Executor.java:291) at com.ibatis.sqlmap.engine.mapping.statement.ProcedureStatement.sqlExecute Query(ProcedureStatement.java:34) at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQuery WithCallback(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. =20 This looks like a bug and this code executes normally in iBatis 2.0.9 so I thought I would write a note here and see if anyone else ran into this. =20 Thanks. -Bret ------_=_NextPart_001_01C5E0BB.F42DA504 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Null Pointer in iBatis 2.1.5_582

I = recently ran into a problem while executing a stored procedure using an = inline map in iBatis 2.1.5_582.

Caused by: = java.lang.NullPointerException

        at = com.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor.= java:355)

        at = com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQueryProcedure(SqlE= xecutor.java:291)

        at = com.ibatis.sqlmap.engine.mapping.statement.ProcedureStatement.sqlExecuteQ= uery(ProcedureStatement.java:34)

        at = com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryW= ithCallback(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 so I thought I would write a note here and see if anyone else ran = into this. 

Thanks.

-Bret

------_=_NextPart_001_01C5E0BB.F42DA504--