[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] NoSuchMethod aspectOf exception using LTW.
|
- From: Andy Clement <andrew.clement@xxxxxxxxx>
- Date: Wed, 23 Sep 2009 09:22:21 -0700
- Delivered-to: aspectj-users@eclipse.org
- 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 :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Q/6rIppqWzaw/pGhUGv0owW6t34VAK/+aLABfL6WwGs=; b=o0uuqtztaSqFRMvL8QW866/Y6LSyuseaVojyHpu2/dbkBy8XKX8P295pJSEMDsLL9P DljJtn+SrqplXAIWlBq/hvlR6Q0tkBEY5L7bAO6kjSQO8Rl4vuiV2vYtVvqC6EolqjoH IHHSNXLhkXXD7w2ALg45ThgFogdrK8TtypVZk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=hCfNUmS1waSbi1rQo0FzRRzqUr7LE+WSSCjFM9ukVNyzw7k9DTd+5tSJVGy4GsCSx/ uTe6qnAAg35sGZXXGYXhSsaQhQu4wEX2XM5EiXYgto195Jo1bdHMw+KivpQXK28bZ3cJ 7Hw7aXWWSCt27PPwJGZO9LczdkIV1AT7cv3VE=
Even if your aspect is defined with annotation style, and built with
javac, it must go through the weaver to be 'finished off' and become
usable as a real aspect. This pass through the weaver will create the
aspectOf() method that the woven code is trying to call. Is your
aspect being allowed to be finished off by a weaver instance?
Andy
2009/9/23 Shashikant Kale <Shashikant.Kale@xxxxxxxxxxxxxxxx>:
> Hi,
>
>
>
> I am using LTW in OSGi (equinox) environment. I am using
> eclipse.equinox.aspectj project to do this.
>
>
>
> However I am getting an exception
>
>
>
> Caused by: java.lang.NoSuchMethodError:
> com.arisglobal.aglite.aop.EntityAuditAspect.aspectOf()Lcom/arisglobal/aglite/aop/EntityAuditAspect;
>
> at com.arisglobal.aglitepq.entity.Emp.getDept(Emp.java:113)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
>
> at
> org.directwebremoting.extend.PropertyDescriptorProperty.getValue(PropertyDescriptorProperty.java:72)
>
>
>
> I have defined the EntityAuditAspect using @Aspect annotation and have
> defined the aspect in the aop.xml.
>
>
>
> I have checked that the target class is getting weaved fine and see that the
> call to aspectOf method of EntityAudit aspect is getting generated in the
> resulting byte code. However this method doesn’t exist in my aspect class.
>
>
>
> I am sure this exception has been resolved long back. However I am not able
> to figure out why would this occur in my case?
>
>
>
> Could somebody please throw some light on this?
>
>
>
> Thanks,
>
> Shashi
>
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>