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

jnp.discoveryPort is not evaluated correctly

    XMLWordPrintable

Details

    Description

      SourceForge Submitter: martinrenner .
      Hi.

      The following code sequence is leading to a
      CommunicationException with JBoss 3.2.1 (although JBoss
      is listening on port 12345):

      Properties env = new Properties();
      env.put("jnp.discoveryPort", "12345");
      Context ctx = new InitialContext(env);
      ctx.lookup("something");

      The cause for this exception is in the file
      org.jnp.interfaces.NamingContext in the method
      "discoverServer()":

      In line 1003, the value of "jnp.discoveryPort" is
      assigned to the local variable "group". It should be
      "port".

      A workaround is to specify
      env.put("jnp.discoveryPort", "230.0.0.4:12345");

      In this case, the value of the port is assigned
      correctly to the local variable "port".

      Attachments

        Activity

          People

            starksm64 Scott Stark (Inactive)
            sourceforge-user SourceForge legacy user (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: