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 201792

Summary: ClassCastException: org.netbeans.lib.profiler.heap.InstanceDump cannot be cast to org.netbeans.lib.profiler.heap.PrimitiveArrayInstance
Product: profiler Reporter: Exceptions Reporter <exceptions_reporter>
Component: BaseAssignee: Tomas Hurka <thurka>
Status: RESOLVED FIXED    
Severity: normal CC: thurka
Priority: P3 Keywords: VISUALVM
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 181024
Attachments: stacktrace

Description Exceptions Reporter 2011-09-08 07:32:53 UTC
This issue was reported manually by thurka.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 20110908-6f37c5d112c9)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-384, Java(TM) SE Runtime Environment, 1.6.0_26-b03-384-10M3504
OS: Mac OS X

Stacktrace: 
java.lang.ClassCastException: org.netbeans.lib.profiler.heap.InstanceDump cannot be cast to org.netbeans.lib.profiler.heap.PrimitiveArrayInstance
   at org.netbeans.modules.profiler.heapwalk.OverviewController.getThreadName(OverviewController.java:547)
   at org.netbeans.modules.profiler.heapwalk.OverviewController.getStackTrace(OverviewController.java:469)
   at org.netbeans.modules.profiler.heapwalk.OverviewController.computeThreads(OverviewController.java:330)
   at org.netbeans.modules.profiler.heapwalk.ui.OverviewControllerUI$1.run(OverviewControllerUI.java:143)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1973)
Comment 1 Exceptions Reporter 2011-09-08 07:32:57 UTC
Created attachment 110513 [details]
stacktrace
Comment 2 Tomas Hurka 2011-09-08 07:36:53 UTC
Open heap dump from issue #201712 and click on 'Threads' in Overview tab.
Comment 3 Tomas Hurka 2011-09-08 07:50:55 UTC
Fixed in profiler-main.

changeset:   201153:4fc7ae06101d
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu Sep 08 09:48:10 2011 +0200
summary:     bugfix #201792, make getThreadName() more robust
Comment 4 Quality Engineering 2011-09-09 15:05:54 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/4fc7ae06101d
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #201792, make getThreadName() more robust