This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IlegalStatusMonitorException  RSS feed

 
Ricardo Polero
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks
Sombody know how this exception happend ?
And How can i fix it?
Best Regards
Ricardo
 
Trevor Dunn
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you got that exception right. It does not show up in the api. Could it of been IllegalMonitorStateException. Assuming it is, this occurs because you have a thread trying to either wait on an object the thread does not have the montitor for or call notify on threads waiting on the object without owning the objects monitor
Trevor
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!