JDK-6437701 : NPE is thrown when TMP set to non-existent directory
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 5.0,6,6u22,7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2000,windows_xp
  • CPU: generic,x86
  • Submitted: 2006-06-13
  • Updated: 2012-02-02
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7 b12Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
On Windows when TMP variable is set to nonexistent directory, NullPointerException is thrown:

> set TMP=n:\nonexistent
> jps

Exception in thread "main" java.lang.NullPointerException
        at sun.jvmstat.perfdata.monitor.protocol.local.LocalVmManager.activeVms(LocalVmManager.java:127)
        at sun.jvmstat.perfdata.monitor.protocol.local.MonitoredHostProvider.activeVms(MonitoredHostProvider.java:133)
        at sun.tools.jps.Jps.main(Jps.java:45)

> jconsole

(no connection dialog is displayed)

SUGGESTED FIX Webrev: http://bongo.india.sun.com/jvmstat/6437701/webrev/ See also the attachment "webrev.tar"

EVALUATION Check if TMP directory exists before using it.