• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NX: unknown message appears in the command prompt

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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......
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic