• Post Reply Bookmark Topic Watch Topic
  • New Topic

Lock wait timeout exceeded; try restarting transaction

 
vrushali chaskar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i m working on hibernate,myssql and struts2.
i have written one stored procedure in mysql. It has sql blocks like delete from tablename and after some processing i m inserting data in to the same table.Stored procedure is running successfully.
When one user is accessing the program which is executing stored procedure it is running successfully. but when another user is trying to accessing the same program then giving the error.

Caused by: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction


how to resolve it.

 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!