Google Answers Logo
View Question
 
Q: problem in a multithreaded Java Application ( No Answer,   3 Comments )
Question  
Subject: problem in a multithreaded Java Application
Category: Computers > Programming
Asked by: rexa-ga
List Price: $5.00
Posted: 20 May 2004 19:05 PDT
Expires: 19 Jun 2004 19:05 PDT
Question ID: 349743
I have a multithreaded java application that throws eventdispatch
nullpointer exception if someone clicks repeatedly with their mouse on
a box that is listening for mouse pressed events. The application
either crashes or just disappears from the desktop, it happens only on
Dell X60 computers running win2k, I am using only java.awt, I have
read about threads created by me trying to update a GUI which can
cause the dispatcheventthread to misbehave, and that all gui related
stuff should be deferred to dispatch event thread using invokelater, I
did this but this does not seem to have fixed the problem.
Any pointers will be appreciated ?
Answer  
There is no answer at this time.

Comments  
Subject: Re: problem in a multithreaded Java Application
From: mailbala-ga on 21 May 2004 22:07 PDT
 
Dear brother,

You told that your program throws eventdispatch
nullpointer exception if someone clicks repeatedly with their mouse 

Null pointer exception is thrown whenver you create an object and if
it does not used properly in your programm ur.  You better make the
threads synchronized so that it will restrict the user to perform
overactions

still unsatisfied ... go to java.sun.com
Subject: Re: problem in a multithreaded Java Application
From: rexa-ga on 22 May 2004 10:15 PDT
 
I have made the threads synchronized and it still does not work, properly
Subject: Re: problem in a multithreaded Java Application
From: shameerantony-ga on 15 Jun 2004 22:24 PDT
 
Hi,
Can you please paste the method mousePressed and the exception.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy