Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 74475 invoked from network); 13 Feb 2010 03:09:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Feb 2010 03:09:37 -0000 Received: (qmail 55569 invoked by uid 500); 13 Feb 2010 03:09:36 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 55449 invoked by uid 500); 13 Feb 2010 03:09:34 -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 55438 invoked by uid 99); 13 Feb 2010 03:09:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2010 03:09:34 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of clinton.begin@gmail.com designates 74.125.92.150 as permitted sender) Received: from [74.125.92.150] (HELO qw-out-1920.google.com) (74.125.92.150) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2010 03:09:26 +0000 Received: by qw-out-1920.google.com with SMTP id 4so557522qwk.60 for ; Fri, 12 Feb 2010 19:09:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=YzULbtYTKLTKu4+mchU3JcKEjJfVvLMifSUmMs7I9y4=; b=J9b1f5WR0CDZwFPLq96XIayPjG+yiDj5HioJpjDaPezk/OQNDJiW4mgF+XDm5d1TKd uN+4wLLSosP/GqD7h92l1uZGZz5kV8ac7JoykEBxf1W8WS0rIOaxamSRzNsajm9rHhAR YbcchkKnlNesAGQOrnVUPdsc28+P0Fo8PpPvM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=rCVwpIlmNT9Ip43D07XcAQoxZD6hOwQn+9DN4mpjSjrI3nOQVC4RjOKhAbuMEyUuoi 87sacvTHDBa/KumkUgOT4XuINPyCjIwznqL6lZ03mIlL4rRyySWrxR3c7AuCKcn9UEiH d5DcIfh55zYV9FVvIoDi2jpXJn0aF7SZzd1TI= MIME-Version: 1.0 Received: by 10.224.72.10 with SMTP id k10mr1118540qaj.32.1266030545140; Fri, 12 Feb 2010 19:09:05 -0800 (PST) In-Reply-To: <835414.97830.qm@web43132.mail.sp1.yahoo.com> References: <835414.97830.qm@web43132.mail.sp1.yahoo.com> From: Clinton Begin Date: Fri, 12 Feb 2010 20:08:45 -0700 Message-ID: <16178eb11002121908q6e4b3993q7c60a59d79f464e2@mail.gmail.com> Subject: Re: Lazy Loading cglib error To: user-java@ibatis.apache.org Content-Type: multipart/alternative; boundary=00c09fa21e61eafe5c047f72b46d X-Virus-Checked: Checked by ClamAV on apache.org --00c09fa21e61eafe5c047f72b46d Content-Type: text/plain; charset=ISO-8859-1 I've never seen that one... but my guess is that somehow it's trying to proxy a null instance. But there's a check for that... hmm.. I just refactored the lazy loading implementation quite significantly. Try the trunk version. Clinton On Fri, Feb 12, 2010 at 6:36 AM, Eugenia Mastantuono < eugemastantuono@yahoo.com.ar> wrote: > Hi, I'm having problems enabling lazy loading. > Using: Ibatis 3 beta 9, cglib 2.2, asm 3.2. (into a netbeans platform > library module) > Everything works great with lazy loading disabled, selects, inserts, > updates, etc. but when I set lazy loading = true, the following error occurs > on every query: > > ### Error querying database. Cause: > net.sf.cglib.core.CodeGenerationException: > java.lang.reflect.InvocationTargetException -> null > ### The error may involve com.myapp.model.MyMapper.loadList-Inline > ### The error ocurred while setting parameters > ### Cause: net.sf.cglib.core.CodeGenerationException: > java.lang.reflect.InvocationTargetException -> null > > Any ideas? > Thanks in advance > > > > ------------------------------ > > Encontra las mejores recetas con Yahoo! Cocina. > http://ar.mujer.yahoo.com/cocina/ > --00c09fa21e61eafe5c047f72b46d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I've never seen that one... but my guess is that somehow it's tryin= g to proxy a null instance.=A0 But there's a check for that... hmm..
I just refactored the lazy loading implementation quite significantly.= =A0 Try the trunk version.

Clinton

On Fri, Feb 12, 2010 at 6:36 = AM, Eugenia Mastantuono <eugemastantuono@yahoo.com.ar> wrote:
Hi, I'm having problems enabling lazy loading.
Using: Ibatis = 3 beta 9, cglib 2.2, asm 3.2. (into a netbeans platform library module)
Everything works great with lazy loading disabled, selects, inserts, update= s, etc. but when I set lazy loading =3D true, the following error occurs on= every query:

### Error querying database. Cause: net.sf.cglib.core.= CodeGenerationException: java.lang.reflect.InvocationTargetException -> = null
### The error may involve com.myapp.model.MyMapper.loadList-Inline
### T= he error ocurred while setting parameters
### Cause: net.sf.cglib.core.C= odeGenerationException: java.lang.reflect.InvocationTargetException -> n= ull
=A0
Any ideas?
Thanks in advance




Encontra las me= jores recetas con Yahoo! Cocina.
http://ar.m= ujer.yahoo.com/cocina/

--00c09fa21e61eafe5c047f72b46d--