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 156833 - ClassCastException: org.netbeans.modules.profiler.NetBeansProfiler
Summary: ClassCastException: org.netbeans.modules.profiler.NetBeansProfiler
Status: RESOLVED WONTFIX
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-14 17:16 UTC by kaa
Modified: 2009-03-23 15:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 145191


Attachments
stacktrace (454 bytes, text/plain)
2009-01-14 17:17 UTC, kaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaa 2009-01-14 17:16:49 UTC
Build: NetBeans IDE Dev (Build 200901120201)
VM: Java HotSpot(TM) Server VM, 1.5.0_14-b03, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_14-b03
OS: Windows XP, 5.1, x86

User Comments:
kaa: 1. opned Core.ide project
2. install/reload in dev ide
3. cancel the process



Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.profiler.NetBeansProfiler
        at org.netbeans.modules.profiler.NetBeansProfiler.getDefaultNB(NetBeansProfiler.java:623)
        at org.netbeans.modules.profiler.ppoints.ProfilingPointsManager$2.run(ProfilingPointsManager.java:340)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 1 kaa 2009-01-14 17:17:05 UTC
Created attachment 75836 [details]
stacktrace
Comment 2 J Bachorik 2009-03-23 15:21:04 UTC
According to jglick:
"...module reloading is generally not very reliable. If it works, great, if not, don't use it: shut down the tested
platform, then F6 to rebuild the module and restart."

It seems that the profiler class is being loaded by 2 different classloaders. The workaround would be not to use
install/reload or disable profiler and hope no other module will have such problems.