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

HA-JNDI auto-discovery failed with java.lang.IllegalArgument

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBossAS-4.0.0 Final
    • None
    • None

      SourceForge Submitter: shuchan .
      With the clustered environment using JBoss 4.0.0/4.0.
      1RC1, the HA-JNDI auto-discovery runs into "java.lang.
      IllegalArgumentException: hostname can't be null".

      A workaround is to configure 'jnp.localAddress' property
      before generating an InitialContext object.

      A possible fix is to apply a patch in the attachment.

      Environments :

      [OS] Windows XP Pro SP1
      [JDK] Sun J2SDK 1.4.2_06
      [Exception stack traces]
      Stack traces in the client side are in the attached
      file(trace-patch.txt). server.log has no special exception.

      [Steps to reproduce the bug]
      Run codes like this on a remote jvm :

      java.util.Hashtable props = new Hashtable();
      props.put(Context.INITIAL_CONTEXT_FACTORY,
      "org.jnp.interfaces.NamingContextFactory");
      props.put(Context.URL_PKG_PREFIXES,
      "org.jboss.naming:org.jnp.interfaces");
      javax.naming.Context ctx = new javax.naming.
      InitialContext(props);
      Object obj = ctx.lookup("Counter");

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

              Created:
              Updated:
              Resolved: