With 1.6.9 version, the call pointcut and thisEnclosingJoinPointStaticPart.getSourceLocation() statement run correctly. So Andy, you are certainly right about the origin of this issue. I updated the bug.
Cordialement / Best regards Jean-Louis Pasturel -----Message d'origine----- De : Jean-Louis PASTUREL [mailto:jeanlouis.pastu...@orange-ftgroup.com] Envoyé : lundi 7 février 2011 08:14 À : 'aspectj-users@eclipse.org' Objet : RE: [aspectj-users] Problem with a call pointcut and thisJoinPointStaticPart.getSourceLocation()/thisEnclosingJoinPointStaticPart .getSourceLocation() statements I raised Bug 336471 and i will test with a 1.6.9 version. Cordialement / Best regards Jean-Louis Pasturel -----Message d'origine----- De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de Andy Clement Envoyé : vendredi 4 février 2011 16:59 À : aspectj-users@eclipse.org Objet : Re: [aspectj-users] Problem with a call pointcut and thisJoinPointStaticPart.getSourceLocation()/thisEnclosingJoinPointStaticPart .getSourceLocation() statements Interesting! I don't think we've ever had a method like that: org.aspectj.runtime.reflect.Factory.makeESJP(Ljava/lang/String;Ljava/lang/St ring;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String ;Ljava/lang/String;I) In the runtime. Can you raise a bugzilla? When you say it happens with other versions, how far back did you try, 1.6.9? I only ask because some changes went in around that area in 1.6.10 to enable us to produce smaller code when joinpoints didn't have certain characteristics (e.g. no exceptions). Andy On 4 February 2011 01:20, <jeanlouis.pastu...@orange-ftgroup.com> wrote: > > Hi, > LTW weaving, snapshot aspectJ dev build of 03 February 2011 ( but same > behaviour with others versions). I don't use Spring AOP agent, i use > aspectjweaver "native" javaagent. > > does this Exception mean anything to you ? > > With a execution pointcut no problem because thisJoinPointStaticPart > and > thisEnclosingJoinPointStaticPart.getSourceLocation() are the same JoinPoint. > > Whit call pointcut, when > thisEnclosingJoinPointStaticPart.getSourceLocation() runs i get this > exception > > 10:01:44,337 ERROR ContextLoader(215) - Context initialization failed > org.springframework.beans.factory.BeanCreationException: Error > creating bean wit h name > 'org.springframework.dao.annotation.PersistenceExceptionTranslationPos > tPr ocessor#0' defined in ServletContext resource > [/WEB-INF/jpaDaoContext.xml]: > Init > ialization of bean failed; nested exception is > org.springframework.beans.factory > .BeanCreationException: Error creating bean with name > 'myEntityManagerFactory' d efined in ServletContext resource > [/WEB-INF/jpaDaoContext.xml]: Invocation of in it method failed; > nested exception is java.lang.NoSuchMethodError: > org.aspectj.r > untime.reflect.Factory.makeESJP(Ljava/lang/String;Ljava/lang/String;Lj > ava/lang/S > tring;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang > /String;I) Lorg/aspectj/lang/JoinPoint$EnclosingStaticPart; > at > org.springframework.beans.factory.support.AbstractAutowireCapableBean > Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBean > Factory$1.run(AbstractAutowireCapableBeanFactory.java:409) > at java.security.AccessController.doPrivileged(Native Method) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBean > Factory.createBean(AbstractAutowireCapableBeanFactory.java:380) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb > ject(AbstractBeanFactory.java:264) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistr > y.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe > an(AbstractBeanFactory.java:261) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:185) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:164) > at > org.springframework.context.support.AbstractApplicationContext.getBea > n(AbstractApplicationContext.java:880) > at > org.springframework.context.support.AbstractApplicationContext.regist > erBeanPostProcessors(AbstractApplicationContext.java:596) > > > 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. > ******************************** > > _______________________________________________ > aspectj-users mailing list > aspectj-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > _______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org 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@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users