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

java/rmi/activation/rmidViaInheritedChannel/InheritedChannelNotServerSocket.java failed with Address already in use

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9
    • core-libs

      RMID: Started rmid on port 60003, at 17:40:53.434562
      RMID: looking up activation system, at 17:40:53.535177
      RMID: after fail to looking up activation system, at 17:40:53.540208
      SP.inheritedChannel
      RMID: looking up activation system, at 17:40:53.640567
      RMID: after fail to looking up activation system, at 17:40:53.641120
      socket = Socket[unconnected]
      notify test...
      RMID: looking up activation system, at 17:40:53.741306
      RMID: after fail to looking up activation system, at 17:40:53.742001
      notification received.
      RMID: looking up activation system, at 17:40:53.842198
      Activation.main: warning: sun.rmi.activation.execPolicy system
              property unspecified and no ExecPermissions/ExecOptionPermissions
              granted; subsequent activation attempts may fail due to unsuccessful
      ExecPermission/ExecOptionPermission permission checks. For
      documentation on how to configure rmid security, refer to:

              http://java.sun.com/j2se/1.4/docs/tooldocs/solaris/rmid.html
              http://java.sun.com/j2se/1.4/docs/tooldocs/win32/rmid.html

      RMID: after fail to looking up activation system, at 17:40:53.842900
      Activation.main: an exception occurred: java.rmi.server.ExportException: Port already in use: 60003; nested exception is:
      java.net.BindException: Address already in use (Bind failed)
      java.rmi.server.ExportException: Port already in use: 60003; nested exception is:
      java.net.BindException: Address already in use (Bind failed)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:340)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:248)
      at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
      at java.rmi/sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
      at java.rmi/sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:232)
      at java.rmi/sun.rmi.server.Activation$ActivatorImpl.<init>(Activation.java:428)
      at java.rmi/sun.rmi.server.Activation.init(Activation.java:250)
      at java.rmi/sun.rmi.server.Activation.startActivation(Activation.java:219)
      at java.rmi/sun.rmi.server.Activation.main(Activation.java:2118)
      Caused by: java.net.BindException: Address already in use (Bind failed)
      at java.base/java.net.PlainSocketImpl.socketBind(Native Method)
      at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:437)
      at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
      at java.base/java.net.ServerSocket.<init>(ServerSocket.java:243)
      at java.base/java.net.ServerSocket.<init>(ServerSocket.java:135)
      at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(TCPDirectSocketFactory.java:45)
      at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:666)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:329)
      ... 8 more
      TEST FAILED: Rmid process exited with status 1 after 509ms.
      RMID: shutdown()
      RMID: lookupSystem() returned null after 0ms.
      RMID: Destroying RMID process.
      RMID: Destroy successful after 4ms.
      RMID: Removing rmid's old log file.
      TestFailedException: TEST FAILED: Rmid process exited with status 1 after 509ms.
      at TestLibrary.bomb(TestLibrary.java:121)
      at TestLibrary.bomb(TestLibrary.java:124)
      at RMID.start(RMID.java:342)
      at RMID.start(RMID.java:301)
      at InheritedChannelNotServerSocket.main(InheritedChannelNotServerSocket.java:111)
      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:538)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.base/java.lang.Thread.run(Thread.java:844)

            mli Hamlin Li
            jjiang John Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: