Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-2941

org.jnp.interfaces.NamingContext does not handle IPv6 URLs correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • TBD EAP 5
    • EAP 5.0.0
    • IPv6 support, Naming
    • None
    • Not Required

    Description

      When running the AS testsuite, tests fail with the following exception (this is an excerpt from org.jboss.test.aop.test.AOPUnitTestCase):

      <error message="Could not obtain connection to any of these urls: [3ffe:ffff:100:f101::1]:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]" type="javax.naming.CommunicationException">
      javax.naming.CommunicationException: Could not obtain connection to any of these urls: [3ffe:ffff:100:f101::1]:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server [3ffe:ffff:100:f101::1]:1099:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server [3ffe:ffff:100:f101::1]:1099:1099 [Root exception is java.net.UnknownHostException: [3ffe:ffff:100:f101::1]:1099]]]
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1763)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:693)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at org.jboss.test.JBossTestServices.getServer(JBossTestServices.java:154)
      at org.jboss.test.JBossTestSetup.getServer(JBossTestSetup.java:108)
      at org.jboss.test.aop.test.AOPTestSetup.setUp(AOPTestSetup.java:69)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      Caused by: javax.naming.CommunicationException: Failed to connect to server [3ffe:ffff:100:f101::1]:1099:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server [3ffe:ffff:100:f101::1]:1099:1099 [Root exception is java.net.UnknownHostException: [3ffe:ffff:100:f101::1]:1099]]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:335)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1734)
      Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server [3ffe:ffff:100:f101::1]:1099:1099 [Root exception is java.net.UnknownHostException: [3ffe:ffff:100:f101::1]:1099]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:305)
      Caused by: java.net.UnknownHostException: [3ffe:ffff:100:f101::1]:1099
      at java.net.InetAddress.getAllByName(InetAddress.java:1039)
      at java.net.InetAddress.getAllByName(InetAddress.java:1019)
      at java.net.InetAddress.getByName(InetAddress.java:969)
      at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:81)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:301)
      </error>

      The following system property is defined:
      <property name="java.naming.provider.url" value="jnp://[3ffe:ffff:100:f101::1]:1099"/>

      This is a valid IPv6 URL descibing the naming server the client should be contacting, and yet org.jnp.interfaces.NamingContext parses the URL into host:port as [3ffe:ffff:100:f101::1]:1099:1099.

      Attachments

        Issue Links

          Activity

            People

              rachmato@redhat.com Richard Achmatowicz
              rachmato@redhat.com Richard Achmatowicz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: