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

IRC bot doesn't connect but throw a NullPointerException

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • ircbot-plugin
    • Jenkins 1.637, instant-messaging plugin 1.35, IRC Plugin 2.26 on Docker (jenkinsci/jenkins image, ie Debian Jessie, OpenJDK 1.8.0_45-internal)

      When configuring the IRC plugin of a new Docker Jenkins installation, I've got an uncaught NullPointerException, and the bot doesn't seem to connect on the server

      Note: I can use netcat from the container to log in successfully on the server (netcat barjavel.freenode.net 8000), but it doesn't work .

      Stacktrace and log

      Nov 13, 2015 4:26:41 AM INFO hudson.plugins.ircbot.v2.IRCConnection connect
      Connecting to barjavel.freenode.net :8000 as Alken-Orin using charset UTF-8
      Nov 13, 2015 4:26:41 AM WARNING hudson.plugins.ircbot.v2.IRCConnection connect
      Error connecting to irc
      java.lang.NullPointerException
      at org.pircbotx.PircBotX.shutdown(PircBotX.java:2853)
      at org.pircbotx.PircBotX.connect(PircBotX.java:452)
      at hudson.plugins.ircbot.v2.IRCConnection.connect(IRCConnection.java:135)
      at hudson.plugins.ircbot.v2.IRCConnectionProvider.createConnection(IRCConnectionProvider.java:37)
      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)

          [JENKINS-31534] IRC bot doesn't connect but throw a NullPointerException

          kutzi added a comment -

          That's a follow up exception from the PircBotX library which unfortunately hides the original exception that caused the connection to fail.

          Could you please try a beta version of the plugin which has an updated PircBotX
          https://www.dropbox.com/s/lemey5s6jksg364/ircbot.hpi?dl=0

          kutzi added a comment - That's a follow up exception from the PircBotX library which unfortunately hides the original exception that caused the connection to fail. Could you please try a beta version of the plugin which has an updated PircBotX https://www.dropbox.com/s/lemey5s6jksg364/ircbot.hpi?dl=0

            kutzi kutzi
            dereckson Sébastien Santoro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: