views:

1447

answers:

6

Hello, I am facing a problem while debugging in eclipse. I keep getting pop-up Exception processing async thread queue java.lang.NullPointerException

Does anyone know what the exact problem is?

Thanks Yogesh

A: 

What version of Eclipse are you using? What are you debugging, a simple Java SE application?

Tamás Mezei
I am using Eclipse 3.4.2 , well it's not a simple, but a complex Java SE application.
yogsma
You might try updating, sometimes Eclipse has rough points, this clearly seems to be an internal Eclipe problem. There was a similar bug in 2005, the debugger failed to compile some debug expressions. You might want to change them or select other debugging options.Any more details you can share?
Tamás Mezei
Thanks Tamas, I have automatic updates for eclipse, so it was not issue with that at least.
yogsma
A: 

Well, it sounds like the problem is either from trying to dereference a null pointer, or there's a timing problem related to use of multiple threads.

Can you provide any more information beyond the error window text?

Matt Ball
MattI am pasting the information which I see in details of that window"Exception processing async thread queue Exception processing async thread queue java.lang.NullPointerException Exception processing async thread queue java.lang.NullPointerException Exception processing async thread queue java.lang.NullPointerException"
yogsma
Okay, that's not really what I was asking about. It would be much easier to diagnose the problem with, for example, the conditions that cause the problem, or the code that causes the problem, or at least some basic information about /what/ you're debugging (as Tamas asked).
Matt Ball
Also, can you run the same code (not debugging) successfully, or does it throw a NullPointerException as well?
Matt Ball
MattThanks, I solved the problem. It was issue with the expressions I was evaluating all the time. I was not removing old expressions which I was watching earlier. I removed all expressions and it worked fine.
yogsma
+4  A: 

The problem was with the expressions watching while debugging. If those old expressions are not removed, it just keeps evaluating them and since they don't exist for current program, they keep throwing null pointer exception.

yogsma
A: 

thanks yogsma... i was getting the same exception and i removed all the old expressions from Expressions window and it is working fine now

syam
A: 

I had the same error but after following on of the solution in thread i managed to fix the error. I removed the expression list, i was watching, and debugged again. it worked fine. Thanks

manglesh
A: 

hai here i have a problem with progressbar when i change the status of the bar in tha programe it doest not raect immmediatly..but after finishing my process it suddenly complete 100% and says finshed.how to slove it

Ajay
What do you mean by changing the status of the bar in program?
yogsma