Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 34855 invoked from network); 6 Nov 2006 15:24:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2006 15:24:33 -0000 Received: (qmail 91500 invoked by uid 500); 6 Nov 2006 15:24:29 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 91445 invoked by uid 500); 6 Nov 2006 15:24:28 -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 91419 invoked by uid 99); 6 Nov 2006 15:24:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 07:24:28 -0800 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 (herse.apache.org: domain of jeffgbutler@gmail.com designates 64.233.184.224 as permitted sender) Received: from [64.233.184.224] (HELO wr-out-0506.google.com) (64.233.184.224) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 07:24:14 -0800 Received: by wr-out-0506.google.com with SMTP id i20so124965wra for ; Mon, 06 Nov 2006 07:23:53 -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=Na6STvbfXfzqU1rDs9Bf3cfvCG6l+V6XvZ5LIZg/tFvnAkcyde99JLrZlUKFVYUOu8SQdNQQ2QgwZRQ0js3aLeSyJqBkQuzBFFe1kB3sApKedUH46QalOxGDwhGY9Yc+vnmywD79WfaybPyLrvexTqagNZu4ztfGGesWWRicdXg= Received: by 10.78.117.10 with SMTP id p10mr6814647huc.1162826632711; Mon, 06 Nov 2006 07:23:52 -0800 (PST) Received: by 10.78.153.17 with HTTP; Mon, 6 Nov 2006 07:23:52 -0800 (PST) Message-ID: Date: Mon, 6 Nov 2006 09:23:52 -0600 From: "Jeff Butler" To: user-java@ibatis.apache.org Subject: Re: NumberFormatException: For input string: "" In-Reply-To: <5013a2cd0611060625m14f2ba8bj3037bd567beb194c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42213_22758828.1162826632674" References: <5013a2cd0611060151u47183fflc3aa22ef74026d4e@mail.gmail.com> <5013a2cd0611060625m14f2ba8bj3037bd567beb194c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_42213_22758828.1162826632674 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sort of - we didn't support nested tags before version 2.2.0. If you need to stick with an older version of iBATIS, then regenerate your objects with Abator - but specify generatorSet="Legacy" on your . Jeff Butler On 11/6/06, Nereida wrote: > > Thanks Jeff > Is it a bug of previous versions? > > > > On 11/6/06, Jeff Butler wrote: > > Upgrade to iBATIS version 2.2.0. > > > > Jeff Butler > > > > > > > > > > On 11/6/06, Nereida wrote: > > > Hi all, > > > i'm trying to get iBatis work with Abator. > > > I'm able to selct, update and delete by primary key but in get an > > > error when i try to select by example: > > > > > > TaskExample te = new TaskExample(); > > > te.createCriteria().andStatoGreaterThan(new Integer(0)); > > > List al = new ArrayList(); > > > al = tdao.selectByExample (te); > > > > > > Am i doing sth. wrong? > > > I get the following error: > > > > > > Caused by: java.lang.NumberFormatException: For input string: "" > > > at > > com.ibatis.common.beans.BaseProbe.getIndexedProperty(BaseProbe.java > > :86) > > > at > > com.ibatis.common.beans.ComplexBeanProbe.getProperty( > ComplexBeanProbe.java:297) > > > at > > com.ibatis.common.beans.ComplexBeanProbe.getObject(ComplexBeanProbe.java > :188) > > > at com.ibatis.common.beans.GenericProbe.getObject > > (GenericProbe.java:76) > > > at > > > com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.IterateTagHandler.doStartFragment > (IterateTagHandler.java:34) > > > at > > > com.ibatis.sqlmap.engine.mapping.sql.dynamic.DynamicSql.processBodyChildren > > (DynamicSql.java:157) > > > > > > ... 24 more > > > > > > > > > > > > -- > > > Se diventi milionario ricordati degli amici... > > > SuperEnalotto online: > > http://ad.zanox.com/ppc/?3481898C816095969T > > > > > > > > > > -- > Se diventi milionario ricordati degli amici... > SuperEnalotto online: http://ad.zanox.com/ppc/?3481898C816095969T > ------=_Part_42213_22758828.1162826632674 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Sort of - we didn't support nested <iterate> tags before version 2.2.0.  If you need to stick with an older version of iBATIS, then regenerate your objects with Abator - but specify generatorSet="Legacy" on your <abatorContext>.
 
Jeff Butler

 
On 11/6/06, Nereida <nereidahoxhaj@gmail.com> wrote:
Thanks Jeff
Is it a bug of previous versions?



On 11/6/06, Jeff Butler < jeffgbutler@gmail.com> wrote:
> Upgrade to iBATIS version 2.2.0.
>
> Jeff Butler
>
>
>
>
> On 11/6/06, Nereida <nereidahoxhaj@gmail.com > wrote:
> > Hi all,
> > i'm trying to get iBatis work with Abator.
> > I'm able to selct, update and delete by primary key but in get an
> > error when i try to select by example:
> >
> >        TaskExample te = new TaskExample();
> >        te.createCriteria().andStatoGreaterThan(new Integer(0));
> >        List al = new ArrayList();
> >        al = tdao.selectByExample (te);
> >
> > Am i doing sth. wrong?
> > I get the following error:
> >
> > Caused by: java.lang.NumberFormatException: For input string: ""
> >        at
> com.ibatis.common.beans.BaseProbe.getIndexedProperty(BaseProbe.java
> :86)
> >        at
> com.ibatis.common.beans.ComplexBeanProbe.getProperty(ComplexBeanProbe.java:297)
> >        at
> com.ibatis.common.beans.ComplexBeanProbe.getObject(ComplexBeanProbe.java:188)
> >        at com.ibatis.common.beans.GenericProbe.getObject
> (GenericProbe.java:76)
> >        at
> com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.IterateTagHandler.doStartFragment (IterateTagHandler.java:34)
> >        at
> com.ibatis.sqlmap.engine.mapping.sql.dynamic.DynamicSql.processBodyChildren
> (DynamicSql.java:157)
> >
> > ... 24 more
> >
> >
> >
> > --
> > Se diventi milionario ricordati degli amici...
> > SuperEnalotto online:
> http://ad.zanox.com/ppc/?3481898C816095969T
> >
>
>


--
Se diventi milionario ricordati degli amici...
SuperEnalotto online: http://ad.zanox.com/ppc/?3481898C816095969T

------=_Part_42213_22758828.1162826632674--