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

JMXMP server gets NullPointerException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0.1
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      1.0.1
    • CPU:
      generic
    • OS:
      generic

      Description

      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();

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: