Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Why i get java.lang.NoSuchFieldError ?

Glad you are working.  Those two bugs are still open because I have to
work out a better way to handle it - perhaps by implicitly weaving the
aspects you mention in the concrete section of the XML.

Andy.

On 13/11/2007, Jean-Louis PASTUREL
<jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx> wrote:
>
>
> "Bravo" Andy,
> You solve my problem.
> I make the mistake believing that aspects declared in aspectj element in
> aop.xml are woven by default.
>
>
> Jean-Louis Pasturel
> jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx
>
>
>
> -----Message d'origine-----
> De: Jean-Louis PASTUREL [mailto:jeanlouis.pasturel@xxxxxxxxxxxxx]
> Envoyé: mardi 13 novembre 2007 18:01
> À: 'aspectj-users@xxxxxxxxxxx'
> Objet: RE: [aspectj-users] Why i get java.lang.NoSuchFieldError ?
>
> Thanks Andy,
> My aspect ( package iep.perf.MyAspect)  is not woven itself. The bugs that
> you pointed are corresponding to my problem.
> My aspect is in another package than
> 'org.objectweb.jonas.webapp.jonasadmin..*'
> I will try adding id in the weaver/include tag and returns here to report
> the result.
>
> Best regards
>
>
> Jean-Louis Pasturel
> jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx
>
>
>
> -----Message d'origine-----
> De: aspectj-users-bounces@xxxxxxxxxxx
> [mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de Andy Clement
> Envoyé: mardi 13 novembre 2007 17:25
> À: aspectj-users@xxxxxxxxxxx
> Objet: Re: [aspectj-users] Why i get java.lang.NoSuchFieldError ?
>
> You must ensure the aspect type representing the XML concrete aspect
> itself is woven.  See these two bugs in bugzilla:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=166647
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=186322
>
> What is the name you are giving your generated aspect?  Is it being
> put into the package 'org.objectweb.jonas.webapp.jonasadmin..*' which
> would enable it to be included by the <weaver> include statement?
>
> Andy.
>
> On 13/11/2007, Jean-Louis PASTUREL
> <jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx> wrote:
> >
> >
> >
> >
> > I complete my post :
> >
> > This pointcut :
> >
> > expression="within(org.objectweb.jonas.webapp.jonasadmin..*)
> > AND  call(public *
> > org.objectweb.jonas.webapp.jonasadmin..*(..)) AND
> > !cflowbelow(call(public *
> > org.objectweb.jonas.webapp.jonasadmin..*(..)) ) "?
> >
> >
> >
> >
> >
> >  doesn't work with the element <weaver> filled like this :
> >
> > <weaver>
> >
> >             <include
> > within="org.objectweb.jonas.webapp.jonasadmin..*"/>
> >
> >             </weaver>
> >
> >
> >
> >
> > When I comment the include tag, it runs ! but there are error send to
> > console :
> >
> >
> >
> > [JClassLoader@5164f0] error can't determine superclass of missing type
> > org.objec
> >
> > tweb.jonas_ws.deployment.lib.MappingFileManager
> >
> > when weaving type
> > org.objectweb.jonas_ws.deployment.api.ServiceRefDesc
> >
> > when weaving classes
> >
> > when weaving
> >
> >  [Xlint:cantFindType]
> >
> > [JClassLoader@5164f0] error can't determine superclass of missing type
> > org.objec
> >
> > tweb.jonas_ws.deployment.lib.MappingFileManager
> >
> > when weaving type
> > org.objectweb.jonas_ws.deployment.api.ServiceRefDesc
> >
> > when weaving classes
> >
> > when weaving
> >
> >
> >
> > Is there a precedence  between the within clause of aspctj/concrete-aspect
> > tag and the within clause of weaver/include tag ?
> >
> > Cordialement / Best regards
> >
> > Jean-Louis PASTUREL
> >
> >
> >
> >  ________________________________
> >
> >
> > De : aspectj-users-bounces@xxxxxxxxxxx
> > [mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de
> > Jean-Louis PASTUREL
> >  Envoyé : mardi 13 novembre 2007 09:04
> >  À : aspectj-users@xxxxxxxxxxx
> >  Objet : [aspectj-users] Why i get java.lang.NoSuchFieldError ?
> >
> >
> >
> >
> > HI
> >
> > I get this Exception
> >  java.lang.NoSuchFieldError:ajc$cfowCounter$0
> >
> > With a pointcut defined in aop.xml like this :
> >
> > expression="within(org.objectweb.jonas.webapp.jonasadmin..*)
> > AND  call(public *
> > org.objectweb.jonas.webapp.jonasadmin..*(..)) AND
> > !cflowbelow(call(public *
> > org.objectweb.jonas.webapp.jonasadmin..*(..)) ) "?
> >
> >
> >
> > When i remove the !cflowbelow(..) condition there is no error.
> >
> > With AspectJ lastbuild :
> > aspectj-DEVELOPMENT-20071112180727.jar. Running on Windows
> > XP, JRockit 1.5.0_11
> >
> >
> >
> >
> >
> > Cordialement / Best regards
> >
> > Jean-Louis PASTUREL
> >
> >
> >
> > *********************************
> >  This message and any attachments (the "message") are confidential and
> > intended solely for the addressees.
> >  Any unauthorised use or dissemination is prohibited.
> >  Messages are susceptible to alteration.
> >  France Telecom Group shall not be liable for the message if altered,
> > changed or falsified.
> >  If you are not the intended addressee of this message, please cancel it
> > immediately and inform the sender.
> >  ********************************
> >
> > *********************************
> >  This message and any attachments (the "message") are confidential and
> > intended solely for the addressees.
> >  Any unauthorised use or dissemination is prohibited.
> >  Messages are susceptible to alteration.
> >  France Telecom Group shall not be liable for the message if altered,
> > changed or falsified.
> >  If you are not the intended addressee of this message, please cancel it
> > immediately and inform the sender.
> >  ********************************
> >
> > _______________________________________________
> > aspectj-users mailing list
> > aspectj-users@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> >
> >
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
> *********************************
> This message and any attachments (the "message") are confidential and intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> Messages are susceptible to alteration.
> France Telecom Group shall not be liable for the message if altered, changed or falsified.
> If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
> ********************************
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top