• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

java.lang.StackOverflowError

Sorry, this is not really a repost but a subproblem of a thread I already closed.  Can you help me figure out why I'm getting a stack overflow error... I don't see how I'm doing infinite recursion.

All details at this thread.  
http://www.experts-exchange.com/Programming/Languages/Java/Q_23912788.html#a22981601

Admin this is not a repost, just a new problem with the same program.

Thank you.
0
ubuntuguy
Asked:
ubuntuguy
  • 2
  • 2
2 Solutions
 
MicheleMarconCommented:
Indeed, you are not doing an infinite recursion.

But you are doing a recursion which is more big than your stack.

Change your stack size with

java -Xss<size>
0
 
CEHJCommented:
Stack overflow can occur when a loop is never-ending too. Check your loops and put debug code in if necessary
0
 
ubuntuguyAuthor Commented:
Hey MicheleMarcon,

Do I change the stack size inside that class? Or do I run the command on the terminal?  Also, what would be a good size?
0
 
ubuntuguyAuthor Commented:
I checked my loops and I don't see any infinite work.... any ideas?
0
 
CEHJCommented:
What are you getting from your debugging traces?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now