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.
Created attachment 103091 [details] messages.log when the problem occurred I'm using NetBeans to develop GlassFish 3.1. I have a class with a method IsThisHostLocal. I want to rename it to isThisHostLocal. Someone added an isThisHostLocal method that calls the IsThisHostLocal method. I deleted the isThisHostLocalMethod. I then used refactoring to rename the IsThisHostLocal method. It failed with a NullPointerException. See attached messages.log.
Looks like duplicate of issue 192155, it ends up for Out Of Memory. What I am concerned about is that this one is reported against NB 6.9.1 !!!
The underlying issue may be the same, but the manifestation is quite different. 6.9.1 failed, told me about it, and kept going. 7.0beta had to be killed.
Indexing seems to have been pathologically slow, e.g.: INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: file:/Users/shannon/v3/web/web-ajp/src/main/java/ took: 14718 ms (New or modified files: 33, Deleted files: 0) [Adding listeners took: 9 ms] Seems the IDE was up to the very limits of its heap to begin with. 500Mb is skimpy for working with an enormous set of projects like this.
I believe I had cranked up the heap to 768MB. I recently increased it to 1GB.
Fixing issue 192155 will most likely resolve this issue as well. Leaving open for now as alternative test case.
Closing fixed with the fix of issue 192155. Soft-referencing MavenProject instances should allow as much heap as possible when needed for the scanning/refactoring needs. The heap usage is now even more flexible than with 6.9.1.