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

sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java failed with "Port already in use: 9126"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 13
    • Fix Version/s: None
    • Component/s: core-svc
    • Labels:

      Description

      DEBUG: OK. Spawned java process terminated with expected exit code of 10
      ----------System.err:(90/7226)----------
      [JMX-Tester-127.0.0.1] Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 9126; nested exception is:
      PROBLEM: JMX agent of target JVM did not start as it should.
      [JMX-Tester-127.0.0.1] java.net.BindException: Address already in use (Bind failed)
      [JMX-Tester-127.0.0.1] jdk.internal.agent.AgentConfigurationError: java.rmi.server.ExportException: Port already in use: 9126; nested exception is:
      [JMX-Tester-127.0.0.1] java.net.BindException: Address already in use (Bind failed)
      [JMX-Tester-127.0.0.1] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:491)
      [JMX-Tester-127.0.0.1] at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:447)
      [JMX-Tester-127.0.0.1] at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:599)
      [JMX-Tester-127.0.0.1] Caused by: java.rmi.server.ExportException: Port already in use: 9126; nested exception is:
      [JMX-Tester-127.0.0.1] java.net.BindException: Address already in use (Bind failed)
      [JMX-Tester-127.0.0.1] at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:335)
      [JMX-Tester-127.0.0.1] at java.rmi/sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:243)
      [JMX-Tester-127.0.0.1] at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
      [JMX-Tester-127.0.0.1] at java.rmi/sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
      [JMX-Tester-127.0.0.1] at java.rmi/sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:234)
      [JMX-Tester-127.0.0.1] at java.rmi/sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:220)
      [JMX-Tester-127.0.0.1] at java.rmi/sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:180)
      [JMX-Tester-127.0.0.1] at jdk.management.agent/sun.management.jmxremote.SingleEntryRegistry.<init>(SingleEntryRegistry.java:60)
      [JMX-Tester-127.0.0.1] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.exportMBeanServer(ConnectorBootstrap.java:832)
      [JMX-Tester-127.0.0.1] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:479)
      [JMX-Tester-127.0.0.1] ... 2 more
      [JMX-Tester-127.0.0.1] Caused by: java.net.BindException: Address already in use (Bind failed)
      [JMX-Tester-127.0.0.1] at java.base/java.net.PlainSocketImpl.socketBind(Native Method)
      [JMX-Tester-127.0.0.1] at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:441)
      [JMX-Tester-127.0.0.1] at java.base/java.net.ServerSocket.bind(ServerSocket.java:357)
      [JMX-Tester-127.0.0.1] at java.base/java.net.ServerSocket.<init>(ServerSocket.java:243)
      [JMX-Tester-127.0.0.1] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap$HostAwareSocketFactory.createServerSocket(ConnectorBootstrap.java:894)
      [JMX-Tester-127.0.0.1] at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:666)
      [JMX-Tester-127.0.0.1] at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324)
      [JMX-Tester-127.0.0.1] ... 11 more
      [JMX-Tester-10.133.186.95] DEBUG: MainThread: actualTerm: 'Exit: 10'
      java.io.IOException: Stream closed
      at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:342)
      at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
      at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
      at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
      at jdk.test.lib.process.StreamPumper.run(StreamPumper.java:109)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.lang.Thread.run(Thread.java:830)
      java.io.IOException: Stream closed
      at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:342)
      at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
      at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
      at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
      at jdk.test.lib.process.StreamPumper.run(StreamPumper.java:109)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.lang.Thread.run(Thread.java:830)
      java.io.IOException: Stream closed
      at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:342)
      at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
      at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
      at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
      at jdk.test.lib.process.StreamPumper.run(StreamPumper.java:109)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.lang.Thread.run(Thread.java:830)
      java.io.IOException: Stream closed
      at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:342)
      at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
      at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
      at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
      at jdk.test.lib.process.StreamPumper.run(StreamPumper.java:109)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.lang.Thread.run(Thread.java:830)
      Test FAILURE on JMX-Tester-127.0.0.1
      java.lang.RuntimeException: Test FAILED. 1 out of 2 process(es) failed to start the JMX agent.
      at JMXInterfaceBindingTest.runTests(JMXInterfaceBindingTest.java:125)
      at JMXInterfaceBindingTest.run(JMXInterfaceBindingTest.java:79)
      at JMXInterfaceBindingTest.main(JMXInterfaceBindingTest.java:202)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:830)

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dtitov Daniil Titov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: