JDK-6988963 : NPE is thrown when TMP set to non-existent directory
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 6u22
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: generic
  • Submitted: 2010-10-01
  • Updated: 2012-02-02
  • Resolved: 2010-10-02
Related Reports
Duplicate :  
Description
CR 6437701 is fixed for JDK7, but still occurs with JDK6:

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)

Comments
EVALUATION Closing as duplicate of 6437701 after consulting with submitter.
02-10-2010

EVALUATION I'm confused. This bug recognizes the fact that this problem is fixed in JDK7 by 6437701 so why wasn't a subCR of that bug opened instead of a new bug? I'll check with the submitter.
01-10-2010