Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6988963

NPE is thrown when TMP set to non-existent directory

XMLWordPrintable

    • generic
    • windows_xp

      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)

            dcubed Daniel Daugherty
            kshiroko Kirill Shirokov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: