My current project won't run at all. There are absolutely zero compiler errors, but when I try to run it, I get this message:
Exception in thread "main" java.lang.ExceptionInInitializerError at t*****client.processing.C*****Manager.<init>(C*****Manager.java:35) at t*****client.T*****Client.<init>(T*****Client.java:115) at t*****client.T*****Client.main(T*****Client.java:49) Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol symbol: class R*****Code location: class t*****api.communication.T*****Packet at t*****client.processing.C*****Process.<clinit>(C*****Process.java:24) ... 3 more Java Result: 1(Class names have been redacted because my code is the intellectual property of my employer and classifies as a trade secret in my employment contract, and I don't want anyone mad at me. Sorry.)
I should mention I'm trying to run it from within the Netbeans IDE.
Here's the back story on my problem:
Everything was working just fine a few hours ago, then I had some trouble with my Subversion commit, which threw up a bunch of old deleted source files and packages from a previous version into my project directory. I spent some time re-deleting everything and getting the project's state back to the state it was in just before my last commit. I updated my Subversion repository with this latest version, which, as far as I can tell, is identical to what it was before the commit, which should be correct, yet now my code magically doesn't execute. Just throws the above exception.
I've tried cleaning and rebuilding all dependencies with no luck. Same error. It seems it can't find the symbol "R*****Code", which is a public static enum in my "T*****Packet" class. I've triple checked. R*****Code is there.
While I was hassling around with old files getting reimported back into my project, I noticed Netbeans put a red squiggly line under any reference to the R*****Code type, even though the type was clearly defined in T*****Packet. I cleaned and rebuilt, and that problem went away, however, its runtime equivalent is still here.
From what I can gather, I'm supposed to clear Netbeans' cache and restart the IDE to fix this. I haven't tried that, as I have never in many years ever had to clear the Netbeans cache. Am I just extraordinarily lucky until today or what? (Seriously. I have no clue.)
In other words, I'm really just looking for people's insight into this Netbeans cache bug, to see if anybody else has experienced frustrating stuff like this. Oh, and whether or not clearing the cache will fix my problem. I'm kinda afraid to try it for fear I'll break something else.