Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 83261 invoked from network); 15 Jul 2008 17:41:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jul 2008 17:41:29 -0000 Received: (qmail 35491 invoked by uid 500); 15 Jul 2008 17:41:23 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 35474 invoked by uid 500); 15 Jul 2008 17:41:23 -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 35462 invoked by uid 99); 15 Jul 2008 17:41:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 10:41:23 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.138.151.43] (HELO inergen.sybase.com) (192.138.151.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 17:40:30 +0000 Received: from smtp2.sybase.com (sybgate2 [10.22.97.85]) by inergen.sybase.com with ESMTP id m6FHeq819656 for ; Tue, 15 Jul 2008 10:40:52 -0700 (PDT) Received: from gwwest.sybase.com (localhost [127.0.0.1]) by smtp2.sybase.com with ESMTP id m6FHeqa20614 for ; Tue, 15 Jul 2008 10:40:52 -0700 (PDT) In-Reply-To: <16178eb10807151038r1b52515aq988b762249525d88@mail.gmail.com> To: user-java@ibatis.apache.org Subject: Re: NullPointerException after upgrade to 2.3.2 MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: From: Christopher.Mathrusse@sybase.com Date: Tue, 15 Jul 2008 10:40:49 -0700 X-MIMETrack: Serialize by Router on gwwest/SYBASE(Release 6.5.5|November 30, 2005) at 07/15/2008 10:40:52 AM, Serialize complete at 07/15/2008 10:40:52 AM Content-Type: multipart/alternative; boundary="=_alternative 00611F3C88257487_=" X-Virus-Checked: Checked by ClamAV on apache.org This is a multipart message in MIME format. --=_alternative 00611F3C88257487_= Content-Type: text/plain; charset="US-ASCII" Thank you Clinton.. Chris "Clinton Begin" 07/15/2008 10:38 AM Please respond to user-java@ibatis.apache.org To user-java@ibatis.apache.org cc Subject Re: NullPointerException after upgrade to 2.3.2 I'll add the patch now... and let you know when to grab from SVN. Clinton On Tue, Jul 15, 2008 at 11:29 AM, wrote: Is the fix committed so I can get it and build from SVN? Chris Mathrusse christopher.mathrusse@sybase.com Sybase, Inc One Sybase Drive Dublin, CA 94568 (925) 236-5553 "Clinton Begin" 07/15/2008 10:27 AM Please respond to user-java@ibatis.apache.org To user-java@ibatis.apache.org cc Subject Re: NullPointerException after upgrade to 2.3.2 Known bug, sorry about that. I hope to get to a fix soon... it's easy, just time. Clinton On Tue, Jul 15, 2008 at 11:24 AM, wrote: I just upgraded to 2.3.2 due to the fact that Spring 2.5.5 seems to need it. After I upgraded I am now getting a NullPointerException after executing a procedure. This was working prior to the upgrade and seems to be associated to the TypeHandlerFactory.setTypeHanlder method at line 143. As I step through the code it appears that the result is returned from the procedure. I can see the value returned and my CustomTypeHandler is being invoked and is returning the correct value. ('N' == Boolean.FALSE) It appears this error begins in the class ComplexDataExchange.setData() method. On line 95 the following statement is executed: if (typeHandlerFactory.hasTypeHandler(parameterMap.getParameterClass())) { However, my parameterMap has no parameterClass specified and when it is retrieved a null value is returned. This causes the NullPointerException to occur in the TypeHandlerFactory.setTypeHanlder() method at line 143: if (handler == null && Enum.class.isAssignableFrom(type)) { The test is made to see if the handler is null but no test is performed to see if the type is null and this results in the NullPointerException. Is it now required to have a ParameterClass specified on every statement? Chris --=_alternative 00611F3C88257487_= Content-Type: text/html; charset="US-ASCII"
Thank you Clinton..

Chris



"Clinton Begin" <clinton.begin@gmail.com>

07/15/2008 10:38 AM
Please respond to
user-java@ibatis.apache.org

To
user-java@ibatis.apache.org
cc
Subject
Re: NullPointerException after upgrade to 2.3.2





I'll add the patch now... and let you know when to grab from SVN.

Clinton

On Tue, Jul 15, 2008 at 11:29 AM, <Christopher.Mathrusse@sybase.com> wrote:

Is the fix committed so I can get it and build from SVN?


Chris Mathrusse

christopher.mathrusse@sybase.com
Sybase, Inc
One Sybase Drive
Dublin, CA 94568
(925) 236-5553


"Clinton Begin" <clinton.begin@gmail.com>

07/15/2008 10:27 AM


Please respond to
user-java@ibatis.apache.org

To
user-java@ibatis.apache.org
cc
Subject
Re: NullPointerException after upgrade to 2.3.2







Known bug, sorry about that.  I hope to get to a fix soon... it's easy, just time.  

Clinton

On Tue, Jul 15, 2008 at 11:24 AM, <
Christopher.Mathrusse@sybase.com> wrote:

I just upgraded to 2.3.2 due to the fact that Spring 2.5.5 seems to need it. After I upgraded I am now getting a NullPointerException after executing a procedure. This was working prior to the upgrade and seems to be associated to the TypeHandlerFactory.setTypeHanlder method at line 143. As I step through the code it appears that the result is returned from the procedure. I can see the value returned and my CustomTypeHandler is being invoked and is returning the correct value.  ('N' == Boolean.FALSE)


It appears this error begins in the class ComplexDataExchange.setData() method. On line 95 the following statement is executed:


 
if (typeHandlerFactory.hasTypeHandler(parameterMap.getParameterClass())) {

However, my parameterMap has no parameterClass specified and when it is retrieved a null value is returned. This causes the NullPointerException to occur in the TypeHandlerFactory.setTypeHanlder() method at line 143:


if
(handler == null && Enum.class.isAssignableFrom(type)) {

The test is made to see if the handler is null but no test is performed to see if the type is null and this results in the NullPointerException.


Is it now required to have a ParameterClass specified on every statement?


Chris



--=_alternative 00611F3C88257487_=--