views:

575

answers:

1

I'm running Eclipse for Java. I created a DOM version of an XML file. Now I want to change an attribute of an element in the file. I called a method that called a method in the class that controls the DOM, and I got a dialog box saying "JDI Thread Evaluations has encountered a problem. Exception processing async thread queue" while debugging.

I'm a relative newbie at Java and have not come across such an error, and I have no idea what's causing it.

If anyone has any suggestions as to the cause of the problem and/or ways to fix it ...

Thanks so much!

+2  A: 

The Java Debug Interface (JDI) is part of the Java Platform Debugger Architecture. One apparent way to trigger this exception occurs when an object's toString() method carelessly returns null. There's an interesting discussion here. You might want to try a different debugger, and it wouldn't hurt to validate your XML.

trashgod
interestingly enough, the next time I tried to run/debug the program, I didn't have any trouble.
chama
Indeed, several discussions mentioned intermittent failures. This always makes me think of thread synchronization problems: a deferred initialization, for example, that might appear `null` to one thread but not another.
trashgod