Re: [aspectwerkz-user] Interface org.codehaus.aspectwerkz.annotation.Annotation is not visible from class loader

Alexandre Vasseur <[email protected]> Tue, 17 May 2005 09:13:21 +0200
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
Hi

If you can send a test case for that i.e. reproduce it that would
perhaps help. This error means that the classloader of the annotation
proxy we are building cannot see one interface that the proxy is asked
to implement (here AW Annotation).

Alex

On 5/14/05, Michael Nascimento <[email protected]> wrote:
> Hi folks,
> 
> This happens when I try to call Annotations.getAnnotations(..) running
> with JDK 1.5.0_03:
> 
> java.lang.IllegalArgumentException: interface
> org.codehaus.aspectwerkz.annotation.Annotation is not visible from
> class loader
>    at java.lang.reflect.Proxy.getProxyClass(Proxy.java:345)
>    at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:564)
>    at org.codehaus.aspectwerkz.annotation.Java5AnnotationInvocationHandler.getAnnotationProxy(Java5AnnotationInvocationHandler.java:169)
>    at org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper.getAnnotationInfo(AsmAnnotationHelper.java:304)
>    at org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper.extractAnnotations(AsmAnnotationHelper.java:280)
>    at org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper$MethodAnnotationExtractor.visitMethod(AsmAnnotationHelper.java:126)
>    at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.accept(Unknown
> Source)
>    at org.codehaus.aspectwerkz.reflect.impl.asm.AsmMethodInfo.getAnnotations(AsmMethodInfo.java:213)
>    at org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotations.getAnnotations(AsmAnnotations.java:127)
>    at org.codehaus.aspectwerkz.annotation.Annotations.getAnnotations(Annotations.java:168)
> 
> Has anyone seen this?
> 
> Regards,
> Michael
>