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 157431 - refactoring nullpointer exception
Summary: refactoring nullpointer exception
Status: RESOLVED DUPLICATE of bug 120577
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-26 11:56 UTC by farcat
Modified: 2009-01-27 12:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
as requested (128.25 KB, text/plain)
2009-01-26 12:52 UTC, farcat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description farcat 2009-01-26 11:56:51 UTC
about 2/3 of the time i try to rename a method in source code using the refactoring module the IDE throws a
nullpointerexception and tells me to report a bug against the java refactoring module (which is not in the list of the
more complicated bug reporting form).

I seem to remember filing a similar bug for 6.1 and got a could not be replicated result. I tried to replicate in simple
code but without success. The error message asks for a var/log/messages.log file to be attached, but i cannot find the
file in the NetBeans 6.5 or the Java directory (using automated search).
Comment 1 Peter Pis 2009-01-26 12:11:22 UTC
The messages.log is located in netbeas user directory. ($HOME/.netbeans/6.5/var/log) 
Comment 2 farcat 2009-01-26 12:52:20 UTC
Created attachment 76234 [details]
as requested
Comment 3 Peter Pis 2009-01-27 09:06:34 UTC
Reassigning to refactoring.
Comment 4 Jiri Prox 2009-01-27 12:32:36 UTC
this issue is already filed as issue 120577. The problem is that the meta data folder contains invalid data. The NPE is
only a result of this corruption. Unfortunately the exception does not say anything about why are the data invalid. So
any reliable steps to reproduce are welcome.

As a workaround, delete ${userdir}/var/cache/index folder and start IDE again (the start may take longer time since the
cache are recreated)

*** This issue has been marked as a duplicate of 120577 ***