This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes AWT Component Loading Issue After Accessing it for a while Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "AWT Component Loading Issue After Accessing it for a while" Watch "AWT Component Loading Issue After Accessing it for a while" New topic
Author

AWT Component Loading Issue After Accessing it for a while

nazzy khan
Ranch Hand

Joined: May 06, 2010
Posts: 39

Hi,

I've a AWT Java application which is accessible by a JSP page. JSP pages are deployed in a web application and AWT classes are inside a Java application. Both web and Java is bundled in an ear file which is installed on an IBM websphere application server 7.

AWT application is launched by a JSP login page. There are different buttons in that AWT app to access different functionalities of the application. They all makes database call (simple CRUD operation) to save/update database record.

When multiple user (5 user) log in to the system with their credentials, after sometime, AWT application stops responding. Application starts hanging/freezing after sometime. When you click on one functionality, the child frame does not paint correctly and due to this, input form fields of child frame does not load. You have to close the AWT main window and then re-login to access the AWT application.


We're not able to replicate this with single user. We've then tested it with 4 user and there was no issue. When we've increased user to 5 i.e., 5 users concurrently accessing AWT application, then we have got this screen freezing problem (child frame components not loading correctly after sometime of access).

Does anyone have faced this issue in AWT?

Any idea how to approach and find the root cause for this.

Thanks,
Nazz
Manuel Petermann
Ranch Hand

Joined: Jul 19, 2011
Posts: 175

This sounds more like a concurrency problem in your database code than anything else.
I got little knowledge about jsp, so what i am saying might be totally wrong but it sounds like you run all your database code in the event dispatch thread so the gui is freezing when long running tasks or concurrent situation occur.


Please correct my English.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: AWT Component Loading Issue After Accessing it for a while
 
Similar Threads
Strange behavior while accessing the application through IP address
accessing standalone swing program
how to implement Concurrent access to records..Please help me URGENTLY
Run background process from JSP page
Weblogic to Tomcat session problem