Return-Path: Delivered-To: apmail-ibatis-user-cs-archive@www.apache.org Received: (qmail 38203 invoked from network); 10 Jan 2006 21:31:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jan 2006 21:31:08 -0000 Received: (qmail 22892 invoked by uid 500); 10 Jan 2006 21:31:08 -0000 Delivered-To: apmail-ibatis-user-cs-archive@ibatis.apache.org Received: (qmail 22876 invoked by uid 500); 10 Jan 2006 21:31:07 -0000 Mailing-List: contact user-cs-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-cs@ibatis.apache.org Delivered-To: mailing list user-cs@ibatis.apache.org Received: (qmail 22864 invoked by uid 99); 10 Jan 2006 21:31:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2006 13:31:07 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ibatis.net@gmail.com designates 64.233.182.197 as permitted sender) Received: from [64.233.182.197] (HELO nproxy.gmail.com) (64.233.182.197) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2006 13:31:04 -0800 Received: by nproxy.gmail.com with SMTP id x37so1726nfc for ; Tue, 10 Jan 2006 13:30:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=WwiMdUdhrWuZiXD8SzRi+WgHR2ZT4zfReU/mnCh7XzDIKPAelxA4YQeWoN2gOztkqAX3j133nttNh5OflNy0NCtkQlYtfsw2qCvCLdDk2a+2z59fRCCviBnhfPNWlEW/JECfFel55sYu7eGdWbfdi/nLgSrKi7hJCVlvpaKzXNE= Received: by 10.48.248.11 with SMTP id v11mr100354nfh; Tue, 10 Jan 2006 11:09:04 -0800 (PST) Received: by 10.48.255.4 with HTTP; Tue, 10 Jan 2006 11:09:04 -0800 (PST) Message-ID: Date: Tue, 10 Jan 2006 20:09:04 +0100 From: Gilles Bayon To: user-cs@ibatis.apache.org Subject: Re: Ibatis v1.3 : QueryForMap Bug/Regression ? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7897_12797181.1136920144155" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_7897_12797181.1136920144155 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Fixed in SVN On 1/10/06, nicolas.theron@bnpparibas.com wrote: > > > Hi > > I ve got a problem with calling the version of the method QueryForMap > without the valueProperty Parameter (public IDictionary QueryForMap(strin= g > statementName, object parameterObject, string keyProperty)) > this one is an overload of this following method: public IDictionary > QueryForMap(string statementName, object parameterObject, string > keyProperty, > string valueProperty)which use null as valueProperty. > > So, A NullReferenceException is raised. I could see in the source code th= e > problem come from the building of the CacheKey object : Indeed, Update > method of the CacheKey object is called with null object > > So Is it really a bug/regression (it worked properly in the previous > version of ibatis) or is this method obsolete ? Maybe this problem occur > with all > the methods with a null valueProperty ??? > > Regards > > > This message and any attachments (the "message") is > intended solely for the addressees and is confidential. > If you receive this message in error, please delete it and > immediately notify the sender. Any use not in accord with > its purpose, any dissemination or disclosure, either whole > or partial, is prohibited except formal approval. The internet > can not guarantee the integrity of this message. > BNP PARIBAS (and its subsidiaries) shall (will) not > therefore be liable for the message if modified. > > --------------------------------------------- > > Ce message et toutes les pieces jointes (ci-apres le > "message") sont etablis a l'intention exclusive de ses > destinataires et sont confidentiels. Si vous recevez ce > message par erreur, merci de le detruire et d'en avertir > immediatement l'expediteur. Toute utilisation de ce > message non conforme a sa destination, toute diffusion > ou toute publication, totale ou partielle, est interdite, sauf > autorisation expresse. L'internet ne permettant pas > d'assurer l'integrite de ce message, BNP PARIBAS (et ses > filiales) decline(nt) toute responsabilite au titre de ce > message, dans l'hypothese ou il aurait ete modifie. > > ------=_Part_7897_12797181.1136920144155 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Fixed in SVN

On 1/10/06, = nicolas.theron@bnpparibas.= com <nicolas.th= eron@bnpparibas.com > wrote:

Hi

I ve got a problem= with calling the version of the method QueryForMap without the valueProper= ty Parameter (public IDictionary QueryForMap(string
statementName, object parameterObject, string keyProperty))
this one= is an overload of this following method: public IDictionary QueryForMap(st= ring statementName, object parameterObject, string keyProperty,
string v= alueProperty)which use null as valueProperty.

So, A NullReferenceException is raised. I could see in the source c= ode the problem come from the building of the CacheKey object : Indeed, Upd= ate
method of the CacheKey object is called with null object

So Is it really a bug/regression (it worked properly in the previous versio= n of ibatis) or is this method obsolete ? Maybe this problem occur with all=
the methods with a null valueProperty ???

Regards


This message and any attachments (the "message") is
intended s= olely for the addressees and is confidential.
If you receive this messag= e in error, please delete it and
immediately notify the sender. Any use = not in accord with
its purpose, any dissemination or disclosure, either whole
or partia= l, is prohibited except formal approval. The internet
can not guarantee = the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall = (will) not
therefore be liable for the message if modified.

  &nb= sp;            -----= ----------------------------------------

Ce message et toutes les pi= eces jointes (ci-apres le
"message") sont etablis a l'intentio= n exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par = erreur, merci de le detruire et d'en avertir
immediatement l'expediteur.= Toute utilisation de ce
message non conforme a sa destination, toute di= ffusion
ou toute publication, totale ou partielle, est interdite, sauf
autor= isation expresse. L'internet ne permettant pas
d'assurer l'integrite de = ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabili= te au titre de ce
message, dans l'hypothese ou il aurait ete modifie.


------=_Part_7897_12797181.1136920144155--