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

sun/rmi/transport/tcp/DeadCachedConnection.java failed "BindException: Address already in use"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 16, 17
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x_10.15

      Description

      The following test failed in the JDK16 CI:

      sun/rmi/transport/tcp/DeadCachedConnection.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/439)----------
      command: main DeadCachedConnection
      reason: User specified action: run main/othervm DeadCachedConnection
      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): 3.751
      ----------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:(2/88)----------
      RegistryRunner.port.start:49153:RegistryRunner.port.end
      Starting registry on port 49153
      ----------System.err:(69/6053)----------
      JAVAVM: command = [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+4-108/macosx-x64.jdk/jdk-16.jdk/Contents/Home/bin/java, -Xmx512m, -XX:MaxRAMPercentage=4, -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/52628e90-e5e7-4ef3-af97-10d8776d10db-S831/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e12c0188-02ec-4eb2-a554-deeafa485727/runs/981c682a-5178-440c-9ebe-32b8ba99c8e5/testoutput/test-support/jtreg_open_test_jdk_tier3/tmp, -ea, -esa, -Djava.security.policy=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+4-108/src.full/open/test/jdk/sun/rmi/transport/tcp/registry.security.policy, --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, RegistryRunner, 0]
      registry is running at port: 49153
      Locating just-started registry...
      Connecting to registry...
      Killing registry...
      received call to exit
      Restarting registry...
      JAVAVM: command = [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+4-108/macosx-x64.jdk/jdk-16.jdk/Contents/Home/bin/java, -Xmx512m, -XX:MaxRAMPercentage=4, -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/52628e90-e5e7-4ef3-af97-10d8776d10db-S831/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e12c0188-02ec-4eb2-a554-deeafa485727/runs/981c682a-5178-440c-9ebe-32b8ba99c8e5/testoutput/test-support/jtreg_open_test_jdk_tier3/tmp, -ea, -esa, -Djava.security.policy=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+4-108/src.full/open/test/jdk/sun/rmi/transport/tcp/registry.security.policy, --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, RegistryRunner, 49153]
      Port already in use: 49153; nested exception is:
      java.net.BindException: Address already in use
      java.rmi.server.ExportException: Port already in use: 49153; 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:412)
      at java.rmi/sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
      at java.rmi/sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:234)
      at java.rmi/sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:220)
      at java.rmi/sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:205)
      at java.rmi/java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:203)
      at RegistryRunner.init(RegistryRunner.java:115)
      at RegistryRunner.main(RegistryRunner.java:150)
      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:548)
      at java.base/sun.nio.ch.Net.bind(Net.java:537)
      at java.base/sun.nio.ch.NioSocketImpl.bind(NioSocketImpl.java:643)
      at java.base/java.net.ServerSocket.bind(ServerSocket.java:396)
      at java.base/java.net.ServerSocket.<init>(ServerSocket.java:282)
      at java.base/java.net.ServerSocket.<init>(ServerSocket.java:173)
      at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(TCPDirectSocketFactory.java:45)
      at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:670)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:335)
      ... 9 more
      TEST FAILED: [RegistryVM] registry sub-process exited with status 255.
      TEST FAILED:
      Test failed with: TEST FAILED: [RegistryVM] registry sub-process exited with status 255.
      TestFailedException: TEST FAILED: [RegistryVM] registry sub-process exited with status 255.
      at TestLibrary.bomb(TestLibrary.java:121)
      at TestLibrary.bomb(TestLibrary.java:124)
      at RegistryVM.start(RegistryVM.java:156)
      at DeadCachedConnection.makeRegistry(DeadCachedConnection.java:104)
      at DeadCachedConnection.main(DeadCachedConnection.java:86)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)
      TestFailedException: TEST FAILED: ; nested exception is:
      TestFailedException: TEST FAILED: [RegistryVM] registry sub-process exited with status 255.
      TestFailedException: TEST FAILED: [RegistryVM] registry sub-process exited with status 255.
      at TestLibrary.bomb(TestLibrary.java:121)
      at TestLibrary.bomb(TestLibrary.java:124)
      at RegistryVM.start(RegistryVM.java:156)
      at DeadCachedConnection.makeRegistry(DeadCachedConnection.java:104)
      at DeadCachedConnection.main(DeadCachedConnection.java:86)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)

      JavaTest Message: Test threw exception: TestFailedException: TEST FAILED: ; nested exception is:
      TestFailedException: TEST FAILED: [RegistryVM] registry sub-process exited with status 255.
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: TestFailedException: TEST FAILED: ; nested exception is: TestFailedException: TEST FAILED: [RegistryVM] registry sub-process exited with status 255.
      ----------rerun:(42/7474)*----------

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: