I have a
Struts 2 application deployed on
Tomcat 6. I am facing an issue with a form which has a text field and a button. The button click action persists some data to the database.
I came across a problem today when I am invoking the action(button click) multiple times.
For e.g: Clicking the button 5-6 times. This causes my application to hang and I am not able to navigate to any other page in the application. Even re-starting the browser does help and my application gets into a some kind of a never ending deadlock ..
When I stop the tomcat server I get the following log messages on tomcat console:
After re-starting the server the application starts fine but the same problem reoccurs when I do the same action again (hitting the button 5-6 times).
Guys please help me to get rid of this issue.
Note:
I initially suspected the my database logic was causing some problem. So get rid of all db code and just did the following steps:
1. Created a form in the application with just one text field and a button
2. The action of the button was to hit some
java code and print a success message on the
jsp. (No db logic here)
3. When I hit the button more than 5-6 times my application hangs again.