Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1806

org.jnp.server.Main does not call custom RMIClientSocketFactory.setBindAddress() if method is provided

XMLWordPrintable

      Looks like a typo in Main.initCustomSocketFactories()

      Patch is included below:

      Index: Main.java
      ===================================================================
      RCS file: /cvsroot/jboss/jnp/src/main/org/jnp/server/Main.java,v
      retrieving revision 1.23
      diff -u -b -r1.23 Main.java
      — Main.java 27 Oct 2004 22:25:34 -0000 1.23
      +++ Main.java 11 May 2005 19:45:36 -0000
      @@ -354,7 +354,7 @@
      Class[] parameterTypes =

      {String.class}

      ;
      Method m = csfClass.getMethod("setBindAddress", parameterTypes);
      Object[] args =

      {addr.getHostAddress()}

      ;

      • m.invoke(serverSocketFactory, args);
        + m.invoke(clientSocketFactory, args);
        }
        catch (NoSuchMethodException e)
        {

              dandread1@redhat.com Dimitrios Andreadis
              xinghai_jira Xinghai Chen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: