VisualVM
  1. VisualVM
  2. VISUALVM-128

NPE while getting information from remote JVM

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Beta 2
    • Fix Version/s: 1.1
    • Component/s: code
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      128

      Description

      Happens in both Beta 2 and RC ( RC hides it in the status bar though ).

      I am connecting from a local Linux x86 machine to a remote Linux x86_64 machine.

      Error message is:

      java.lang.NullPointerException
      at com.sun.tools.visualvm.jvm.MonitoredDataImpl.<init>(MonitoredDataImpl.java:82)
      at com.sun.tools.visualvm.jvm.JmxSupport$1$1.run(JmxSupport.java:279)
      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
      [catch] at
      org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

      Available data:

      PID, Host, JVM, Java Home, Heap dump on OOME, JVM arguments ( lower half tab ),
      System properties, all data in the 'threads' tab

      Unavailable data:

      Main class, arguments, JVM flags ( upper half line ), any data in the 'monitor' tab.

      Remote application is started with

      com.sun.management.jmxremote=
      com.sun.management.jmxremote.authenticate=false
      com.sun.management.jmxremote.port=1540
      com.sun.management.jmxremote.ssl=false

      and the data is properly available using jconsole.

      1. messages.log.gz
        5 kB
        rombert
      1. monitor-window.png
        20 kB

        Activity

        Hide
        rombert added a comment -

        Above where the remote JVMs.

        Local JVM is

        java version "1.6.0_05"
        Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
        Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)

        Show
        rombert added a comment - Above where the remote JVMs. Local JVM is java version "1.6.0_05" Java(TM) SE Runtime Environment (build 1.6.0_05-b13) Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)
        Hide
        lmalvent added a comment -

        I haven't been able to reproduce it with:

        VisualVM 1.0 RC running on:

        Linux version 2.4.21-53.EL running on i386
        1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19; Sun Microsystems Inc.

        Notepad running on:

        JVM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-b05, mixed mode)
        Java Home: /usr/lang/JAVA/jdk1.6_03/linux-amd64/jre

        FYI, using com.sun.management.jmxremote= is not required if
        com.sun.management.jmxremote.port=<port> has been specified.

        Also, explicit JMX connections do not show main class, arguments
        as this info cannot be retrieved from the JVM JMX model (known
        limitation).

        I think the only thing that fails is the Monitor tab.

        Show
        lmalvent added a comment - I haven't been able to reproduce it with: VisualVM 1.0 RC running on: Linux version 2.4.21-53.EL running on i386 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19; Sun Microsystems Inc. Notepad running on: JVM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-b05, mixed mode) Java Home: /usr/lang/JAVA/jdk1.6_03/linux-amd64/jre FYI, using com.sun.management.jmxremote= is not required if com.sun.management.jmxremote.port=<port> has been specified. Also, explicit JMX connections do not show main class, arguments as this info cannot be retrieved from the JVM JMX model (known limitation). I think the only thing that fails is the Monitor tab.
        Hide
        rombert added a comment -

        Created an attachment (id=71)
        Monitor window with empty output

        Show
        rombert added a comment - Created an attachment (id=71) Monitor window with empty output
        Hide
        thurka added a comment -

        This happens when you do remote monitoring with JMX (no jstatd running) and monitored application is
        started with -XX:+UseConcMarkSweepGC

        Show
        thurka added a comment - This happens when you do remote monitoring with JMX (no jstatd running) and monitored application is started with -XX:+UseConcMarkSweepGC
        Hide
        thurka added a comment -

        Fixed in trunk.

        Checking in MonitoredDataImpl.java;
        /cvs/visualvm/visualvm/jvm/src/com/sun/tools/visualvm/jvm/MonitoredDataImpl.java,v <--
        MonitoredDataImpl.java
        new revision: 1.11; previous revision: 1.10
        done
        Checking in JmxSupport.java;
        /cvs/visualvm/visualvm/jvm/src/com/sun/tools/visualvm/jvm/JmxSupport.java,v <--
        JmxSupport.java
        new revision: 1.26; previous revision: 1.25
        done

        Show
        thurka added a comment - Fixed in trunk. Checking in MonitoredDataImpl.java; /cvs/visualvm/visualvm/jvm/src/com/sun/tools/visualvm/jvm/MonitoredDataImpl.java,v <-- MonitoredDataImpl.java new revision: 1.11; previous revision: 1.10 done Checking in JmxSupport.java; /cvs/visualvm/visualvm/jvm/src/com/sun/tools/visualvm/jvm/JmxSupport.java,v <-- JmxSupport.java new revision: 1.26; previous revision: 1.25 done

          People

          • Assignee:
            thurka
            Reporter:
            rombert
          • Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: