File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes IllegalMonitorStateException: current thread not owner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "IllegalMonitorStateException: current thread not owner" Watch "IllegalMonitorStateException: current thread not owner" New topic

IllegalMonitorStateException: current thread not owner

kay lin
Ranch Hand

Joined: May 20, 2004
Posts: 132
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...
I agree. Here's the link:
subject: IllegalMonitorStateException: current thread not owner
It's not a secret anymore!