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

[macos] java/rmi/registry/multipleRegistries/MultipleRegistries.java failed with "ExportException: Port already in use"

XMLWordPrintable

    • x86_64, aarch64
    • os_x

      The following test failed in the JDK17 CI:

      java/rmi/registry/multipleRegistries/MultipleRegistries.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/447)----------
      command: main MultipleRegistries
      reason: User specified action: run main/othervm/timeout=240 MultipleRegistries
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.rmi --add-exports java.rmi/sun.rmi.registry=ALL-UNNAMED --add-exports java.rmi/sun.rmi.server=ALL-UNNAMED --add-exports java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED
      elapsed time (seconds): 2.053
      ----------configuration:(7/291)----------
      Boot Layer
        add modules: java.rmi
        add exports: java.rmi/sun.rmi.registry ALL-UNNAMED
                     java.rmi/sun.rmi.server ALL-UNNAMED
                     java.rmi/sun.rmi.transport ALL-UNNAMED
                     java.rmi/sun.rmi.transport.tcp ALL-UNNAMED

      ----------System.out:(0/0)----------
      ----------System.err:(39/2714)----------
      export object
      proxy = Proxy[RemoteInterface,RemoteObjectInvocationHandler[UnicastRef [liveRef: [endpoint:[10.133.70.53:58880](local),objID:[ec1f05a:179d164dd67:-7fff, 8557328871131111697]]]]]
      export registries
      java.rmi.server.ExportException: Port already in use: 58882; nested exception is:
      java.net.BindException: Address already in use
      at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:346)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:243)
      at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:415)
      at java.rmi/sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
      at java.rmi/sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:235)
      at java.rmi/sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:223)
      at java.rmi/sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:208)
      at java.rmi/java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:203)
      at TestLibrary.createRegistryOnUnusedPort(TestLibrary.java:408)
      at MultipleRegistries.main(MultipleRegistries.java:68)
      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.net.BindException: Address already in use
      at java.base/sun.nio.ch.Net.bind0(Native Method)
      at java.base/sun.nio.ch.Net.bind(Net.java:555)
      at java.base/sun.nio.ch.Net.bind(Net.java:544)
      at java.base/sun.nio.ch.NioSocketImpl.bind(NioSocketImpl.java:643)
      at java.base/java.net.ServerSocket.bind(ServerSocket.java:388)
      at java.base/java.net.ServerSocket.<init>(ServerSocket.java:274)
      at java.base/java.net.ServerSocket.<init>(ServerSocket.java:167)
      at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(TCPDirectSocketFactory.java:45)
      at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:673)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:335)
      ... 15 more

      JavaTest Message: Test threw exception: java.rmi.server.ExportException: Port already in use: 58882; nested exception is:
      java.net.BindException: Address already in use
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.rmi.server.ExportException: Port already in use: 58882; nested exception is: java.net.BindException: Address already in use
      ----------rerun:(42/7716)*----------

            msheppar Mark Sheppard
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: