I am quite a newbie here. But so far I have only had aop-ajc.xml. I haven't been doing any customization, it is generated by ajc and lists all aspects in the jar in <aspect name="...."/> but so far my aspects have been working so it seems it can be used in ltw at runtime. I even got it to print:
[appclassloa...@17943a4] info using configuration file:/C:/perftest/mms-e2e-test-1.5.0554/lib/ext/aspect-include-none.jar!/META-INF/aop-ajc.xml On Mon, Jan 11, 2010 at 10:11 PM, <jeanlouis.pastu...@orange-ftgroup.com> wrote: > 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 Pandya > Envoyé : lundi 11 janvier 2010 17:21 > À : aspectj-users@eclipse.org > Objet : Re: [aspectj-users] setting -javaagent:aspectjweaver.jar results > inClassCircularityError > > I have the jar file which contains META-INF/aop-ajc.xml in classpath, not > the aop.xml itself. This jar, which defines no aspects works, in my test env > so I don't think the issue is that there are no aspects. > > >From where I am looking, you are a AspectJ guru :-) Any idea how I can > get the attention of someone even more knowledgeable? > > On Mon, Jan 11, 2010 at 9:27 PM, <jeanlouis.pastu...@****> wrote: >> <hemal> PS: Does it matter that there is a custom classloader?</hemal> >> 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-INF ( containing aop.xml) that >> must be in the classpath, not the file aop.xml >> >> 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 janvier 2010 16:44 À : aspectj-users@eclipse.org >> Objet : Re: [aspectj-users] setting -javaagent:aspectjweaver.jar >> results inClassCircularityError >> >> I have bundled the xml in a jar under META-INF. I am pretty sure the >> jar is in classpath; if I don't specify javaagent (so I don't see the >> error) then the win32 process locks the jar and does not allow removing > it. >> >> I noticed that the jar created by the iajc task has >> META-INF/aop-ajc.xml not META/aop-ajc.xml so I made that change, still I > get the same error. >> >> I tried the jar with a simple stand-alone java program and it does >> show a few info messages from aspectjweaver, the last one being "no >> aspects registered. Disabling weaver for class loader >> sun.misc.launcher$appclassloa...@17943a4. ". None of these show up in >> my work environment. >> >> I also tried a simple javaagent with a do-nothing transformer that >> prints the name of class. This works as expected both in the test and >> work environment. >> >> So: >> >> work env + aspectjweaver => error, no log messages work env + >> aspectjweaver >> + aop.xml excludes => error, no log messages test env + aspectjweaver >> + + >> aop.xml excludes => no error, got log messages work env + test >> javaagent => no error, log messages test env + test javaagent => no >> error, log messages >> >> So the only combination that does nothing right is my work env with >> aspectjweaver; and adding META-INF/aop.xml does not change anything. >> >> What does this mean? I have no clue. But I am hoping that you do, or >> at least can figure out some next steps for investigating. >> >> Thanks, >> - hemal >> >> PS: Does it matter that there is a custom classloader? I am sure it >> was there from before when my aspects used to work, but something may >> have changed in the env resulting in combination of that change and >> custom classloader to trigger this error. >> >> On Mon, Jan 11, 2010 at 7:27 PM, <jeanlouis.pastu...@****> wrote: >>> >>> 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 janvier 2010 14:48 À : aspectj-users@eclipse.org >>> Objet : Re: [aspectj-users] setting -javaagent:aspectjweaver.jar >>> results inClassCircularityError >>> >>> Sorry about the stupid mistake about the filename. I use XEmacs on >>> cygwin and it didn't tell me the filename case had changed. I have >>> attached the modified file. >>> >>> But after correcting that and setting options per your instructions, >>> I don't see anything in the logs to suggest aop.xml was loaded and >> processed. >>> >>> Now, Java VM is not started with java.exe on command line. There is a >>> container that starts Java, I believe using JNI. I don't know if this >>> changes anything but just an extra data point. >>> >>> Jean-Louis thank you very much for helping me with this. I am hoping >>> this will be resolved soon. I have no idea what I will do to produce >>> trace statistics if I can't get this to work :-( >>> >>> On Mon, Jan 11, 2010 at 6:01 PM, >>> <jeanlouis.pastu...@orange-ftgroup.com> >>> wrote: >>>> >>>> The name of the file is aop.xml not Aop.xml et add the tags >>>> <aspects></aspects> 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. >>>> >>>> >>>> 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 janvier 2010 13:16 À : >>>> aspectj-users@eclipse.org Objet : Re: [aspectj-users] setting >>>> -javaagent:aspectjweaver.jar results inClassCircularityError >>>> >>>> Thanks again Jean-Louis. >>>> >>>> I hadn't tried that earlier but I tried it right now and it did not >>>> help. I even tried with an aop.xml that has a single <include >>>> within="foo.*" /> and I still get the same error. I don't know if >>>> this list allows attachments. I have attached the two jars and I >>>> will appreciate if you can take a look to verify I have got it right. >>>> >>>> Is it possible that this is not weaving related but some other error >>>> that shows up due to presence of the weaver agent? How to find out >>>> what the root cause is? >>>> >>>> >>>> On Mon, Jan 11, 2010 at 4:28 PM, <jeanlouis.pastu...@****> wrote: >>>>> 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 la part de Hemal >>>>> Pandya Envoyé : lundi 11 janvier 2010 11:55 À : >>>>> aspectj-users@eclipse.org Objet : Re: [aspectj-users] setting >>>>> -javaagent:aspectjweaver.jar results inClassCircularityError >>>>> >>>>> I will really appreciate any suggestions or thoughts on this. I >>>>> don't even know where to look. Any ideas on how I can investigate this? >>>>> >>>>> >>>>> On Wed, Jan 6, 2010 at 4:42 PM, Hemal Pandya >>>>> <hemal.pan...@gmail.com> >>>> wrote: >>>>>> Thanks for your prompt response Jean-Louis. >>>>>> >>>>>> I need to recheck when I get access to that machine again, but I >>>>>> am pretty sure I got the error even without deploying any aspect >>>>>> jar in classpath, by just specifying the javaagent. Since there is >>>>>> no aop.xml, there is nothing to exclude. >>>>>> >>>>>> >>>>>> On Wed, Jan 6, 2010 at 4:13 PM, <jeanlouis.pastu...@****> wrote: >>>>>>> >>>>>>> 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 la part de Hemal >>>>>>> Pandya Envoyé : mercredi 6 janvier 2010 10:49 À : >>>>>>> aspectj-users@eclipse.org Objet : [aspectj-users] setting >>>>>>> -javaagent:aspectjweaver.jar results inClassCircularityError >>>>>>> >>>>>>> I use aspects to add some targeted tracing for performance analysis. >>>>>>> Everything used to work fine till this recent drop. Now, I get a >>>>>>> ClassCircularityError at start-up. Note that this happens even >>>>>>> without having any aspects in the classpath. >>>>>>> >>>>>>> I am using version 1.6.6. The stacktrace is partially as follows. >>>>>>> Is there any other information I can provide? >>>>>>> >>>>>>> Exception thrown in constructor of class: '*****'. Error description: >>>>>>> 'java.lang.ClassCircularityError: org/apache/log4j/LogManager'. >>>>>>> Stack trace: 'java.lang.ClassCircularityError: >>>>>>> org/apache/log4j/LogManager >>>>>>> at >>>>>>> org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java: >>>>>>> 7 >>>>>>> 3) >>>>>>> at >>>>>>> org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:209) >>>>>>> at >>>>>>> org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:221) >>>>>>> at .... >>>>>>> >>>>>>> Does this have something to do with using slf4j? I am completely > lost. >>>>>>> Any help is highly appreciated. >>>>>>> >>>>>>> Thanks in advance. >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>>> >>>>>> >>>>> _______________________________________________ >>>>> 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 >>>>> >>>> >>>> >>>> >>>> ********************************* >>>> 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 >>>> >>> >>> >>> >>> ********************************* >>> 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 >> > _______________________________________________ > 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 > _______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users