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.
WinXP / JDK5u5 / NetBeans IDE 5.5 Beta2 / NetBeans Profiler Beta2. I was running the web application (project is exercise2) from the Profiler tutorial (http://www.netbeans.org/kb/articles/nb-profiler-tutor-8.html). The Profiler was running and I was doing memory profiling of Tomcat, as described in the tutorial. I chose Profile > Profile Main Project and clicked OK on the "do you want to stop the current profiling session and start a new one" dialog. The profiler then restarted but stopped with an error dialog that for the ClassCastException. Relevant portion of the message log is below. I doubt this is reproducible. Profiler.modifyCurrentProfiling: name: Preset: Liveness profilingType =4 overrideGlobalSettings =false workingDir = jvmArgs: javaPlatform =<project> threadsMonitoringEnabled =false excludeWaitTime =true cpuProfilingType =0 instrScheme =1 threadCPUTimerOn =false instrumentGetterSetterMethods =false instrumentEmptyMethods =false instrumentMethodInvoke =true instrumentSpawnedThreads =false nProfiledThreadsLimit =32 sortResultsByThreadCPUTime =false samplingInterval =10 instrumentationRootMethods =[] codeFragmentSelection =null codeRegionCPUResBufSize =1000 runGCOnGetResultsInMemoryProfiling =true allocTrackEvery =10 allocStackTraceLimit =-5 selectedInstrFilter = Instrumentation filter: Filter type: None Filter value: *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/juli/ClassLoaderLogManager$3, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/commons/logging/LogFactory$1, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/commons/logging/impl/Jdk14Logger, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/juli/ClassLoaderLogManager$2, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/juli/ClassLoaderLogManager$RootLogger, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/commons/logging/Log, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/commons/logging/LogFactory, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/commons/logging/LogFactory$3, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/commons/logging/LogFactory$2, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/commons/logging/impl/LogFactoryImpl, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/juli/FileHandler, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/juli/ClassLoaderLogManager$LogNode, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/juli/ClassLoaderLogManager$1, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:48 CDT 2006): class org/apache/juli/ClassLoaderLogManager$ClassLoaderLogInfo, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:49 CDT 2006): class org/apache/juli/ClassLoaderLogManager, ldr = 0 not found anywhere *** Profiler warning (Fri Jul 21 17:48:49 CDT 2006): class org/apache/commons/logging/impl/LogFactoryImpl$1, ldr = 0 not found anywhere >>> Profiler agent [port=5140, id=741640023]: STATE_INACTIVE >>> Profiler agent [port=5140, id=741640023]: STATE_INACTIVE >>> Profiler agent [port=5140, id=278109732]: STATE_BLOCKING >>> Profiler agent [port=5140, id=278109732]: STATE_BLOCKING Profiler.connectToStartedApp: ************************************************** Profiler.connectToStartedApp: profiling settings ------------------------------- name: Preset: Liveness profilingType =4 overrideGlobalSettings =false workingDir = jvmArgs: javaPlatform =<project> threadsMonitoringEnabled =false excludeWaitTime =true cpuProfilingType =0 instrScheme =1 threadCPUTimerOn =false instrumentGetterSetterMethods =false instrumentEmptyMethods =false instrumentMethodInvoke =true instrumentSpawnedThreads =false nProfiledThreadsLimit =32 sortResultsByThreadCPUTime =false samplingInterval =10 instrumentationRootMethods =[] codeFragmentSelection =null codeRegionCPUResBufSize =1000 runGCOnGetResultsInMemoryProfiling =true allocTrackEvery =10 allocStackTraceLimit =-5 selectedInstrFilter = Profiler.connectToStartedApp: session settings --------------------------------- mainClass: mainClassPath: F:\tools\windows\dev\netbeans\5.5\Beta2\enterprise3\apache-tomcat-5.5.17\common\lib\ant.jar:F:\tools\windows\dev\netbeans\5.5\Beta2\enterprise3\apache-tomcat-5.5.17\common\lib\commons-el.jar:F:\tools\windows\dev\netbeans\5.5\Beta2\enterprise3\apache-tomcat-5.5.17\common\lib\jasper-compiler.jar:F:\tools\windows\dev\netbeans\5.5\Beta2\enterprise3\apache-tomcat-5.5.17\common\lib\jasper-runtime.jar:F:\tools\windows\dev\netbeans\5.5\Beta2\enterprise3\apache-tomcat-5.5.17\common\lib\jsp-api.jar:F:\tools\windows\dev\netbeans\5.5\Beta2\enterprise3\apache-tomcat-5.5.17\common\lib\naming-factory-dbcp.jar:F:\tools\windows\dev\netbeans\5.5\Beta2\enterprise3\apache-tomcat-5.5.17\common\lib\naming-factory.jar:F:\tools\windows\dev\netbeans\5.5\Beta2\enterprise3\apache-tomcat-5.5.17\common\lib\naming-resources.jar:F:\tools\windows\dev\netbeans\5.5\Beta2\enterprise3\apache-tomcat-5.5.17\common\lib\servlet-api.jar mainArgs: jvmArgs = workingDir =F:\tools\windows\dev\netbeans\5.5\Beta2 javaExecutable =C:\tools\dev\java\jdk1.5.0_05\bin\java.exe javaVersionString =jdk15 portNo =5140 Profiler.connectToStartedApp: ************************************************** Instrumentation filter: Filter type: None Filter value: *********** Exception occurred ************ at 5:55 PM on Jul 21, 2006 java.lang.ClassCastException: com.sun.tools.profiler.wireprotocol.VMPropertiesResponse at com.sun.tools.profiler.ProfilerClient.forceObtainedResultsDump(ProfilerClient.java:530) at org.netbeans.modules.profiler.LiveResultsWindow.callForceObtainedResultsDump(LiveResultsWindow.java:347) at org.netbeans.modules.profiler.LiveResultsWindow.access$600(LiveResultsWindow.java:55) at org.netbeans.modules.profiler.LiveResultsWindow$5.run(LiveResultsWindow.java:371) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932) *********** Exception occurred ************ at 5:55 PM on Jul 21, 2006 java.lang.ClassCastException: com.sun.tools.profiler.wireprotocol.DumpResultsResponse at com.sun.tools.profiler.ProfilerClient.connectToServer(ProfilerClient.java:1321) at com.sun.tools.profiler.ProfilerClient.establishConnectionWithServer(ProfilerClient.java:134) at com.sun.tools.profiler.TargetAppRunner.connectToStartedVMAndStartTA(TargetAppRunner.java:577) at com.sun.tools.profiler.TargetAppRunner.connectToStartedVMAndStartTA(TargetAppRunner.java:171) at com.sun.tools.profiler.TargetAppRunner.connectToStartedVMAndStartTA(TargetAppRunner.java:166) at org.netbeans.modules.profiler.NetBeansProfiler.connectToStartedApp(NetBeansProfiler.java:534) at org.netbeans.modules.profiler.j2ee.J2EEProfilerSPI$3.run(J2EEProfilerSPI.java:527) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) [catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Already fixed in 5.5, but it is _not_ fixed in beta2. *** This issue has been marked as a duplicate of 69951 ***