Community
Participate
Working Groups
I have implemented a drag and drop functionality from a JFace viewer to GEF editor. When I run this code in the debug mode, I am getting the following exception. "Exception processing async thread queue". The following is the contents of the log file. !ENTRY org.eclipse.jdt.debug 4 120 2005-07-26 11:06:00.325 !MESSAGE Exception processing async thread queue !SUBENTRY 1 org.eclipse.jdt.debug 4 120 2005-07-26 11:06:00.325 !MESSAGE Exception processing async thread queue !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTInstructionCompiler.containsA LocalType(ASTInstructionCompiler.java:376) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTInstructionCompiler.visit (ASTInstructionCompiler.java:2670) at org.eclipse.jdt.core.dom.MethodInvocation.accept0 (MethodInvocation.java:236) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2497) at org.eclipse.jdt.core.dom.ReturnStatement.accept0 (ReturnStatement.java:135) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2497) at org.eclipse.jdt.core.dom.MethodDeclaration.accept0 (MethodDeclaration.java:501) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.TypeDeclaration.accept0 (TypeDeclaration.java:483) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.CompilationUnit.accept0 (CompilationUnit.java:299) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.createExpres sionFromAST(ASTEvaluationEngine.java:289) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.getCompiledE xpression(ASTEvaluationEngine.java:169) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.evaluate (ASTEvaluationEngine.java:78) at org.eclipse.jdt.internal.debug.ui.JavaWatchExpressionDelegate$EvaluationRunnabl e.run(JavaWatchExpressionDelegate.java:144) at org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run (JDIThread.java:2446) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76) !SUBENTRY 1 org.eclipse.jdt.debug 4 120 2005-07-26 11:06:00.325 !MESSAGE Exception processing async thread queue !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTInstructionCompiler.containsA LocalType(ASTInstructionCompiler.java:376) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTInstructionCompiler.visit (ASTInstructionCompiler.java:2670) at org.eclipse.jdt.core.dom.MethodInvocation.accept0 (MethodInvocation.java:236) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2497) at org.eclipse.jdt.core.dom.ReturnStatement.accept0 (ReturnStatement.java:135) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2497) at org.eclipse.jdt.core.dom.MethodDeclaration.accept0 (MethodDeclaration.java:501) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.TypeDeclaration.accept0 (TypeDeclaration.java:483) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.CompilationUnit.accept0 (CompilationUnit.java:299) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.createExpres sionFromAST(ASTEvaluationEngine.java:289) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.getCompiledE xpression(ASTEvaluationEngine.java:169) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.evaluate (ASTEvaluationEngine.java:78) at org.eclipse.jdt.internal.debug.ui.JavaWatchExpressionDelegate$EvaluationRunnabl e.run(JavaWatchExpressionDelegate.java:144) at org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run (JDIThread.java:2446) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76) !SUBENTRY 1 org.eclipse.jdt.debug 4 120 2005-07-26 11:06:00.325 !MESSAGE Exception processing async thread queue !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTInstructionCompiler.containsA LocalType(ASTInstructionCompiler.java:376) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTInstructionCompiler.visit (ASTInstructionCompiler.java:2670) at org.eclipse.jdt.core.dom.MethodInvocation.accept0 (MethodInvocation.java:236) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2497) at org.eclipse.jdt.core.dom.ReturnStatement.accept0 (ReturnStatement.java:135) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2497) at org.eclipse.jdt.core.dom.MethodDeclaration.accept0 (MethodDeclaration.java:501) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.TypeDeclaration.accept0 (TypeDeclaration.java:483) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.CompilationUnit.accept0 (CompilationUnit.java:299) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.createExpres sionFromAST(ASTEvaluationEngine.java:289) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.getCompiledE xpression(ASTEvaluationEngine.java:169) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.evaluate (ASTEvaluationEngine.java:78) at org.eclipse.jdt.internal.debug.ui.JavaWatchExpressionDelegate$EvaluationRunnabl e.run(JavaWatchExpressionDelegate.java:144) at org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run (JDIThread.java:2446) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
What is your watch expression? (trace shows a watch expression causes the exception).
I have lot of watch expressions. I do not know which one is causing the problem. I don't see this problem anymore once I removed all the watch expressions.
What build of Eclipse are you using ? I fixed similar problem in April (bug 88752). It may be the same problem.
I am using Eclipse 3.1
Yes I am getting the same problem and it occurs whenever I am using a watch expression on a variable that is out of scope. The message window tells me that the watch is pointing to a NullPointer I think. Exception processing async thread queue java.lang.NullPointerException I am using 3.1.1
Simon, can you provide a simple example that reproduces the problem?
(In reply to comment #7) > Simon, can you provide a simple example that reproduces the problem? > Not at the moment. I tried to do a cut down version of my class but it wont play. I am writing a Jazzy enabled version of the StyledText component. I can send you my code but it needs the Jazzy code as well. Mind I can send you that as well as I am obviously using it.
I have been looking at this and I can't get the problem to occur with a small application. It happens quite often when I am debugging larger applications but never when I am trying to create a small application to demonstrate it. Of course this could be the programming gods having their little joke. Sorry about that. Simon Meaden
I just noted that the OS is flagged as Win XP. I should note that I amusing Fedora Linux with 3.1.1. Simon Meaden
Do you see this error in 3.2? We need a test case in order to make progress.
Bug 119860 has a test case. *** This bug has been marked as a duplicate of 119860 ***