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

Unable to connect to ejabberd server with Jabber plugin 1.7 (IM 1.6)

    XMLWordPrintable

Details

    Description

      After upgrading to Hudson 1.352/Jabber plugin 1.7/IM plugin 1.6, we are no longer connecting successfully. We were previously fine with Hudson 1.345 and whatever Jabber/IM version was current 4-6 weeks ago. Our Jabber server is ejabberd 2.0.1. There's nothing special about our configuration. A Jabber ID, password, and server.

      Here are the relevant logs (I hope):

      hudson home directory: C:\dev\hudsonBuilds
      java.lang.NullPointerException
      	at org.jivesoftware.smack.util.Base64.encodeBytes(Base64.java:636)
      	at org.jivesoftware.smack.sasl.SASLMechanism.challengeReceived(SASLMechanism.java:152)
      	at org.jivesoftware.smack.SASLAuthentication.challengeReceived(SASLAuthentication.java:492)
      	at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:338)
      	at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
      	at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
      java.lang.IllegalStateException: Not connected to server.
      	at org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:729)
      	at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:70)
      	at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:335)
      	at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:395)
      	at hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:225)
      	at hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:121)
      	at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42)
      	at hudson.plugins.im.IMConnectionProvider.currentConnection(IMConnectionProvider.java:44)
      	at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.setDesc(JabberIMConnectionProvider.java:25)
      	at hudson.plugins.jabber.im.transport.JabberPublisherDescriptor.<init>(JabberPublisherDescriptor.java:114)
      	at hudson.plugins.jabber.im.transport.JabberPublisher.<clinit>(JabberPublisher.java:87)
      	at sun.reflect.GeneratedSerializationConstructorAccessor52.newInstance(Unknown Source)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      	at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:76)
      	at hudson.util.RobustReflectionConverter.instantiateNewInstance(RobustReflectionConverter.java:327)
      	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:176)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      	at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:186)
      	at hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:229)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      	at hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:286)
      	at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:229)
      	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:177)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
      	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926)
      	at hudson.util.XStream2.unmarshal(XStream2.java:76)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
      	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:856)
      	at hudson.XmlFile.read(XmlFile.java:126)
      	at hudson.model.Items.load(Items.java:106)
      	at hudson.model.Hudson$12.run(Hudson.java:2097)
      	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      	at hudson.model.Hudson$3.runTask(Hudson.java:647)
      	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:619)
      

      Attachments

        Issue Links

          Activity

            kutzi kutzi added a comment -

            related to JENKINS-6018 but probably not the same

            kutzi kutzi added a comment - related to JENKINS-6018 but probably not the same
            kutzi kutzi added a comment -

            Same error as in JENKINS-5803

            kutzi kutzi added a comment - Same error as in JENKINS-5803
            kutzi kutzi added a comment -

            It would be great if you could try the plugin snapshot attached to JENKINS-5803 - as described in the last comment there.

            kutzi kutzi added a comment - It would be great if you could try the plugin snapshot attached to JENKINS-5803 - as described in the last comment there.
            oeuftete oeuftete added a comment -

            Things appear to be back to fully functioning for us using the snapshot in JENKINS-5803. Thanks!

            oeuftete oeuftete added a comment - Things appear to be back to fully functioning for us using the snapshot in JENKINS-5803 . Thanks!
            kutzi kutzi added a comment -

            Did you need to disable SASL or did it work out-of-the-box?

            kutzi kutzi added a comment - Did you need to disable SASL or did it work out-of-the-box?
            oeuftete oeuftete added a comment -

            It worked out of the box. I just checked the configuration now and "Enable SASL for connection" is checked.

            oeuftete oeuftete added a comment - It worked out of the box. I just checked the configuration now and "Enable SASL for connection" is checked.
            kutzi kutzi added a comment -

            integrated in v1.8

            kutzi kutzi added a comment - integrated in v1.8

            People

              kutzi kutzi
              oeuftete oeuftete
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: