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 - NPE on CTRL-C in Remote Pack
Summary: NPE on CTRL-C in Remote Pack
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-18 10:40 UTC by Alexander Kouznetsov
Modified: 2007-07-18 17:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.