I'm getting a StackOverflowError in a multithreaded Java application in Eclipse. How does threading affect debugging this?

Question

Grade: Education Subject: Support
I'm getting a StackOverflowError in a multithreaded Java application in Eclipse. How does threading affect debugging this?
Asked by:
122 Viewed 122 Answers

Answer (122)

Best Answer
(464)
In multithreaded applications, a StackOverflowError can occur in any thread. Eclipse's debugging tools allow you to switch between threads to examine their individual call stacks. The error might not be in the thread you're currently debugging. Pay attention to which thread the error originates from in the Eclipse console and switch to that thread's perspective to analyze the stack trace. Thread interference can also indirectly contribute to recursive issues.