• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: unknown message appears in the command prompt

 
David Chan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When my GUI client is running, 2 message appears in the command prompt:
AWT-EventQueue-0 remove lock!
AWT-EventQueue-0 got lock!
I don't know where and why they come out. Does it mean something goes wrong in my program? Thanks for your help.

David
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ummm... is it possible that you have code somewhere that, well, prints messages like this? :roll: The "AWT-EventQueue-0" is probably the name of a Thread, generated by the system. But if you do a careful search for the phrase "remove lock!" I suspect you'll find it's in code you wrote yourself and forgot about...
 
David Chan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to Jim. Because I used EventQueue to search my code, I cannot find it out. Sorry
Mark or Andrew, please help to delete this topic thread......
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,
Sorry, didn't see this earlier. Are you saying that you have now resolved your problem?
If not, what version of the JDK are you using?
AWT-EventQueue-0 (event thread) invokes event-handling methods: actionPerformed(), keyPressed(), mouseClicked(), and windowClosing(). I am wondering whether you have two handlers registered for a single event causing some sort of clash. Or whether you are doing a long process in one handler causing timing issues.
Normally we do not delete threads like this - we prefer to leave them around in case someone else wants to look for that message. If you like we may move it to the Swing / JFC / AWT forum so that you can get opinions from the readers in that forum.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic