Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IllegalMonitorStateException: current thread not owner  RSS feed

kay lin
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All:
In my UpdatePayeeAction (it extends Action btw), I have the followinng line

and then i got

java.lang.IllegalMonitorStateException: current thread not owner
at java.lang.Object.wait(Native Method)
at com.sunlife.dx.paymentinquiry.struts.inquiry.UpdatePayeeAction.execute(

So my question is can i actually put the wait() in the execute method? if i want the execute() to pause a little bit,
because i want to pause a bit before the execute methods returns a response through ActionForward, how should I do
that correctly,

Please let me know...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!