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

sun/management/jmxremote/startstop/JMXStartStopTest.java failed with "BindException: Address already in use"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 18
    • Fix Version/s: tbd
    • Component/s: core-svc

      Description

      The following test failed in the JDK18 CI:

      sun/management/jmxremote/startstop/JMXStartStopTest.java

      Here's a snippet from the log file:

      **** Test thirteen ****
      Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+17-971/macosx-x64-debug.jdk/jdk-18/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/64df41f3-9513-4763-88fb-5112bffd450f/runs/fd83e152-6b3c-42e9-ae70-2363ee964b55/testoutput/test-support/jtreg_open_test_jdk_jdk_management/classes/1/sun/management/jmxremote/startstop/JMXStartStopTest.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+17-971/src.full/open/test/jdk/sun/management/jmxremote/startstop:/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/64df41f3-9513-4763-88fb-5112bffd450f/runs/fd83e152-6b3c-42e9-ae70-2363ee964b55/testoutput/test-support/jtreg_open_test_jdk_jdk_management/classes/1/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+17-971/src.full/open/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/jtreg.jar -cp /System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/64df41f3-9513-4763-88fb-5112bffd450f/runs/fd83e152-6b3c-42e9-ae70-2363ee964b55/testoutput/test-support/jtreg_open_test_jdk_jdk_management/classes/1/sun/management/jmxremote/startstop/JMXStartStopTest.d:/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/64df41f3-9513-4763-88fb-5112bffd450f/runs/fd83e152-6b3c-42e9-ae70-2363ee964b55/testoutput/test-support/jtreg_open_test_jdk_jdk_management/classes/1/test/lib -XX:+UsePerfData -Dcom.sun.management.jmxremote.port=53325 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=true TestApp ]
      [TestApp{test_13}]:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+17-971/macosx-x64-debug.jdk/jdk-18/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/64df41f3-9513-4763-88fb-5112bffd450f/runs/fd83e152-6b3c-42e9-ae70-2363ee964b55/testoutput/test-support/jtreg_open_test_jdk_jdk_management/classes/1/sun/management/jmxremote/startstop/JMXStartStopTest.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+17-971/src.full/open/test/jdk/sun/management/jmxremote/startstop:/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/64df41f3-9513-4763-88fb-5112bffd450f/runs/fd83e152-6b3c-42e9-ae70-2363ee964b55/testoutput/test-support/jtreg_open_test_jdk_jdk_management/classes/1/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+17-971/src.full/open/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/jtreg.jar -cp /System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/64df41f3-9513-4763-88fb-5112bffd450f/runs/fd83e152-6b3c-42e9-ae70-2363ee964b55/testoutput/test-support/jtreg_open_test_jdk_jdk_management/classes/1/sun/management/jmxremote/startstop/JMXStartStopTest.d:/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/64df41f3-9513-4763-88fb-5112bffd450f/runs/fd83e152-6b3c-42e9-ae70-2363ee964b55/testoutput/test-support/jtreg_open_test_jdk_jdk_management/classes/1/test/lib -XX:+UsePerfData -Dcom.sun.management.jmxremote.port=53325 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=true TestApp
      [TestApp{test_13}] main enter
      [jcmd]:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+17-971/macosx-x64-debug.jdk/jdk-18/fastdebug/bin/jcmd TestApp ManagementAgent.stop
      [jcmd] 31429:
      [jcmd] Command executed successfully
      [jcmd]:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+17-971/macosx-x64-debug.jdk/jdk-18/fastdebug/bin/jcmd TestApp ManagementAgent.start jmxremote.ssl=false jmxremote.port=53325
      [jcmd] 31429:
      [jcmd] Command executed successfully
      [TestApp{test_13}] read: 0
      [TestApp{test_13}] main exit
      (took 4223ms)

      Please note the above test does not say "=== PASSED" like
      the other 14 tests.

      ----------System.err:(71/5836)----------
      [jcmd] java.lang.RuntimeException: Invalid agent state: Agent already started
      [jcmd] java.lang.RuntimeException: Invalid agent state: Agent already started
      [jcmd] java.lang.RuntimeException: Invalid agent state: Agent already started
      [TestApp{test_09}] Error: JMX connector server communication error: service:jmx:rmi://<host>:53293
      [TestApp{test_09}] jdk.internal.agent.AgentConfigurationError: java.rmi.server.ExportException: Port already in use: 53293; nested exception is:
      [TestApp{test_09}] java.net.BindException: Address already in use
      [TestApp{test_09}] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.exportMBeanServer(ConnectorBootstrap.java:843)
      [TestApp{test_09}] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:480)
      [TestApp{test_09}] at jdk.management.agent/jdk.internal.agent.Agent.startRemoteManagementAgent(Agent.java:388)
      [TestApp{test_09}] Caused by: java.rmi.server.ExportException: Port already in use: 53293; nested exception is:
      [TestApp{test_09}] java.net.BindException: Address already in use
      [TestApp{test_09}] at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:356)
      [TestApp{test_09}] at java.rmi/sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:251)
      [TestApp{test_09}] at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:415)
      [TestApp{test_09}] at java.rmi/sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
      [TestApp{test_09}] at java.rmi/sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:235)
      [TestApp{test_09}] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap$PermanentExporter.exportObject(ConnectorBootstrap.java:205)
      [TestApp{test_09}] at java.management.rmi/javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:153)
      [TestApp{test_09}] at java.management.rmi/javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:138)
      [TestApp{test_09}] at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:453)
      [TestApp{test_09}] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.exportMBeanServer(ConnectorBootstrap.java:839)
      [TestApp{test_09}] ... 2 more
      [TestApp{test_09}] Caused by: java.net.BindException: Address already in use
      [TestApp{test_09}] at java.base/sun.nio.ch.Net.bind0(Native Method)
      [TestApp{test_09}] at java.base/sun.nio.ch.Net.bind(Net.java:555)
      [TestApp{test_09}] at java.base/sun.nio.ch.Net.bind(Net.java:544)
      [TestApp{test_09}] at java.base/sun.nio.ch.NioSocketImpl.bind(NioSocketImpl.java:640)
      [TestApp{test_09}] at java.base/java.net.ServerSocket.bind(ServerSocket.java:388)
      [TestApp{test_09}] at java.base/java.net.ServerSocket.<init>(ServerSocket.java:274)
      [TestApp{test_09}] at java.base/java.net.ServerSocket.<init>(ServerSocket.java:167)
      [TestApp{test_09}] at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(TCPDirectSocketFactory.java:45)
      [TestApp{test_09}] at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:673)
      [TestApp{test_09}] at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:344)
      [TestApp{test_09}] ... 11 more
      [jcmd] java.lang.RuntimeException: jdk.internal.agent.AgentConfigurationError: java.rmi.server.ExportException: Port already in use: 53293; nested exception is: java.net.BindException: Address already in use
      test_13 failed
      java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at JMXStartStopTest.main(JMXStartStopTest.java:289)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.rmi.NoSuchObjectException: no such object in table
      at java.rmi/sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:304)
      at java.rmi/sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:280)
      at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:381)
      at java.rmi/sun.rmi.registry.RegistryImpl_Stub.list(RegistryImpl_Stub.java:91)
      at JMXStartStopTest.doTestConnect(JMXStartStopTest.java:195)
      at JMXStartStopTest.testConnect(JMXStartStopTest.java:169)
      at JMXStartStopTest.testConnect(JMXStartStopTest.java:160)
      at JMXStartStopTest.test_13(JMXStartStopTest.java:809)
      ... 11 more
      java.lang.Error
      at JMXStartStopTest.main(JMXStartStopTest.java:315)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)

      JavaTest Message: Test threw exception: java.lang.Error
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.Error
      ----------rerun:(40/7398)*----------

      I'm assuming that the above System.err output is related to
      "Test thirteen" not passing.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: