JMXMP server gets NullPointerException

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.0.1
    • Affects Version/s: 1.0
    • Component/s: 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();

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: