Fixing Weird Threading Issues

6 AM October 17, 2006

For those of us with weird Java threading problems, StackTrace is magic. Try this:

  1. Start a Java application. Anything will do, even Eclipse or IDEA.
  2. Point your browser at their download page.
  3. Click the "Launch" icon.
  4. Click through the warnings on AdaptJ's dodgy Web Start certificate.
  5. Now, from the "Process" menu, select "Thread Dump". It shows a dialog with a drop down menu. Choose the process you started way back in step 1.
  6. Click OK
  7. Ta dah! You are the proud owner of shiny new stack trace.
By alang | # | Comments (2)
(Posted to javablogs and Java)

Comments

At 02:54, 18 Oct 2006 Mr Rohan wrote:

Doesn't Ctrl-Break from the console do the same thing?

(#)
At 04:30, 18 Oct 2006 Alan Green wrote:

True, Mr Rohan, but only if the Java process has a console. If running as a service, or via javaw.exe, then there's nowhere to press Ctrl-Break!

(#)

Add Comment




(Not displayed)






(Leave blank line between paragraphs. URLs converted to links. HTML stripped. Indented source code will be formatted with <pre> tags.)




© 2003-2006 Alan Green