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
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
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
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
В Птн, 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
; 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
>
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
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");
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
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
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?
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
---
12 matches
Mail list logo