aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "IllegalMonitorStateException: current thread not owner" Watch "IllegalMonitorStateException: current thread not owner" New topic
Author

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(UpdatePayeeAction.java:154)

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: http://aspose.com/file-tools
 
subject: IllegalMonitorStateException: current thread not owner