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

Exceptions thrown in StartManagementAgent.java

XMLWordPrintable

        StartManagementAgent.java triggers a series of exceptions. It seems to be done on purpose since the port number it tries to attach to is "apa". Perhaps the problem is the code around the test that fails to handle the exception?

        [runApplication] Error: Invalid com.sun.management.jmxremote.port number: apa
        [runApplication] jdk.internal.agent.AgentConfigurationError: java.lang.NumberFormatException: For input string: "apa"
        [runApplication] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:334)
        [runApplication] at jdk.management.agent/jdk.internal.agent.Agent.startRemoteManagementAgent(Agent.java:387)
        [runApplication] Caused by: java.lang.NumberFormatException: For input string: "apa"
        [runApplication] at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        [runApplication] at java.base/java.lang.Integer.parseInt(Integer.java:652)
        [runApplication] at java.base/java.lang.Integer.parseInt(Integer.java:770)
        [runApplication] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:332)
        [runApplication] ... 1 more
        Detaching from VM ...
        Detached

              asapre Amit Sapre
              jwilhelm Jesper Wilhelmsson
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: