Uploaded image for project: 'Commons Proxy'
  1. Commons Proxy
  2. PROXY-3

RMI Test Case Failures on Linux

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0
    • Labels:
      None
    • Environment:

      Description

      The RMI test case fails with the following message:

      testGetObjectWithInvalidName(org.apache.commons.proxy.provider.TestRmiProvider)
      Time elapsed: 0.005 sec <<< ERROR!
      java.rmi.server.ExportException: Port already in use: 13099; nested exception is
      :
      java.net.BindException: Address already in use
      at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
      at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218
      )
      at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
      at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
      at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:19
      0)
      at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.
      java:293)
      at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.
      java:235)
      at java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:1
      33)
      at org.apache.commons.proxy.util.rmi.RmiEchoImpl.<init>(RmiEchoImpl.java
      :31)
      at org.apache.commons.proxy.provider.TestRmiProvider.setUpRegistry(TestR
      miProvider.java:49)
      at org.apache.commons.proxy.provider.TestRmiProvider.testGetObjectWithIn
      validName(TestRmiProvider.java:106)
      Caused by: java.net.BindException: Address already in use
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
      at java.net.ServerSocket.bind(ServerSocket.java:319)
      at java.net.ServerSocket.<init>(ServerSocket.java:185)
      at java.net.ServerSocket.<init>(ServerSocket.java:97)
      at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMI
      DirectSocketFactory.java:27)
      at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMI
      MasterSocketFactory.java:333)
      at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:64
      9)
      at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
      ... 35 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jwcarman James Carman
                Reporter:
                jwcarman James Carman
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: