Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 23453 invoked from network); 18 Jun 2005 19:18:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jun 2005 19:18:21 -0000 Received: (qmail 182 invoked by uid 500); 18 Jun 2005 19:18:21 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 147 invoked by uid 500); 18 Jun 2005 19:18:20 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 132 invoked by uid 500); 18 Jun 2005 19:18:20 -0000 Delivered-To: apmail-incubator-ibatis-dev@incubator.apache.org Received: (qmail 129 invoked by uid 99); 18 Jun 2005 19:18:20 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2005 12:18:15 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 8412417 for ; Sat, 18 Jun 2005 16:24:17 +0200 (CEST) Message-ID: <1906576862.1119104657539.JavaMail.jira@ajax.apache.org> Date: Sat, 18 Jun 2005 16:24:17 +0200 (CEST) From: "Sven Boden (JIRA)" To: ibatis-dev@incubator.apache.org Subject: [jira] Updated: (IBATIS-152) NullPointer Exception thrown in GeneralStatement.executeQueryWithCallback when using Log4j In-Reply-To: <186228037.1118685409977.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/IBATIS-152?page=all ] Sven Boden updated IBATIS-152: ------------------------------ Attachment: PreparedStatementLogProxy.java Full file > NullPointer Exception thrown in GeneralStatement.executeQueryWithCallback when using Log4j > ------------------------------------------------------------------------------------------ > > Key: IBATIS-152 > URL: http://issues.apache.org/jira/browse/IBATIS-152 > Project: iBatis for Java > Type: Bug > Components: SQL Maps > Versions: 2.1.1 > Environment: Windows XP, Java 1.3 > Reporter: David Winterbottom > Attachments: PreparedStatementLogProxy.diff, PreparedStatementLogProxy.java, RefCursor.zip > > Hi, > I am trying to follow the supplied test for IBATIS-53 (Oracle ref cursors). > I have found that running the supplied test (number 6) with log4j-1.2.9.jar on > the classpath causes a NullPointerException. > The stack trace and output is: > DEBUG [main] - Created connection 3235124. > DEBUG [main] - {conn-100000} Connection > DEBUG [main] - {pstm-100001} PreparedStatement: { ? = call mis_extract.mgr_case_temp.FindCases } > DEBUG [main] - {pstm-100001} Parameters: [] > DEBUG [main] - {pstm-100001} Types: [] > DEBUG [main] - {rset-100002} ResultSet > DEBUG [main] - Returned connection 3235124 to pool. > com.ibatis.common.jdbc.exception.NestedSQLException: > --- The error occurred in com/kinnect/mis/datamodel/sql/CaseToExtract.xml. > --- The error occurred while applying a parameter map. > --- Check the output. > --- Check the output parameters (retrieval of output parameters failed). > --- Cause: java.lang.NullPointerException > Caused by: java.lang.NullPointerException > at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:184) > at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForObject(GeneralStatement.java:100) > at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:561) > at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:536) > at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:97) > at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForObject(SqlMapClientImpl.java:69) > at com.kinnect.mis.MISExtract.readCasesToExtract(MISExtract.java:233) > at com.kinnect.mis.MISExtract.main(MISExtract.java:64) > Caused by: > java.lang.NullPointerException > at java.lang.reflect.Method.invoke(Native Method) > at com.ibatis.common.jdbc.logging.ResultSetLogProxy.invoke(ResultSetLogProxy.java:47) > at $Proxy2.close(Unknown Source) > at com.ibatis.sqlmap.engine.execution.SqlExecutor.closeResultSet(SqlExecutor.java:392) > at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQueryProcedure(SqlExecutor.java:298) > at com.ibatis.sqlmap.engine.mapping.statement.ProcedureStatement.sqlExecuteQuery(ProcedureStatement.java:34) > at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:169) > at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForObject(GeneralStatement.java:100) > at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:561) > at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:536) > at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:97) > at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForObject(SqlMapClientImpl.java:69) > at com.kinnect.mis.MISExtract.readCasesToExtract(MISExtract.java:233) > at com.kinnect.mis.MISExtract.main(MISExtract.java:64) > Is there a known problem with log4j with IBatis ? > Is this a problem for RefCursors only ? -- 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