Possible Duplicate:
What is a stack overflow error?
What does it mean when there is a StackOverflowError in Java?
java.lang.StackOverflowError: null
Possible Duplicate:
What is a stack overflow error?
What does it mean when there is a StackOverflowError in Java?
java.lang.StackOverflowError: null
According to the Java API Documentations for the StackOverflowError
class, this error is thrown "when a stack overflow occurs because an application recurses too deeply".
Usually means there is a recursive function where the end condition never happens. It runs, filling the stack, until you get a StackOverflowError.
It means that you have pushed too many frames onto the Java interpreter stack. The JVM can handle a depth of nested functions that goes pretty deep, but sooner or later you need to draw the line in the sand and say, "if you nest things deeper than this, your program is probably misbehaving". You crossed that line.
See if you're using any recursive function calls, then rewrite them in their looping equivalents (if necessary). Unnecessarily recursive functions are 90% of the reasons you throw a stack overflow exception. Also, keep in mind that Java doesn't (yet) optimize tail end recursion (which is how other environments avoid stack overflows / runaway stack growth).
It means that the stack (the way the system keeps track of what has been executed) has overflowed (more was attempted to put on in than was allowed). This frequently means that you've got a recursive operation that's uncontrollably calling itself.