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

JMXMP server gets NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.0.1
    • 1.0
    • core-svc
    • None
    • 1.0.1
    • generic
    • generic

      Try to create a jmxmp server with an unallowed port like 1, and catch IOException caused by the creation, then try stop that server will get a NullPointerException.

      see the following code:

      JMXServiceURL u = null;
      JMXConnectorServer server = null;

      try {
      u = new JMXServiceURL(proto, null, 1);

      try {
      server = JMXConnectorServerFactory.newJMXConnectorServer(u, null, mbs);
      server.start();

      } catch (Exception e) {}
      server.stop();

            sjiang Shanliang Jiang (Inactive)
            sjiang Shanliang Jiang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: