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 110113

Summary: NPE on CTRL-C in Remote Pack
Product: profiler Reporter: Alexander Kouznetsov <mrkam>
Component: BaseAssignee: Tomas Hurka <thurka>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Alexander Kouznetsov 2007-07-18 10:40:12 UTC
Profiler 1.2 070717

Steps to reproduce
- Install Remote Pack for Windows
- Execute calibrate.bat
- Execute profile-xx.bat -jar Anagrams.jar
- Press CTRL-C after "Profiler Agent: Waiting for connection on port 5140 (Protocol version: 8)" string is shown
- RESULT: Exception is thrown:
Exception in thread "*** Profiler Agent Special Execution Thread 7" java.lang.NullPointerException
        at com.sun.tools.profiler.server.ProfilerServer.sendSimpleCmdToClient(ProfilerServer.java:734)
        at com.sun.tools.profiler.server.ProfilerServer$ShutdownWaitThread.run(ProfilerServer.java:135)
Comment 1 Tomas Hurka 2007-07-18 17:34:25 UTC
Note that CTRL-C works this way only on JDK 16, so you need to run profiler-16.bat
Comment 2 Tomas Hurka 2007-07-18 17:44:04 UTC
Fixed in trunk. 
On JDK16, CTRL-C now can be used to interrupt JVM start-up when Profiler Agent is waiting for connection.