This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 210393

Summary: Netbeans runs it's own cache, not just compiled sources
Product: java Reporter: Koyotter
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Koyotter 2012-03-29 16:48:34 UTC

    
Comment 1 Koyotter 2012-03-29 17:01:33 UTC
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;
 reinstall netbeans;
 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!
Comment 2 Dusan Balek 2012-03-30 08:29:11 UTC
Have you tried to switch the 'Compile On Save' off for your project (Project->Properties->Build->Compiling)?
Comment 3 Koyotter 2012-03-31 14:34:11 UTC
(In reply to comment #2)
> Have you tried to switch the 'Compile On Save' off for your project
> (Project->Properties->Build->Compiling)?

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.
Comment 4 Jiri Prox 2012-04-04 14:30:32 UTC
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
Comment 5 Martin Balin 2015-09-17 11:15:30 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.