This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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...
 
Don't get me started about those stupid light bulbs.
 
subject: IllegalMonitorStateException: current thread not owner
 
Similar Threads
ActionForm null
Override DispatchAction but keep the existing funcationallity
Struts 1.2 ActionForward question
[Struts & Hibernate] Edit & Delete rows
How to use Struts Tags