[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] AspectJ 1.5.3: StackOverflow at org.aspectj.weaver.ReferenceType.isAssignableFrom

Hi everyone!

I'm having some problems using LTW and code defined aspects.

The actual error and stack trace is the following:

java.lang.StackOverflowError
    [junit]     at
java.util.WeakHashMap.expungeStaleEntries(WeakHashMap.java:269)
    [junit]     at java.util.WeakHashMap.getTable(WeakHashMap.java:297)
    [junit]     at java.util.WeakHashMap.get(WeakHashMap.java:341)
    [junit]     at org.aspectj.weaver.World$TypeMap.get(World.java:967)
    [junit]     at org.aspectj.weaver.World.resolve(World.java:250)
    [junit]     at org.aspectj.weaver.World.resolve(World.java:191)
    [junit]     at
org.aspectj.weaver.UnresolvedType.resolve(UnresolvedType.java:662)
    [junit]     at
org.aspectj.weaver.ReferenceType.getRawType(ReferenceType.java:550)
    [junit]     at
org.aspectj.weaver.ReferenceType.isAssignableFrom(ReferenceType.java:292)
    [junit]     at
org.aspectj.weaver.ReferenceType.isAssignableFrom(ReferenceType.java:276)

I was not able to reproduce the error. The error occurs always when
running a test case from ant. I can use the class without problems when
running the code directly.

Also, changing version to 1.5.0, gets me a similar error but in another
class....

In 1.5.3, after this error, I also get the following:

 [junit] INFO: Dumping to
/home/santi/workspace/dsmpp/./ajcore.20070212.151850.948.txt
    [junit] Feb 12, 2007 3:18:51 PM org.aspectj.weaver.tools.Jdk14Trace
error
    [junit] SEVERE: org.aspectj.weaver.ltw.LTWWorld@79ed7f
    [junit] java.lang.NullPointerException
    [junit]     at
org.aspectj.weaver.MemberImpl.toString(MemberImpl.java:419)
    [junit]     at java.lang.String.valueOf(String.java:2615)
    [junit]     at java.lang.StringBuffer.append(StringBuffer.java:220)
    [junit]     at
org.aspectj.weaver.ResolvedTypeMunger.toString(ResolvedTypeMunger.java:122)
    [junit]     at java.lang.String.valueOf(String.java:2615)
    [junit]     at java.lang.StringBuffer.append(StringBuffer.java:220)
    [junit]     at
org.aspectj.weaver.bcel.BcelTypeMunger.toString(BcelTypeMunger.java:77)
    [junit]     at org.aspectj.weaver.Dump.println(Dump.java:447)
    [junit]     at org.aspectj.weaver.Dump.access$200(Dump.java:41)
    [junit]     at org.aspectj.weaver.Dump$1.visitList(Dump.java:296)
    [junit]     at org.aspectj.weaver.World.accept(World.java:172)
    [junit]     at org.aspectj.weaver.ltw.LTWWorld.accept(LTWWorld.java:259)
    [junit]     at org.aspectj.weaver.Dump.dumpNodes(Dump.java:306)
    [junit]     at org.aspectj.weaver.Dump.dumpDefault(Dump.java:281)
    [junit]     at org.aspectj.weaver.Dump.dumpException(Dump.java:317)
    [junit]     at org.aspectj.weaver.Dump.dumpWithException(Dump.java:124)
    [junit]     at org.aspectj.weaver.Dump.dumpWithException(Dump.java:113)
    [junit]     at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:87)
    [junit]     at
org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:55)
    [junit]     at
sun.instrument.TransformerManager.transform(TransformerManager.java:122)
    [junit]     at
sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:155)
    [junit]     at java.lang.ClassLoader.defineClass1(Native Method)
    [junit]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    [junit]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    [junit]     at
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    [junit]     at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    [junit]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    [junit]     at java.security.AccessController.doPrivileged(Native
Method)
    [junit]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [junit]     at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    [junit]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:164)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:254)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
    [junit] Feb 12, 2007 3:18:51 PM org.aspectj.weaver.tools.Jdk14Trace info


I'm including the generated ajcore file with the messsage.

Any ideas or directions will be appreciated, and if anyone needs
additional info please ask!

Thanks,


-- 
santiago aguiar
*netlabs*
/ Palmar 2548
Montevideo, Uruguay
Tel. +(598 2) 707 7687
Fax. +(598 2) 709 4866
/ http://www.netlabs.com.uy

Attachment: ajcore.20070212.151850.948.zip
Description: Zip archive

begin:vcard
fn:Santiago Aguiar
n:Aguiar;Santiago
org:;Desarrollo
adr:;;Palmar 2548;Montevideo;Montevideo;11600;Uruguay
email;internet:saguiar@xxxxxxxxxxxxxx
title:NetLabs
tel;work:+598 2 7077687
tel;fax:+598 2 7094866
tel;home:+598 2 7075079
tel;cell:+598 99 579739
x-mozilla-html:TRUE
url:http://www.netlabs.com.uy/
version:2.1
end:vcard