0

In my swing application the whole application is hanging when invoking click at one of the nodes (only one). I used jconsole to investigate the problem a little bit more and what I see when invoking this "hanging event" in AWT-EventQueue-1 occurs

locked java.awt.Component$AWTTreeLock@49f8e092

What can cause such behaviour? is it the reason why application doesn't response?

Łukasz Rzeszotarski
  • 5,791
  • 6
  • 37
  • 68
  • 4
    Please consider posting the relevant section of your code or an [SSCCE](http://sscce.org) version highlighting your issue – Sujay Sep 07 '12 at 15:11
  • it is hard here for example - because it is a production code, and more doesn't work only at specific environment (probably because of number of records in db) I wanted only a little help with interpreting this "locked java.awt.Component$AWTTreeLock@49f8e092 " or maybe someone had a problems with jide and a similar error. if not ok. – Łukasz Rzeszotarski Sep 07 '12 at 15:24
  • 1
    Have you tried googling "locked java.awt.Component$AWTTreeLock" ? – Guillaume Polet Sep 07 '12 at 15:31
  • @AndrewThompson: ermmm, I vote for an SSCCE as well :D – Sujay Sep 07 '12 at 15:51
  • 5
    For an SSCCE, here is one: http://www.javaspecialists.eu/archive/Issue101.html but I don't know if the OP can relate to that problem trivially. Anyway, the problem seems to be coming from manipulation of AWT/Swing UI elements within another thread than the EDT. The solution is always the same, move all those method calls in the EDT with SwingUtilities.invokeLater or SwingUtilities.invokeAndWait – Guillaume Polet Sep 07 '12 at 16:03

0 Answers0