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 246626

Summary: ClassCastException: org.netbeans.lib.profiler.wireprotocol.Response cannot be cast to org.netbeans.lib.profiler.wireprotocol.VMPropertiesResponse
Product: profiler Reporter: _ gtzabari <gtzabari>
Component: EngineAssignee: Tomas Hurka <thurka>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: ebakke, jskrivanek
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 188308
Attachments: stacktrace
stacktrace

Description _ gtzabari 2014-08-22 05:47:11 UTC
Build: NetBeans IDE Dev (Build 201408170001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Windows 7

User Comments:
GUEST: Trying to launch a profiling session on a j2se app. 
I had previoously installed Netbeans 8.0, had problems with profiling and therefore uninstalled it. Profiling was working on NB 7.4 prior to this.

GUEST: I was  juste trying to re run Profile after an OutOfMemoryException in the previous Profile.

gtzabari: Profiling test, exception thrown.




Stacktrace: 
java.lang.ClassCastException: org.netbeans.lib.profiler.wireprotocol.Response cannot be cast to org.netbeans.lib.profiler.wireprotocol.VMPropertiesResponse
   at org.netbeans.lib.profiler.ProfilerClient.connectToServer(ProfilerClient.java:1760)
   at org.netbeans.lib.profiler.ProfilerClient.establishConnectionWithServer(ProfilerClient.java:847)
   at org.netbeans.lib.profiler.TargetAppRunner.initiateSession(TargetAppRunner.java:376)
   at org.netbeans.modules.profiler.NetBeansProfiler.tryInitiateSession(NetBeansProfiler.java:1014)
   at org.netbeans.modules.profiler.NetBeansProfiler.access$1300(NetBeansProfiler.java:180)
   at org.netbeans.modules.profiler.NetBeansProfiler$3.run(NetBeansProfiler.java:967)
Comment 1 _ gtzabari 2014-08-22 05:47:14 UTC
Created attachment 148831 [details]
stacktrace
Comment 2 ebakke 2015-01-28 20:57:59 UTC
Created attachment 151717 [details]
stacktrace

Attempting to start a profiling run of a NetBeans Platform Application.
Comment 3 Tomas Hurka 2015-04-22 11:13:09 UTC
Please provide steps how to reproduce it. Thanks.