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

IRC Connection fails with NullPointerException on startup since 2.24

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • ircbot-plugin
    • Gentoo Linux amd64, java7u51 or java8(tested with both), jenkins 1.557, im plugin 1.28

      Since the 2.24 update the ircbot fails to connect on jenkins startup.
      It just writes NullPointerException into the log, the same happens on each automatic retry.
      I figured out that it successfuly and imediately connects if i go to the main settings page and just hit Save.

          [JENKINS-22478] IRC Connection fails with NullPointerException on startup since 2.24

          kutzi added a comment -

          Please post the complete NullPointerException including stacktrace from the log!

          kutzi added a comment - Please post the complete NullPointerException including stacktrace from the log!

          Timo R. added a comment -

          There is no stacktrace in the log, only this:

          Apr 02, 2014 9:57:41 PM hudson.plugins.ircbot.v2.IRCConnection connect
          WARNING: Error connecting to irc: java.lang.NullPointerException

          There are traces of some other, unrelated, exceptions, but this one does not generate a trace.

          Timo R. added a comment - There is no stacktrace in the log, only this: Apr 02, 2014 9:57:41 PM hudson.plugins.ircbot.v2.IRCConnection connect WARNING: Error connecting to irc: java.lang.NullPointerException There are traces of some other, unrelated, exceptions, but this one does not generate a trace.

          kutzi added a comment -

          Are you willing to try a probably fixed plugin: https://dl.dropboxusercontent.com/u/25863594/ircbot.hpi ?

          kutzi added a comment - Are you willing to try a probably fixed plugin: https://dl.dropboxusercontent.com/u/25863594/ircbot.hpi ?

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/plugins/ircbot/v2/IRCConnection.java
          http://jenkins-ci.org/commit/ircbot-plugin/50754eab3ebb96c426f513c14e6996ce927e1618
          Log:
          Should fix NPE on connection JENKINS-22478

          Compare: https://github.com/jenkinsci/ircbot-plugin/compare/a550171e27bf...50754eab3ebb

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/plugins/ircbot/v2/IRCConnection.java http://jenkins-ci.org/commit/ircbot-plugin/50754eab3ebb96c426f513c14e6996ce927e1618 Log: Should fix NPE on connection JENKINS-22478 Compare: https://github.com/jenkinsci/ircbot-plugin/compare/a550171e27bf...50754eab3ebb

          Timo R. added a comment -

          Yes, with that plugin it automaticaly connects on startup again.

          Timo R. added a comment - Yes, with that plugin it automaticaly connects on startup again.

          kutzi added a comment -

          Thanks for testing.

          Fixed in 2.25

          kutzi added a comment - Thanks for testing. Fixed in 2.25

            kutzi kutzi
            btbn Timo R.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: