Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IllegalMonitorStateException: current thread not owner

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