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

Unable to connect using Jabber plugin (bad-request)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • jabber-plugin
    • Jenkins ver. 1.627
      java.runtime.version 1.7.0_79-b14
      instant-messaging 1.35
      ircbot 2.26
      jabber 1.35

      IRCBot connects, but Jabber bot fails. Same account on another client (Messages.app on OS X) works as expected.

      Finest-level logging:

      Sep 04, 2015 1:48:29 PM FINEST hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      RCV PKT: <iq id='TUBB2-30' type='error'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource></resource></bind><error type="modify"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>
      Sep 04, 2015 1:49:59 PM INFO hudson.plugins.jabber.im.transport.JabberIMConnection createConnection
      Trying to connect to XMPP on /example.com
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      SENT: <stream:stream to="example.com" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0">
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      SENT: </stream:stream>
      Sep 04, 2015 1:49:59 PM INFO hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL
      Retrying connection with legacy SSL
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      SENT: <stream:stream to="example.com" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0">
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      RECV: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='example.com' version='1.0' id='lrerqoau6oew3fl4k31jb8gb3be2mkh8cwz2kawq' xmlns:ack='http://www.xmpp.org/extensions/xep-0198.html#ns'>
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      RECV: <stream:features xmlns:stream='http://etherx.jabber.org/streams'><address xmlns='http://affinix.com/jabber/address'>17.202.34.66</address><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>EXTERNAL</mechanism><mechanism>PLAIN</mechanism></mechanisms><auth xmlns='http://jabber.org/features/iq-auth'/></stream:features>
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      SENT: <auth mechanism="PLAIN" xmlns="urn:ietf:params:xml:ns:xmpp-sasl">SASL_HASHED_PASSWORD_HERE</auth>
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      RECV: <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      SENT: <stream:stream to="example.com" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0">
      Sep 04, 2015 1:49:59 PM FINEST hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      RCV PKT: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"></success>
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      RECV: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='example.com' version='1.0' id='zbn2q87bc8ungbzkmem9y4ha0hdlr9cqlztc70nk' xmlns:ack='http://www.xmpp.org/extensions/xep-0198.html#ns'>
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      RECV: <stream:features xmlns:stream='http://etherx.jabber.org/streams'><ack:ack/><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><required/></bind><unbind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/><ver xmlns='urn:xmpp:features:rosterver'/></stream:features>
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      SENT: <iq id='ABCD1-23' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource></resource></bind></iq>
      Sep 04, 2015 1:49:59 PM FINE hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      RECV: <iq xmlns='jabber:client' type='error' id='ABCD1-23'><error type='modify' code='400'><bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource/></bind></iq>
      Sep 04, 2015 1:49:59 PM WARNING hudson.plugins.jabber.im.transport.JabberIMConnection connect
      bad-request
          at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:196)
          at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:175)
          at org.jivesoftware.smack.XMPPConnection.bindResourceAndEstablishSession(XMPPConnection.java:530)
          at org.jivesoftware.smack.tcp.XMPPTCPConnection.login(XMPPTCPConnection.java:260)
          at hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:430)
          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:59)
          at hudson.plugins.im.IMConnectionProvider.access$500(IMConnectionProvider.java:16)
          at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:165)
          at java.lang.Thread.run(Thread.java:745)
      
      Sep 04, 2015 1:49:59 PM FINEST hudson.plugins.jabber.im.transport.JabberConnectionDebugger
      RCV PKT: <iq id='ABCD1-23' type='error'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource></resource></bind><error type="modify"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>
      

          [JENKINS-30314] Unable to connect using Jabber plugin (bad-request)

          kutzi added a comment -

          Which Jabber server are you trying to connect to?

          kutzi added a comment - Which Jabber server are you trying to connect to?

          Brian Pugh added a comment -

          An internal corporate server. Unfortunately, I don't have access to server controls nor any idea of what environment they're running :-/

          Brian Pugh added a comment - An internal corporate server. Unfortunately, I don't have access to server controls nor any idea of what environment they're running :-/

          Could you try the plugin from the latest master, which is now using Smack 4.1.9,  by issueing "mvn package" and report back if the issue still exists?

          Florian Schmaus added a comment - Could you try the plugin from the latest master, which is now using Smack 4.1.9,  by issueing "mvn package" and report back if the issue still exists?

            flow Florian Schmaus
            bpugh Brian Pugh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: