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.
This issue was reported manually by vv159170. It already has 1 duplicates Build: NetBeans IDE 7.0 (Build 201104080000) VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07 OS: Windows 7 User Comments: GUEST: Finding the usage of a method. Stacktrace: java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.MethodImpl cannot be cast to org.netbeans.modules.cnd.modelimpl.csm.core.FileComponentDeclarations at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getFileDeclarations(FileImpl.java:1878) at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getDeclarationsSize(FileImpl.java:1336) at org.netbeans.modules.cnd.modelimpl.impl.services.SelectImpl.analyzeFileFilter(SelectImpl.java:240) at org.netbeans.modules.cnd.modelimpl.impl.services.SelectImpl.getDeclarations(SelectImpl.java:230) at org.netbeans.modules.cnd.api.model.services.CsmSelect$Default.getDeclarations(CsmSelect.java:302) at org.netbeans.modules.cnd.api.model.services.CsmSelect.getDeclarations(CsmSelect.java:97)
Created attachment 110074 [details] stacktrace
*** Bug 201084 has been marked as a duplicate of this bug. ***
*** Bug 201079 has been marked as a duplicate of this bug. ***
*** Bug 201078 has been marked as a duplicate of this bug. ***
*** Bug 201075 has been marked as a duplicate of this bug. ***
Nick James, your issues is a result of broken cache. IDE cannot delete old cache. See messages in log: Cannot delete repository file C:\Users\Nick.James\.netbeans\7.0\var\cache\cnd\model... To fix problem you can: - use another user dir - or delete old user dir "C:\Users\Nick.James\.netbeans\7.0" - or clear cnd cache "C:\Users\Nick.James\.netbeans\7.0\var\cache\cnd" - or provide IDE access to user dir If proposed actions do not fix issues, reopen bug and provide more information why IDE cannot access to your user dir. Thanks, Alexander
*** Bug 201081 has been marked as a duplicate of this bug. ***
*** Bug 199957 has been marked as a duplicate of this bug. ***
Probably one cause is described in the bug #201120
*** Bug 201076 has been marked as a duplicate of this bug. ***
*** Bug 201760 has been marked as a duplicate of this bug. ***
*** Bug 203318 has been marked as a duplicate of this bug. ***
*** Bug 199103 has been marked as a duplicate of this bug. ***
I believe that cause of exceptions is a running two instances of IDE with one user dir.
fixed, change set: http://hg.netbeans.org/cnd-main/rev/3cc007fbcff1 - notify user if C/C++ cache is used by another instance of IDE.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/3cc007fbcff1 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #201086 Two instances of IDE are running with one user dir
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/7cf7f1780254 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #201086 Two instances of IDE are running with one user dir - fix message after reviewing
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/2de07ecc6332 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #201086 Two instances of IDE are running with one user dir - fix message after second reviewing