Re: [aspectj-users] Aspectj LTW issue

2013-01-31 Thread jeanlouis.pasturel
Ok, sorry, i don't test LTW against Spring/Websphere Did try with the Spring-agent ? with the classic aspectj agent ( aspectjweaver.jar) ? disabling LTW in the Spring applicationContext.xml file with the classic agent? I know it is difficult to LTW weave with Spring, because itself also uses LTW

Re: [aspectj-users] Aspectj LTW issue

2013-01-30 Thread jeanlouis.pasturel
What is your App server ? Where did you change the policy of the classloaders ? Cordialement / Best regards Jean-Louis Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de Praks Envoyé : mercredi 30 janvier 2013 15:32 À : aspectj-

Re: [aspectj-users] Memory problem when using aspectj

2013-01-21 Thread jeanlouis.pasturel
Hello, Where did you set ( in which file) the Xmx, PermSize parameters ? 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 aryenneb Envoyé : mardi 22 janvier 2013 01:04 À

[aspectj-users] LTW: Weaving a class that extends an Abstract Class

2012-12-07 Thread jeanlouis.pasturel
hello, just a question about methods implemented in Abstract Classes : package mypackage; public abstract class A { public void myMethod() { System .out.println("myMethod in Abstract Class"); } } package mypackage; public class B extends A { } package mypackage; publ

Re: [aspectj-users] LTW: Aspect weaves without set in aop.xml

2012-12-05 Thread jeanlouis.pasturel
Ok, i reply to myself. I have found the problem. The test class is a same jar of the Aspects and compiled as thesame time with ajc in Eclipse. The AJDT detect the weving, and does the undesired weaving it at compile time Sorry for the noise Cordialement / Best regards Jean-Louis Pasturel

[aspectj-users] LTW: Aspect weaves without set in aop.xml

2012-12-04 Thread jeanlouis.pasturel
I have packaged several Aspects ( Concrete and Abstract) in a jar, with the core aspectjweaver.jar in one jar. The name is myaspectjweaver.jar and contains also a class test : jlp.aspectj.test.MainC3P0test I put my file aop.xml under META-INF/aop.xml of the jar myaspectjweaver.jar my aop.xml is

Re: [aspectj-users] LTW:Synchronizing a non synchronized method

2012-09-04 Thread jeanlouis.pasturel
Ok Thanks Andy 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é : mardi 4 septembre 2012 19:46 À : aspectj-users@eclipse.org Objet : Re: [aspectj-users

Re: [aspectj-users] LTW:Synchronizing a non synchronized method

2012-09-04 Thread jeanlouis.pasturel
Me again ... Perhaps a better pattern ? All the code of the around advice is synchronized What is the better/correct monitor ( this => the aspect or thisJoinPoint.getThis() => the woven class) ? public aspect MySynchronizor { public pointcut methods(): execution( public * *...(..));

[aspectj-users] LTW:Synchronizing a non synchronized method

2012-09-03 Thread jeanlouis.pasturel
To synchronize a not synchronized method, does this Aspect do correctly the job ? public aspect MySynchronizor { public pointcut methods(): execution( public * *...(..)); Object around(): methods() { Object retour = null; synchronized(this){ retour =

Re: [aspectj-users] LTW within Eclipse, with multiple class loaders

2011-05-05 Thread jeanlouis.pasturel
"I am using load-time weaving through an appropriate Eclipse launch configuration but *without any aop.xml* file" Interesting , how is it possible ? Cordialement / Best regards Jean-Louis Pasturel -Message d'origine- De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...

Re: [aspectj-users] Cannot register non aspect JDK 1.7

2011-04-17 Thread jeanlouis.pasturel
Try by removing pjp from the list of argNames, and certainly the object profiled must be a parameter of the advice doStuff Cordialement / Best regards Jean-Louis Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de Stephan Kni

Re: [aspectj-users] Problem with a call pointcut and thisJoinPointStaticPart.getSourceLocation()/thisEnclosingJoinPointStaticPart.getSourceLocation() statements

2011-02-06 Thread jeanlouis.pasturel
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-Lo

Re: [aspectj-users] Problem with a call pointcut and thisJoinPointStaticPart.getSourceLocation()/thisEnclosingJoinPointStaticPart.getSourceLocation() statements

2011-02-06 Thread jeanlouis.pasturel
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-

[aspectj-users] Problem with a call pointcut and thisJoinPointStaticPart.getSourceLocation()/thisEnclosingJoinPointStaticPart.getSourceLocation() statements

2011-02-04 Thread jeanlouis.pasturel
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 an

Re: [aspectj-users] The nightly dev-build server needs again another kick ...

2011-02-03 Thread jeanlouis.pasturel
Thanks Andy. 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 alter

Re: [aspectj-users] The nightly dev-build server needs again another kick ...

2011-02-03 Thread jeanlouis.pasturel
No more dev-build since 11th of January Andy, can you give a kick to the server, if necessary ? ;-) Thanks Cordialement / Best regards Jean-Louis Pasturel _ De : Jean-Louis PASTUREL [mailto:jeanlouis.pastu...@orange-ftgroup.com] Envoyé : mardi 11 janvier 2011 16:50 À : 'aspectj-us

Re: [aspectj-users] Weaving into an OSGi bundle

2011-01-14 Thread jeanlouis.pasturel
LTW Weaving AspectJ in OSGi is a bit tricky I had done it with a WAS ( OW2 JOnAS based on Felix) and it needs some JVM parameters to work around the MANIFEST configuration. To allow the parent classloader to load the agent Aspectj and/or other classes that are not bundlized, you have to set proper

[aspectj-users] The nightly dev-build server needs again another kick ...

2011-01-11 Thread jeanlouis.pasturel
Happy new year for everyone. No more dev-build since 14th of December.. Andy can you give a kick to the server ? ;-) Cordialement / Best regards Jean-Louis Pasturel _ De : Jean-Louis PASTUREL [mailto:jeanlouis.pastu...@orange-ftgroup.com] Envoyé : lundi 6 décembre 2010 08:16 À : 'as

Re: [aspectj-users] Is there any performance issue usingthisJoinPoint

2010-12-22 Thread jeanlouis.pasturel
Just another question about the if statement in the pointcut: does the order matter ? before(): execution(* *(..)) && if(GlobalLoggingFlagIsTrue); And before(): if(GlobalLoggingFlagIsTrue) && execution(* *(..)) ; have the same cost, when matching ? Cordialement / Best regards Jean-Louis Pastur

Re: [aspectj-users] New feature of Aspectj 1.6.11

2010-12-14 Thread jeanlouis.pasturel
Certainly the top. But what does "-i=5" mean? i() takes the default value ? Cordialement / Best regards JL Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de Matthew Adams Envoyé : mardi 14 décembre 2010 16:16 À : aspectj-users

Re: [aspectj-users] New feature of Aspectj 1.6.11

2010-12-14 Thread jeanlouis.pasturel
Because i am lazy ;-) and to avoid errors of orders of handling declare annotation ( order of + and - ). But I aggree it is a fallacious argument Cordialement / Best regards Jean-Louis Pasturel -Message d'origine- De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun..

Re: [aspectj-users] New feature of Aspectj 1.6.11

2010-12-13 Thread jeanlouis.pasturel
Andy, Your analysis is deeper than my first idea and more correct. @interface Foo { String value() default "abc"; int i() default 4; } and this annotated target @Foo(value="hello") int aField; declare @field: int aField: +...@foo(value,i=5) To 'preserve any value it might already have

Re: [aspectj-users] No Dev-build since 15th of October

2010-12-09 Thread jeanlouis.pasturel
I see that 1.6.11M1 includes removal Annotation for field. Just a question : Is this kind of declare annotation below, supported in the same aspect : ? @Aspect public class MyAspect { declare @field: int Foo.i: -...@anno(init=0); declare @field: int Foo.i: @Anno(init=5); ... } To override @Anno

Re: [aspectj-users] No Dev-build since 15th of October

2010-12-09 Thread jeanlouis.pasturel
Certainly a version to correct in aspecjtools : AspectJ Compiler 1.6.9 (DEVELOPMENT - Built: Wednesday Dec 8, 2010 at 16:30:15 GMT) Cordialement / Best regards Jean-Louis Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de jeanlou

Re: [aspectj-users] No Dev-build since 15th of October

2010-12-09 Thread jeanlouis.pasturel
Thanks Andy to update the dev builds. Have you written any document for the new Declare Annotation ( to override them) ? Is this feature yet implemented at current time, on dev build ? Cordialement / Best regards Jean-Louis Pasturel _ De : Jean-Louis PASTUREL [mailto:jeanlouis.pastu

[aspectj-users] No Dev-build since 15th of October

2010-12-05 Thread jeanlouis.pasturel
Is there a problem for updating the dev-buid package in the link of the home page, since 15th of October? I see that Eclipse plugin AJDT has a 1.6.11 dev version Cordialement / Best regards Jean-Louis Pasturel * This message and any attachments (the "messa

Re: [aspectj-users] aspectj joinpoint *for* Annotation ?

2010-11-23 Thread jeanlouis.pasturel
I add my vote ;-) 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é : mardi 23 novembre 2010 17:06 À : aspectj-users@eclipse.org Objet : Re: [aspectj-us

Re: [aspectj-users] aspectj joinpoint *for* Annotation ?

2010-11-23 Thread jeanlouis.pasturel
Ok ;-( So no possible overriding Annotations. I am also interested if it is a possible new feature ... 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 Frank Pavageau E

Re: [aspectj-users] aspectj joinpoint *for* Annotation ?

2010-11-22 Thread jeanlouis.pasturel
Pffft : Sorry for the noise. All is explained in documentation http://www.eclipse.org/aspectj/doc/released/adk15notebook/annotations-declar e.html Cordialement / Best regards Jean-Louis Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.or

[aspectj-users] aspectj joinpoint *for* Annotation ?

2010-11-22 Thread jeanlouis.pasturel
is there a mean to weave and overload an annotation with AspectJ LTW ? It would be interesting, for example to test with LTW weaving ORM ( Hibernate for fetching plan / strategy => lazy, eager) or caching policy ( Entirty/query cachable or not) when annotations are used instead of XML files an

Re: [aspectj-users] aspectj configuration question

2010-10-26 Thread jeanlouis.pasturel
AND ? I would expect an OR statement I will test it ... 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é : mardi 26 octobre 2010 18:32 À : aspectj-us

Re: [aspectj-users] How to get rid of raw types warning?

2010-10-04 Thread jeanlouis.pasturel
pointcut myPointCut(IGenericType list): target(list) && call(void updateList(..)); * replaced by .. Does-it run ? Cordialement / Best regards Jean-Louis Pasturel -Message d'origine- De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la

Re: [aspectj-users] AspectJ or ASM

2010-09-01 Thread jeanlouis.pasturel
Hi Rajaraman, yes you are right, AspectJ ( and LTW Weaving) will be a good tool for Java Monitoring. At work, i have developped some aspects, coupled with JMX or loging in flat files, to follow methods durations, call counters, pools ( threads, Apache common pool,JDBC, EJB ...) and more ... Cor

[aspectj-users] Development build not reachable

2010-07-20 Thread jeanlouis.pasturel
Why developpment builds aren't unreachable, on the download page ? 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 dissemin

RE: [aspectj-users] About target~

2010-07-09 Thread jeanlouis.pasturel
the directive cflowbelow ? Cordialement / Best regards Jean-Louis Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de ??? Envoyé : vendredi 9 juillet 2010 15:48 À : aspectj-users@eclipse.org Objet : Re: [aspectj-users] About ta

RE: [aspectj-users] About target~

2010-07-09 Thread jeanlouis.pasturel
is it always true when you over-load the method m in the Child class ? Cordialement / Best regards Jean-Louis Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de ??? Envoyé : vendredi 9 juillet 2010 15:36 À : aspectj-users@ec

RE: [aspectj-users] How to get caller method name, little urgent.

2010-06-09 Thread jeanlouis.pasturel
Look at the documentation, the difference between a call pointcut and an execution poincut and play with thisJoinPoint.getTarget() and thisJoinPoint.getThis() Cordialement / Best regards Jean-Louis Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@ecli

RE: [aspectj-users] How to apply advice to an interface in a jar?

2010-05-18 Thread jeanlouis.pasturel
And you have to add the option -Xset:weaveJavaPackages=true in the options of element weaver Cordialement / Best regards Jean-Louis Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de Simone Gianni Envoyé : mardi 18 mai 2010

RE: [aspectj-users] writing around advice for an unknown method

2010-03-19 Thread jeanlouis.pasturel
Object around(): { return proceed(); } Cordialement / Best regards -Message d'origine- De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de Ashank Envoyé : vendredi 19 mars 2010 11:56 À : aspectj-users@eclipse.org Objet : [aspectj-users] w

RE: [aspectj-users] avoid locked method invocation with an annotation

2010-02-14 Thread jeanlouis.pasturel
Are you sure you can use proceed method with a before advice? I think you can use it only with around advice. 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 Luca Ferra

RE: [aspectj-users] setting -javaagent:aspectjweaver.jar results inClassCircularityError

2010-01-11 Thread jeanlouis.pasturel
hummm aop-ajc.xml is use for developping aspect with ajc no? For ltw ( at runtime), aop.xml is needed, i beleive 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 Hemal Pa

RE: [aspectj-users] setting -javaagent:aspectjweaver.jar results inClassCircularityError

2010-01-11 Thread jeanlouis.pasturel
PS: Does it matter that there is a custom classloader? Certainly it does. I prefer that AspectJ gurus answer to this question ... ;-) Or perhaps a javaagent needs at least one aspect ?? That works in your work env, if i understand correctly yours testes. PS : Notice that it is the folder META-IN

RE: [aspectj-users] setting -javaagent:aspectjweaver.jar results inClassCircularityError

2010-01-11 Thread jeanlouis.pasturel
If your have no logs, that may show that aop.xml is not in the classpath of the JVM. 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 Hemal Pandya Envoyé : lundi 11 janvie

RE: [aspectj-users] setting -javaagent:aspectjweaver.jar results inClassCircularityError

2010-01-11 Thread jeanlouis.pasturel
The name of the file is aop.xml not Aop.xml et add the tags Set the weaver options to : options="-XnoInline -Xlint:ignore -verbose -showWeaveInfo -debug -Xset:weaveJavaPackages=true,weaveJavaxPackages=true,typeDemotionDebug=true" The logs must show if the aop.xml is correctly loaded. Cordial

RE: [aspectj-users] setting -javaagent:aspectjweaver.jar results inClassCircularityError

2010-01-11 Thread jeanlouis.pasturel
have-you try with an aop.xml without aspects but with the weaver element excluding the package containing the class with the problem ? Cordialement / Best regards Jean-Louis Pasturel -Message d'origine- De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De

RE: [aspectj-users] setting -javaagent:aspectjweaver.jar results inClassCircularityError

2010-01-06 Thread jeanlouis.pasturel
That seems similar than the bug i raised. You must exclude some classes See : https://bugs.eclipse.org/bugs/show_bug.cgi?id=295586 Cordialement / Best regards Jean-Louis Pasturel -Message d'origine- De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De

RE: [aspectj-users] LTW into javax.swing

2009-09-25 Thread jeanlouis.pasturel
I have made the same error few months ago. You have to set only one Xset like : -Xset:weaveJavaxPackages=true,weaveJavaPackages=true Jean-Louis Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de Kajetan Abt Envoyé : vend

RE: [aspectj-users] Intercept filter method

2009-09-03 Thread jeanlouis.pasturel
you again for the help. jeanlouis.pasturel-2 wrote: > > > I don't know Tapestry, and perhaps your pointcut doesn't map exactly the > doFilter method which is executed. > Try with a more generic pointcut like : > > > pointcut interceptor : execution(* &g

RE: [aspectj-users] Intercept filter method

2009-09-02 Thread jeanlouis.pasturel
I don't know Tapestry, and perhaps your pointcut doesn't map exactly the doFilter method which is executed. Try with a more generic pointcut like : pointcut interceptor : execution(* org.apache.tapestry5.TapestryFilter.doFilter(..) ); void around() : interceptor { System.out.pr

RE: [aspectj-users] Capturing multiple return values from recursive calls

2009-09-02 Thread jeanlouis.pasturel
What happens with an execution pointcut instead of a call pointcut ? Jean-Louis Pasturel -Message d'origine- De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de Dinkar Rao Envoyé : mercredi 2 septembre 2009 10:21 À : aspectj-users@eclipse.or

RE: [aspectj-users] [BUG?] java.lang.VerifyError with @AspectJannotation (but with a certain call to print, it works!?)

2009-08-31 Thread jeanlouis.pasturel
Perhaps there is confusion with the reserved Aspectj word thisJoinPoint used in jour advice @Around. I don’t know it is a bug ; I let AspectJ gurus answer when they will come back from holidays ;-) Cordialement / Best regards Jean-Louis Pasturel _ De : aspectj-users-boun...@e

RE: [aspectj-users] [BUG?] java.lang.VerifyError with @AspectJannotation (but with a certain call to print, it works!?)

2009-08-31 Thread jeanlouis.pasturel
Sorry João, I have not read your entire post correctly. Did you try with an “execution” pointcut ( not a call) ? Cordialement / Best regards Jean-Louis Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de João Gonçalves En

RE: [aspectj-users] [BUG?] java.lang.VerifyError with @AspectJannotation (but with a certain call to print, it works!?)

2009-08-31 Thread jeanlouis.pasturel
Perhaps a blank misses in the annoted pointcut : @Pointcut("call(public void figures.FigureElement+.move(int, int))" +"&& target(fe) && args(dx, dy)") Cordialement / Best regards Jean-Louis Pasturel _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...

[aspectj-users] Misunderstanding : execution pointcut with thisJoinPointStaticPart and thisEnclosingJoinPointStaticPart

2009-07-21 Thread jeanlouis.pasturel
I misunderstand the returns of ( I construct a StringBuffer) : append(thisJoinPointStaticPart.getSignature().getDeclaringTypeName()).append (".").append(thisJoinPointStaticPart.getSignature().getName()) and append(thisEnclosingJoinPointStaticPart.getSignature().getDeclaringTypeName( )).appe

RE: [aspectj-users] About aop.xml scope

2009-06-08 Thread jeanlouis.pasturel
Ok sorry for the noise ;( Cordialement / Best regards Jean-Louis Pasturel jeanlouis.pastu...@orange-ftgroup.com _ De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de fe.character.guide

RE: [aspectj-users] About aop.xml scope

2009-06-08 Thread jeanlouis.pasturel
Using aspectj ltw with Spring, as I have understood, needs to use the Spring LTW agent and to modify the application-context.xml file as explained : http://static.springframework.org/spring/docs/2.5.x/reference/aop.html#aop-u sing-aspectj § 6.8.4 and following Jean-Louis Pasturel jeanlouis

RE: [aspectj-users] method's calls

2009-04-27 Thread jeanlouis.pasturel
Just a piece of code with an around advice to give an idea public abstract pointcut methods(); Object around(): methods() { long deb = Calendar.getInstance().getTimeInMillis(); Object retour = proceed();

RE: [aspectj-users] LTW in Tomcat 6.0.14

2009-04-24 Thread jeanlouis.pasturel
Or : http://static.springframework.org/spring/docs/2.5.x/reference/aop.html#aop-a j-ltw Cordialement / Best regards Jean-Louis Pasturel jeanlouis.pastu

RE: [aspectj-users] LTW in Tomcat 6.0.14

2009-04-23 Thread jeanlouis.pasturel
When you use Spring and LTW, you have to add this line in the file applicationContext.xml of your web-app : in the mbeans element. See more info http://www.springindepth.com/book/aop-load-time-weaving.html And particular cases with Tomcat Cordialement / Best regards Jean-Louis Pasturel

RE: [aspectj-users] AJDT 1.6.5 RC

2009-04-17 Thread jeanlouis.pasturel
I use version 3.4.2 and I have had the infinite loop at starting. I was obliged to remove the folder of eclipse installation. Installing after eclipse 3.4.2 and AJDT 1.6.5, all run fine. But certainly, you are right, because my first installation of eclipse 3.4.2 was done without removing the old

RE: [aspectj-users] AJDT 1.6.5 RC

2009-04-17 Thread jeanlouis.pasturel
Work-around. Delete eclipse folder and re-install eclipse + AJDT 1.6.5 Perhaps the Software update is better than the brute force dezipping... Jean-Louis Pasturel -Message d'origine- De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de jean

RE: [aspectj-users] AJDT 1.6.5 RC

2009-04-17 Thread jeanlouis.pasturel
I have some problems to install this version of AJDT on Ganymede 3.4 : - after dezipping directly the zip archive in eclipse folder, eclipse cannot start ( it is automatically relaunched many times without starting) I have to modify eclipse/configuration/config.ini as shown below : #osgi.bundles=

RE: [aspectj-users] stack overflow during "delete and update aspectjmarkers"

2009-03-23 Thread jeanlouis.pasturel
Try to increase the stacksize like for example -Xss128K for the JVM in the eclipse.ini file parameters Jean-Louis Pasturel -Message d'origine- De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] De la part de Justin Case Envoyé : lundi 23 mars 2009 13:5

RE: [aspectj-users] Xset:weaveJavaxPackage not read in aop.xml

2009-01-22 Thread jeanlouis.pasturel
Thanks Andy Merging -Xset options corrects the problem Jean-Louis Pasturel ft/rosi/dps/iep/p-m Expertise WAS tél. 05 61 30 83 39 mob: 06 75 96 34 98 jeanlouis.pastu...@orange-ftgroup.com -Message d'origine- De : aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclip

[aspectj-users] Xset:weaveJavaxPackage not read in aop.xml

2009-01-21 Thread jeanlouis.pasturel
Before raising a bug, I would be sure that I have not made a mistake. I have a very basivc aop.xml like this : The start of the was detect the correct aop.xml ( package

[aspectj-users] LTW Agent Dynamic Attachement with Attach API

2009-01-06 Thread jeanlouis.pasturel
I have yet asked the question, and I made a try. JDK 1.6 brings Sun Api to dynamically load java Agent http://java.sun.com/javase/6/docs/technotes/guides/attach/index.html I test it with aspectjweaver.jar ( in fact a custom myaspectjweaver.jar that contains aspectjweaver.jar ) but I can't suc

RE: [aspectj-users] Use of Aspectj for tracing java programs

2008-12-11 Thread jeanlouis.pasturel
See in the docs pacjaged with aspectj aspectj\doc\examples\tracing Cordialement / Best regards Jean-Louis Pasturel De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Varun Gupta Envoyé : jeudi 11 décembre 2008 11:53 À : aspectj-users@eclipse.org Objet : [aspectj-users] Use

RE: [aspectj-users] org.aspectj.matcher.jar library ?

2008-12-01 Thread jeanlouis.pasturel
Thanks Andy. Cordialement / Best regards [EMAIL PROTECTED] _ De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Andy Clement Envoyé : lundi 1 décembre 2008 17:17 À : aspectj-users@eclipse.org Objet : Re: [aspectj-users] org.aspectj.match

[aspectj-users] org.aspectj.matcher.jar library ?

2008-12-01 Thread jeanlouis.pasturel
Hello, With the version 1.6.2, there is a new library added : org.aspectj.matcher.jar In a few words, what is its roles ? Is it mandatory to add it in the classpath in LTW weaving ? Cordialement / Best regards [EMAIL PROTECTED] **

RE: [aspectj-users] Activing / de-activing aspectjweaver agentwithout stopping the JVM

2008-10-15 Thread jeanlouis.pasturel
My target is a LTW profiler. In most cases, there are no Aspects in the Application. The aspects added or removed are the Aspects of the profiler. But are there potential problems by LTW weaving an compiled time woven Application ? Use cases i think : - active /de-active / modifying the l

[aspectj-users] Activing / de-activing aspectjweaver agent without stopping the JVM

2008-10-15 Thread jeanlouis.pasturel
Hi all, Activing / de-activing aspectjweaver LTW agent without stopping the JVM ? A similar question, but not exactly the same, was asked few days ago. It seems it is not possible today with the version 1.6.x of Aspectj. Does the modification of the agent would be heavy to have the featu

RE: [aspectj-users] LTW+cflow+after/arround advice

2008-07-24 Thread jeanlouis.pasturel
Ramnivas, Thank you, for your clarification. Cordialement / Best regards Jean-Louis Pasturel [EMAIL PROTECTED] _ De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Ramnivas Laddad Envoyé : jeudi 24 juillet 2008 17:21 À : aspectj-users@e

RE: [aspectj-users] LTW+cflow+after/arround advice

2008-07-23 Thread jeanlouis.pasturel
Read : In line 47, i define an after advice. Cordialement / Best regards [EMAIL PROTECTED] _ De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de [EMAIL PROTECTED] Envoyé : jeudi 24 juillet 2008 08:43 À : aspectj-users@eclipse.org Objet : [a

[aspectj-users] LTW+cflow+after/arround advice

2008-07-23 Thread jeanlouis.pasturel
Hi, I want to catch duration of a method and the duration of the methods in the cflow scope of this method. I use LTW weaving. I try it with two kinds of strategiy for the advice : - around ( Aspect in issingleton PerClause) - before+after ( Aspect in percflow PerClause) The implement

RE: [aspectj-users] Tree caller method/ called method

2008-07-21 Thread jeanlouis.pasturel
OK Andy. It runs as expected Thank you Jean-Louis Pasturel [EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de [EMAIL PROTECTED] Envoyé : lundi 21 juillet 2008 07:50 À : aspectj-users@eclipse.org Objet : RE: [aspectj-users] Tree call

RE: [aspectj-users] Tree caller method/ called method

2008-07-20 Thread jeanlouis.pasturel
Thanks Andy, I take a look. Jean-Louis Pasturel [EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Andy Clement Envoyé : dimanche 20 juillet 2008 20:04 À : aspectj-users@eclipse.org Objet : Re: [aspectj-users] Tree caller method/ ca

RE: [aspectj-users] AspectJ Ant task bug ?

2008-07-09 Thread jeanlouis.pasturel
Ys ! My bad ! Thank you for the help. Jean-Louis Pasturel -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Andy Clement Envoyé : mercredi 9 juillet 2008 09:53 À : aspectj-users@eclipse.org Objet : Re: [aspectj-users] AspectJ Ant task bug ?

RE: [aspectj-users] AspectJ Ant task bug ?

2008-07-09 Thread jeanlouis.pasturel
Andy, Andrew, Sorry for my misunderstanding... I join the ant traces in the two compilations (with packaged classes and unpackaged classes) and the build.xml file With unpackaged classes in the inpath folder, the classes are not woven, with the packaged classes in the inpath they are woven.

[aspectj-users] AspectJ Ant task bug ?

2008-07-07 Thread jeanlouis.pasturel
I have two folder inpath : exemple1.jar jlp/exemple1/jvm13/ outpath : and a concrete Aspect : iep.perf.aspect13.concreteAspect.DurationSimpleMethod.aj this Ant Task runs fine : The args3.ls

RE: [aspectj-users] help on pointcuts weaving

2008-06-25 Thread jeanlouis.pasturel
So if all your classes are in the default package ( ie “without package”) The pointcut would be : withincode(public * Socket.getInetAddress(..)) && call(public * InetAdress.getLocalHost(..)) I think you have mixed the two expressions of the pointcut Jean-Louis Pasturel De : [EMAIL

RE: [aspectj-users] help on pointcuts weaving

2008-06-25 Thread jeanlouis.pasturel
What is the type returned by Socket.getInetAdrress(..) ? Jean-Louis Pasturel De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Neeraja Maniyani Envoyé : mercredi 25 juin 2008 16:20 À : aspectj-users@eclipse.org Objet : [aspectj-users] help on pointcuts weaving When you s

RE: [aspectj-users] help on pointcuts weaving

2008-06-25 Thread jeanlouis.pasturel
Sorry for the tipo error : replace the line : within(Package1..Package3) && call(.MyClass.method(..)) by within(Package1..Package3) && call(public * MyClass.method(..)) Jean-Louis Pasturel De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de [EMAIL PROTECTED] Envoyé : mercre

RE: [aspectj-users] help on pointcuts weaving

2008-06-25 Thread jeanlouis.pasturel
To which package , does the class Socket belongs ? When you write pointcuts for a method, you can write like : call ( public * Package1.Package2.Package3.MyClass.method(..)) Or within(Package1..Package3) && call(.MyClass.method(..)) The full Qualified Name of Class.method must be defin

RE: [aspectj-users] help on pointcuts weaving

2008-06-25 Thread jeanlouis.pasturel
If you want to weave a method excecuted/called in another method, you can use the withincode joinpoint. Jean-Louis Pasturel De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Neeraja Maniyani Envoyé : mercredi 25 juin 2008 12:00 À : aspectj-users@eclipse.org Objet : [aspect

RE: [aspectj-users] help on pointcuts weaving

2008-06-24 Thread jeanlouis.pasturel
Because : Socket.getInetadress.*(..) tries to catch a method of a method ! If you want to catch all methods beginning by getInetadress you must write : Socket.getInetadress*(..) witout the dot. Jean-Louis Pasturel _ De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part

RE: [aspectj-users] proceed() with Tomcat 5.5.x

2008-06-12 Thread jeanlouis.pasturel
Why proceed(..) ; ? Try proceed() ; Cordialement / Best regards Jean-Louis Pasturel [EMAIL PROTECTED] _ De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Tyler DeWitt Envoyé : vendredi 13 juin 2008 00:43 À : aspectj-users@eclipse.org O

RE: [aspectj-users] using -javaagent (aj5)

2008-06-09 Thread jeanlouis.pasturel
Be care of the classpath of META_INF If aop.xml is located at \META-INF\aop.xml The correspondent classpath must be : and not \META-INF Cordialement / Best regards Jean-Louis Pasturel _ De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Tyler DeWitt Envoyé : l

RE: [aspectj-users] What's the different between call and execution

2008-06-04 Thread jeanlouis.pasturel
To add my two cents : With a call pointcut you are able to handle the source and the target, with an excecution pointcut you can handle the source only. It is more academically said below. Cordialement / Best regards Jean-Louis Pasturel _ De : [EMAIL PROTECTED] [mailto:[EM

RE: [aspectj-users] Method duration, a hint without using around advice ?

2008-04-28 Thread jeanlouis.pasturel
OK thanks Jean-Louis Pasturel [EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Bruno De Fraine Envoyé : lundi 28 avril 2008 09:00 À : aspectj-users@eclipse.org Objet : Re: [aspectj-users] Method duration,a hint without using aroun

RE: [aspectj-users] Method duration, a hint without using around advice ?

2008-04-28 Thread jeanlouis.pasturel
I answer to myself… Perhaps with Thread.currentThread().getId() with timeStamp stored in a Collection ( HashMap ), and thread Id + method as key of the collection .. are there others solutions ? Cordialement / Best regards Jean-Louis Pasturel [EMAIL PROTECT

[aspectj-users] Method duration, a hint without using around advice ?

2008-04-27 Thread jeanlouis.pasturel
What is the best hint to track the duration of methods without using around advice? And more exactly, how to link the before advice and the after advice of a method, when the object is multi-threaded? Cordialement / Best regards Jean-Louis Pasturel [EMAIL PROTE

RE: [aspectj-users] aspectjweaver Memory leak ?

2008-04-16 Thread jeanlouis.pasturel
Hello Andy and thanks It seems that you are right. The javacore relative to the heapdump says that there are 193 classloaders I don’t know if we can analyse IBM JVM heapdump with jhat but there are other IBM graphics tools ( jca, ha ) I am not allowed to send these logs, but I can inv

[aspectj-users] aspectjweaver Memory leak ?

2008-04-16 Thread jeanlouis.pasturel
Context : - JVM IBM 1.5.0 AIX 64 bits - LTW weaving classes in packages ( WebMethod IS server). The application is big I got a memory leak, with a lot of aspectj classes in the heapdump. Examples : - 590 000 instances of org.aspectj.ReferenceType - 430 000 instances of o

RE: [aspectj-users] RE: Exception LTWeaving with Jacorb

2008-02-21 Thread jeanlouis.pasturel
Unfortunately it doesn’t solve the problem. Hope for help … Cordialement / Best regards Jean-Louis Pasturel [EMAIL PROTECTED] _ De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de [EMAIL PROTECTED] Envoyé : jeudi 21 février 2008 08:34 À

[aspectj-users] RE: Exception LTWeaving with Jacorb

2008-02-20 Thread jeanlouis.pasturel
It is maybe due to the absence of the packages javax.* and java.* ( => java.rmi.RemoteException and javax.rmi.CORBA.Util.mapSystemException …) I will try with it and I will say to you the result Cordialement / Best regards Jean-Louis Pasturel [EMAIL PROTECTED

[aspectj-users] Exception LTWeaving with Jacorb

2008-02-20 Thread jeanlouis.pasturel
Hi, Weaving with Jacorb : Is this kind of exception has a mean for someone : java.rmi.RemoteException: CORBA UNKNOWN 0 No; nested exception is: org.omg.CORBA.UNKNOWN: org.omg.CORBA.portable.UnknownException at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemEx