Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25513

jabber-plugin 1.30 fails IPv6 DNS resolve, throws NumberFormatException.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • jabber-plugin

      "Solved" by downgrading to 1.25

      Nov 05, 2014 11:17:35 AM hudson.plugins.jabber.im.transport.JabberIMConnection createConnection
      WARNING: org.jivesoftware.smack.SmackException: java.lang.NumberFormatException: For input string: "4860:4860::8888"
      at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:405)
      at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:811)
      at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396)
      at hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:409)
      at hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:189)
      at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42)
      at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65)
      at hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22)
      at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NumberFormatException: For input string: "4860:4860::8888"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:492)
      at java.lang.Integer.parseInt(Integer.java:527)
      at com.sun.jndi.dns.DnsClient.<init>(DnsClient.java:125)
      at com.sun.jndi.dns.Resolver.<init>(Resolver.java:61)
      at com.sun.jndi.dns.DnsContext.getResolver(DnsContext.java:570)
      at com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:430)
      at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:231)
      at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:139)
      at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:127)
      at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:142)
      at org.jivesoftware.smack.util.dns.javax.JavaxResolver.lookupSRVRecords(JavaxResolver.java:83)
      at org.jivesoftware.smack.util.DNSUtil.resolveDomain(DNSUtil.java:153)
      at org.jivesoftware.smack.util.DNSUtil.resolveXMPPDomain(DNSUtil.java:111)
      at org.jivesoftware.smack.ConnectionConfiguration.maybeResolveDns(ConnectionConfiguration.java:600)
      at org.jivesoftware.smack.XMPPConnection.maybeResolveDns(XMPPConnection.java:573)
      at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:402)

          [JENKINS-25513] jabber-plugin 1.30 fails IPv6 DNS resolve, throws NumberFormatException.

          Eddy Jansson added a comment -

          Seems somewhat similar to JENKINS-25505

          Eddy Jansson added a comment - Seems somewhat similar to JENKINS-25505

          I don't think that's it's related to JENKINS-25505. It may appears now because the new Smack version does DNS lookups in case where the old one didn't. It's a 4 year old java bug: https://bugs.openjdk.java.net/browse/JDK-6991580

          The workaround is to configure the host and port of the XMPP server in Smack, which will avoid DNS lookups.

          Florian Schmaus added a comment - I don't think that's it's related to JENKINS-25505 . It may appears now because the new Smack version does DNS lookups in case where the old one didn't. It's a 4 year old java bug: https://bugs.openjdk.java.net/browse/JDK-6991580 The workaround is to configure the host and port of the XMPP server in Smack, which will avoid DNS lookups.

            flow Florian Schmaus
            eddy Eddy Jansson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: