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 201086 - Two instances of IDE are running with one user dir
Summary: Two instances of IDE are running with one user dir
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 199103 199957 201075 201076 201078 201079 201081 201084 201760 203318 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-18 11:02 UTC by Exceptions Reporter
Modified: 2011-10-24 14:12 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 180066


Attachments
stacktrace (8.18 KB, text/plain)
2011-08-18 11:02 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2011-08-18 11:02:46 UTC
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)
Comment 1 Exceptions Reporter 2011-08-18 11:02:52 UTC
Created attachment 110074 [details]
stacktrace
Comment 2 Alexander Simon 2011-08-18 19:07:00 UTC
*** Bug 201084 has been marked as a duplicate of this bug. ***
Comment 3 Alexander Simon 2011-08-18 19:07:52 UTC
*** Bug 201079 has been marked as a duplicate of this bug. ***
Comment 4 Alexander Simon 2011-08-18 19:08:39 UTC
*** Bug 201078 has been marked as a duplicate of this bug. ***
Comment 5 Alexander Simon 2011-08-18 19:09:33 UTC
*** Bug 201075 has been marked as a duplicate of this bug. ***
Comment 6 Alexander Simon 2011-08-18 19:20:06 UTC
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
Comment 7 Alexander Simon 2011-08-30 18:55:56 UTC
*** Bug 201081 has been marked as a duplicate of this bug. ***
Comment 8 Alexander Simon 2011-08-30 19:14:40 UTC
*** Bug 199957 has been marked as a duplicate of this bug. ***
Comment 9 Alexander Simon 2011-08-30 19:30:59 UTC
Probably one cause is described in the bug #201120
Comment 10 Alexander Simon 2011-09-07 19:33:58 UTC
*** Bug 201076 has been marked as a duplicate of this bug. ***
Comment 11 Alexander Simon 2011-09-08 10:12:36 UTC
*** Bug 201760 has been marked as a duplicate of this bug. ***
Comment 12 Alexander Simon 2011-10-10 18:30:00 UTC
*** Bug 203318 has been marked as a duplicate of this bug. ***
Comment 13 Alexander Simon 2011-10-17 07:44:42 UTC
*** Bug 199103 has been marked as a duplicate of this bug. ***
Comment 14 Alexander Simon 2011-10-18 12:49:46 UTC
I believe that cause of exceptions is a running two instances of IDE with one user dir.
Comment 15 Alexander Simon 2011-10-18 13:35:50 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/3cc007fbcff1
- notify user if C/C++ cache is used by another instance of IDE.
Comment 16 Quality Engineering 2011-10-19 14:18:13 UTC
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
Comment 17 Quality Engineering 2011-10-20 14:29:56 UTC
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
Comment 18 Quality Engineering 2011-10-24 14:12:10 UTC
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