Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4762

Remote naming fails to work with IPv6 provider URL

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Rejected
    • Affects Version/s: 7.1.2.Final (EAP)
    • Fix Version/s: No Release
    • Component/s: Naming
    • Labels:
      None

      Description

      Remote naming doesn't handle IPv6 addresses (like ::1) correctly which leads to connection creation failures for code like:

      final Properties env = new Properties();
      env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
      env.put(Context.PROVIDER_URL, "remote://::1:4447);
      context = new InitialContext(env);
      
      // Perform the JNDI lookups
      context.lookup("java:jboss/exported/jms/queue/test);
      

      This fails with:

      Caused by: java.lang.IllegalArgumentException: destination address may not be null
      	at org.jboss.remoting3.remote.RemoteConnectionProvider.connect(RemoteConnectionProvider.java:98)
      	at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:296)
      	at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:251)
      	at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:349)
      	at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:333)
      	at org.jboss.naming.remote.client.EndpointCache$EndpointWrapper.connect(EndpointCache.java:105)
      	at org.jboss.naming.remote.client.NamingStoreCache.getRemoteNamingStore(NamingStoreCache.java:55)
      	at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateCachedNamingStore(InitialContextFactory.java:166)
      	at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateNamingStore(InitialContextFactory.java:139)
      	at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:104)
      	... 10 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jaikiran Jaikiran Pai
                Reporter:
                jaikiran Jaikiran Pai
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: