This only happens when I attempt to run my
JUnit test in the debugger. It does not happen when I run my JUnit test without debugger nor does it happen in a production run of my greater product.
org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array.
As the first line of my test (not in
setUp(), but in the first line of "real" code), I have:
GQUser is a class in another of the five smallish projects that make up my application. In the project of which my JUnit test is a part of, I get it via a JAR. Once I step past that statement, however, and I click on
smacko in the (debugger) Variables pane to see its value, the value appears as (the exception) noted above.
This happens regardless of whether I put this code in my test method or in
setUp().
I've Googled this and found 9 results--several people have seen this, some in exactly my same circumstances. Only 2 of them are interesting in that they have answers and neither shows any real explanation or an encouraging solution. One answer is by someone who completely gives up. The other one waffles. I've also asked around a bit here, but none of my acquaintances have ever seen it.
This mess absolutely destroys any chance I have of being able to step through my application as this class is used all over. While this situation is created to simplify what's happening (which it does very nicely), I have a class,
ProgGlobals, that must instantiate several pieces of static final data of this class in order to function. I am unable to see a way to program around it.
Thanks for reading this and for any comments made.
Russ Bateman