Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] setting -javaagent:aspectjweaver.jar results inClassCircularityError

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-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de Hemal Pandya
Envoyé : lundi 11 janvier 2010 13:16
À : aspectj-users@xxxxxxxxxxx
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.pasturel@****> 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-bounces@xxxxxxxxxxx 
> [mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de Hemal Pandya 
> Envoyé : lundi 11 janvier 2010 11:55 À : aspectj-users@xxxxxxxxxxx 
> 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.pandya@xxxxxxxxx>
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.pasturel@****> 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-bounces@xxxxxxxxxxx 
>>> [mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de Hemal 
>>> Pandya Envoyé : mercredi 6 janvier 2010 10:49 À : 
>>> aspectj-users@xxxxxxxxxxx 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@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
>>>
>>
> _______________________________________________
> 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
>



*********************************
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.
********************************



Back to the top