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

NPE is thrown when TMP set to non-existent directory

XMLWordPrintable

    • b12
    • generic, x86
    • windows_2000, windows_xp
    • Verified

        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)

              sundar Sundararajan Athijegannathan
              kshiroko Kirill Shirokov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: