|
Exception: max stack exceeded
I get the following exception which I could not locate any information about on the internet:
Exception in thread "Thread-140" java.lang.VerifyError: max stack exceeded (class: aspects/MSDCoordinatorAspect method: <clinit>()V) at pc: 3
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java: 59)
at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:120)
at seller.BuyerProxy.run(BuyerProxy.java:77)
at java.lang.Thread.run(Thread.java:797)
BuyerProxy implements Runnable and I run it in a new thread:
Thread t = new Thread(proxy);
t.start();
when I wrote BuyerProxy as extending Thread and used the line:
proxy.start();
to run it, everything worked well. but I need it to run several times so I had to switch to the Runnable approach. (the exception happens on the first time it runs and it runs alone when it happens)
I don't know if the following is relevant but the mentioned class: aspects/MSDCoordinatorAspect is an aspect written in AspectJ.
Appreciate any help or hints,
thanks, Ouri.
|