Results 1 to 5 of 5
  1. #1
    ourip is offline Member
    Join Date
    Nov 2007
    Posts
    2
    Rep Power
    0

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

  2. #2
    ourip is offline Member
    Join Date
    Nov 2007
    Posts
    2
    Rep Power
    0

    Default

    If anyone ever gets this error (which I doubt), what you should do is simply clean and rebuild your project.
    This is what solved the problem for me.
    Ouri.

  3. #3
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    10

    Default

    Quote Originally Posted by ourip View Post
    If anyone ever gets this error (which I doubt), what you should do is simply clean and rebuild your project.
    This is what solved the problem for me.
    Ouri.
    Qurip, I want to thank you for posting your solution and concern for others with the same issue. I truly appreciate it. If more members with problems posted their updated solution to assist others, the forums would be a better and more efficient space.

    Thank you.
    -Capt
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

  4. #4
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    9

    Default

    "max stack exceeded" might also show you that you have a recursive algorithm problem.
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

  5. #5
    gogoc is offline Member
    Join Date
    May 2008
    Posts
    21
    Rep Power
    0

    Default

    max stack may occur due to to excessive recursion and i highly doubt that it has to do any thing with the thread and runnable approach because both uses the same technology for threading

Similar Threads

  1. Implementing a Stack Using two Queues
    By rhm54 in forum New To Java
    Replies: 3
    Last Post: 12-01-2010, 11:28 AM
  2. Replies: 1
    Last Post: 03-08-2008, 07:41 PM
  3. Stack not popping
    By bugger in forum New To Java
    Replies: 2
    Last Post: 01-28-2008, 05:59 PM
  4. Stack Trace
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-10-2007, 06:29 PM
  5. Help with heap and stack
    By coco in forum Advanced Java
    Replies: 1
    Last Post: 08-06-2007, 02:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •