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

java/rmi/transport/reuseDefaultPort/ReuseDefaultPort.java fails intermittently

XMLWordPrintable

    • b147

        java/rmi/transport/reuseDefaultPort/ReuseDefaultPort.java failed with following error message:

        java.rmi.server.ExportException: Port already in use: 0; nested exception is:
        java.net.BindException: Address already in use
        at sun.rmi.transport.tcp.TCPTransport.listen(java.rmi@9-internal/TCPTransport.java:336)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(java.rmi@9-internal/TCPTransport.java:244)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(java.rmi@9-internal/TCPEndpoint.java:411)
        at sun.rmi.transport.LiveRef.exportObject(java.rmi@9-internal/LiveRef.java:147)
        at sun.rmi.server.UnicastServerRef.exportObject(java.rmi@9-internal/UnicastServerRef.java:206)
        at java.rmi.server.UnicastRemoteObject.exportObject(java.rmi@9-internal/UnicastRemoteObject.java:383)
        at java.rmi.server.UnicastRemoteObject.exportObject(java.rmi@9-internal/UnicastRemoteObject.java:320)
        at ReuseDefaultPort.main(ReuseDefaultPort.java:64)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
        at java.lang.Thread.run(java.base@9-internal/Thread.java:804)
        Caused by: java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(java.base@9-internal/Native Method)
        at java.net.AbstractPlainSocketImpl.bind(java.base@9-internal/AbstractPlainSocketImpl.java:442)
        at java.net.ServerSocket.bind(java.base@9-internal/ServerSocket.java:376)
        at java.net.ServerSocket.<init>(java.base@9-internal/ServerSocket.java:238)
        at java.net.ServerSocket.<init>(java.base@9-internal/ServerSocket.java:130)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(java.rmi@9-internal/RMIDirectSocketFactory.java:45)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(java.rmi@9-internal/RMIMasterSocketFactory.java:341)
        at ReuseDefaultPort$SF.createServerSocket(ReuseDefaultPort.java:86)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(java.rmi@9-internal/TCPEndpoint.java:666)
        at sun.rmi.transport.tcp.TCPTransport.listen(java.rmi@9-internal/TCPTransport.java:325)
        ... 13 more

              mli Hamlin Li
              amjiang Amanda Jiang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: