Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3850

Tuscany 1.6 RMI bug: ConnectException after component restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SCA-1.6.1
    • Java-SCA-1.x
    • None
    • Java 1.6.0_24, Eclipse Helios, Win XP SP3
    • Patch Available

    Description

      When I have a network of components connected by RMI references,
      then restarting a component will cause a java.net.ConnectException
      in all dependent components on the next remote method call.
      I suspect some kind of connection factory caches out-of-date information.

      Example:
      ServerComponent exposes service "Server" with an RMI binding on port 8777.
      ClientComponent exposes service "Client" with an RMI binding on port 8666
      and has a reference to the service "Server".
      ClientTest is a non-SCA Java class that exercises the Client service over RMI.

      Everything works fine until the ServerComponent Java process is stopped
      and re-started. The tester will then fail, because the client cannot
      re-establish the connection to the server.

      I attach a zip-file with the example. Steps to reproduce the problem:
      Run ServerLauncher
      Run ClientLauncher
      Run ClientTest
      Stop process in which server is running
      Re-Run ServerLauncher
      Re-Run ClientTest

      Attachments

        1. TuscanyRMI.zip
          12 kB
          Sebastian Millies
        2. RMIReferenceInvoker.zip
          4 kB
          Sebastian Millies

        Activity

          People

            Unassigned Unassigned
            s.millies@ids-scheer.de Sebastian Millies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: