After an upgrade to Netbeans 7.1 from netbeans 7.0.1, we have a bug in 2 computers, platform - Windows 7 and Linux Slackware.
A bug is - that clean/build project was successful, but after that, while running Java-project, we've got some exceptions - the first was NullPointerException. but in click on it in the log window,
the editor opens a place in code, where no any method body!
That error occured on mine (Linux) ant my colleague's (Windows ) 2 PC's.
We tried to do the following:
recompile project (clean and build);
delete ./netbeans in home directory;
re-checkout our Java sources from repository;
and much more. There was no effect.
I build the project by Ant from the command line, and then run from the command line withowt any error. Errors are only in netbeans, which runs unexisting and unactual code!!!
What is the CACHE in netbeans???
Now we are temporarily using Eclipse, and don't know how it happened. Netbeans are much more nice for us!
Have you tried to switch the 'Compile On Save' off for your project (Project->Properties->Build->Compiling)?
(In reply to comment #2)
> Have you tried to switch the 'Compile On Save' off for your project
Yes, we did it some times.
I remember - it was so when we upgraded netbeans to version 7.0.1.
There was the same problem, but this action helped us.
Unfortunately, now in version 7.1.1 there was no effect.
I've seen it as well. But I cannot figure out reliable steps to reproduce. It usually happens when I'm running single class and changing some String literals.
Disabling COS helps