StackOverflowError (Java)
In short: The call stack is full, usually through a recursion without end.
In more detail: Every method call needs space on the stack.
In Depth
Possible causes
- Recursion without a termination condition.
- Mutual calls.
Solutions
- Add a termination condition.
- Replace recursion with a loop.
- Rarely: raise the stack size (
-Xss).