Community
Participate
Working Groups
I20041216 Bug 81306 shows a stack trace saying that a deadlock occured during start up. It looks like the deadlock was resolved, but the trace doesn't provide enough information to debug this problem. It should at least show: - the classes that were being loaded at the time of the deadlock - the stacks of all the threads at the time of the deadlock
The message is providing all the info that are available at that time... The class that is being loaded and that caused the message is indicated in the message (for example in the bug you mentionned, it is org.eclipse.jdt.core.JavaCore$7). Showing the stack of all the thread is impossible in that case since Java does not expose API that allow it (Thread.dumpStack() applies to the current thread). If you know a trick then we'd happy to hear it because we are not really happy with the current state of this message.
Thread#getThreadGroup() is your friend.
I'm not sure what to do then, how do I get their stack trace?
Sorry, I looked at 1.5 API which you cannot rely on. Agreed that there is nothing you can do.