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 242881 - ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.core.ProjectImpl cannot be cast to org.netbeans.modules.cnd.modelimpl.csm.core.LibProjectImpl
Summary: ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.core.ProjectImpl c...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 241037 244358 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-13 18:46 UTC by titosanxez
Modified: 2014-11-19 12:32 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208372


Attachments
stacktrace (2.45 KB, text/plain)
2014-03-13 18:46 UTC, titosanxez
Details
stacktrace (2.61 KB, text/plain)
2014-03-31 13:16 UTC, Exceptions Reporter
Details
stacktrace (2.54 KB, text/plain)
2014-03-31 15:40 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description titosanxez 2014-03-13 18:46:32 UTC
Build: NetBeans IDE 8.0 RC1 (Build 201402242200)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Mac OS X

User Comments:
titosanxez: Opening a project group




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.core.ProjectImpl cannot be cast to org.netbeans.modules.cnd.modelimpl.csm.core.LibProjectImpl
   at org.netbeans.modules.cnd.modelimpl.csm.core.LibProjectImpl.createInstance(LibProjectImpl.java:100)
   at org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager$LibraryEntry.createUID(LibraryManager.java:623)
   at org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager$LibraryEntry.getLibrary(LibraryManager.java:613)
   at org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager$LibraryEntry.access$200(LibraryManager.java:588)
   at org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager.getLibraries(LibraryManager.java:135)
   at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getLibraries(ProjectBase.java:2786)
Comment 1 titosanxez 2014-03-13 18:46:36 UTC
Created attachment 146008 [details]
stacktrace
Comment 2 Exceptions Reporter 2014-03-28 10:09:58 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=208372
Comment 3 Exceptions Reporter 2014-03-31 13:16:06 UTC
Created attachment 146433 [details]
stacktrace

The exception throwed when i click on any method or variable.
Comment 4 Exceptions Reporter 2014-03-31 15:40:04 UTC
Created attachment 146440 [details]
stacktrace

Initial startup.  Windows 7.  Outlook 2010, Lync 2010, and newest Firefox running.
Comment 5 Alexander Simon 2014-05-25 20:01:57 UTC
20 reports => P2
Comment 6 Alexander Simon 2014-05-28 06:36:36 UTC
*** Bug 241037 has been marked as a duplicate of this bug. ***
Comment 7 Alexander Simon 2014-05-28 06:47:46 UTC
An attempt to fix:http://hg.netbeans.org/cnd-main/rev/4e9b3969c745Notes:1. Steps to reproduce are still unknown.2. Fixed non relocatable library key.3. Downgrade assertion and avoid class cast exception.4. Reinitialize library in this case.
Comment 8 Alexander Simon 2014-05-28 06:49:36 UTC
fix formatting in comment 7

An attempt to fix:
http://hg.netbeans.org/cnd-main/rev/4e9b3969c745

Notes:
1. Steps to reproduce are still unknown.
2. Fixed non relocatable library key.
3. Downgrade assertion and avoid class cast exception.
4. Reinitialize library in this case.
Comment 9 Quality Engineering 2014-05-30 02:22:51 UTC
Integrated into 'main-silver', will be available in build *201405300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4e9b3969c745
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #242881 ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.core.ProjectImpl cannot be cast to org.netbeans.modules.cnd.modelimpl.csm.core.LibProjectImpl
Comment 10 Quality Engineering 2014-06-04 15:27:36 UTC
Integrated into 'releases/release80', will be available in build *201406041415* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/e810f30c19ca
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #242881 ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.core.ProjectImpl cannot be cast to org.netbeans.modules.cnd.modelimpl.csm.core.LibProjectImpl
(transplanted from 4e9b3969c745ddfd364b15e64d2733432f09524b)
Comment 11 Vladimir Voskresensky 2014-11-19 12:32:27 UTC
*** Bug 244358 has been marked as a duplicate of this bug. ***