Re: @InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-02 Thread Jun Tsai
If I access the object by spring directly,all works fine. Only when I use T4-B5 to inject the spring object proxyed with Spring-AOP,IllegalArgumentException was thrown. If I use T4-B5 to inject the spring object without spring-AOP.all works fine. why? Thanks. Jun Tsai On 9/2/05, jocsch <[EMAIL

Re: @InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-02 Thread jocsch
Just a thought: Did you try to extract an interface out of the class and make a proxy on the interface? Then cglib should be omitted and a jdk dynamic proxy (or something like that) would be created. Don't know if it works but I remember I had a similar issue with proxied classes once in spring tes

Re: @InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-02 Thread Jun Tsai
Krutyakov Roman wrote: В Птн, 02/09/2005 в 14:01 +0800, Jun Tsai пишет: Hmm, I'm using the @InjectObject to inject spring beans not proxyed with spring-aop and it's working great. but if use @InjectObject to inject spring beans proxyed with Spring-AOP ,It throws a java.lang.IllegalArgumentExc

Re: @InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-02 Thread Jun Tsai
Patrick Casey wrote: Maybe it's Hivemind that's doing the enhancing, not Spring? Alternately it might be the annotation library or some other agency. I've had a lot of weirdness with CGLIC enhanced classes in the past (like they screw up potentially simple things like using the == operato

Re: @InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-02 Thread Krutyakov Roman
В Птн, 02/09/2005 в 14:01 +0800, Jun Tsai пишет: > Hmm, I'm using the @InjectObject to inject spring > beans not proxyed with spring-aop and it's working great. but if use > @InjectObject to inject spring beans proxyed with Spring-AOP ,It throws > a java.lang.IllegalArgumentException: > arg

RE: @InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-02 Thread Patrick Casey
; To: Tapestry users > Subject: Re: @InjectObject spring beans proxyed with Spring-AOP problem. > > Patrick Casey wrote: > > CGLIB is an enhancement library that a lot of open source packages > > use to create dynamic proxies of your classes (usually to bolt on their >

Re: @InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-02 Thread Jun Tsai
Patrick Casey wrote: CGLIB is an enhancement library that a lot of open source packages use to create dynamic proxies of your classes (usually to bolt on their specific accessors and proxy code to your POJOs). It's used by both spring and hibernate pretty extensively, and it looks like yo

Re: @InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-02 Thread Jun Tsai
Patrick Casey wrote: One (possible serious voodoo) things that often help: Make all the methods of your testService public (not package scope, *public*). My TestService is: public class TestService{ public void test(){ System.out.println("okay");

RE: @InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-01 Thread Patrick Casey
n Tsai [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 01, 2005 11:48 PM > To: Tapestry users > Subject: Re: @InjectObject spring beans proxyed with Spring-AOP problem. > > Jun Tsai wrote: > > I find if I use > > > > @InjectObject("spring:testService&quo

Re: @InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-01 Thread Jun Tsai
Jun Tsai wrote: I find if I use @InjectObject("spring:testService") public abstract ITestService getTestService(); It throws a java.lang.IllegalArgumentException: argument type mismatch. If I use @InjectObject("spring:testService") public abstract Object getTestService(); ITestService

Re: @InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-01 Thread Jun Tsai
I find if I use @InjectObject("spring:testService") public abstract ITestService getTestService(); It throws a java.lang.IllegalArgumentException: argument type mismatch. If I use @InjectObject("spring:testService") public abstract Object getTestService(); I works great. What's happen?

@InjectObject spring beans proxyed with Spring-AOP problem.

2005-09-01 Thread Jun Tsai
Hmm, I'm using the @InjectObject to inject spring beans not proxyed with spring-aop and it's working great. but if use @InjectObject to inject spring beans proxyed with Spring-AOP ,It throws a java.lang.IllegalArgumentException: argument type mismatch. Jun Tsai ---