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

IRC notification results in need to restart Jenkins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: ircbot-plugin
    • Labels:
      None
    • Environment:
      jenkins 1.615
      ircbot-plugin: 2.26
      instant-messaging-plugin: 1.35
    • Similar Issues:

      Description

      IRC notification works but always results in jenkins needing to be restarted. The following was taken from jenkins' log

      1432824145599 ### at hudson.plugins.im.IMConnectionProvider.releaseConnection(IMConnectionProvider.java:86)
      1432824145599 ### at hudson.plugins.ircbot.v2.IRCConnection.close(IRCConnection.java:102)
      1432824145599 ### at org.pircbotx.PircBotX.shutdown(PircBotX.java:2855)
      1432824145599 ### at sun.security.ssl.BaseSSLSocketImpl.shutdownInput(BaseSSLSocketImpl.java:199)
      1432824145599 ### java.lang.UnsupportedOperationException: The method shutdownInput() is not supported in SSLSocket

        Attachments

          Activity

          Hide
          kutzi kutzi added a comment -

          Please provide the full stack trace

          Show
          kutzi kutzi added a comment - Please provide the full stack trace
          Hide
          windowsrefund windows refund added a comment -

          May 28, 2015 2:11:49 PM winstone.Logger logInternal
          INFO: JVM is terminating. Shutting down Winstone
          1432836709212 ### Your implementation of PircBotX is faulty and you have
          1432836709212 ### allowed an uncaught Exception or Error to propagate in your
          1432836709212 ### code. It may be possible for PircBotX to continue operating
          1432836709212 ### normally. Here is the stack trace that was produced: -
          1432836709212 ###
          1432836709212 ### java.lang.UnsupportedOperationException: The method shutdownInput() is not supported in SSLSocket
          1432836709212 ### at sun.security.ssl.BaseSSLSocketImpl.shutdownInput(BaseSSLSocketImpl.java:199)
          1432836709212 ### at org.pircbotx.PircBotX.shutdown(PircBotX.java:2855)
          1432836709212 ### at org.pircbotx.PircBotX$4.run(PircBotX.java:2817)
          1432836709212 >>>QUIT :
          1432836709213 *** Disconnected.
          1432836709219 <<<ERROR :Closing link: (REMOVED_FROM_COMMENT) [Quit: ]
          1432836709219 ### Your implementation of PircBotX is faulty and you have
          1432836709219 ### allowed an uncaught Exception or Error to propagate in your
          1432836709219 ### code. It may be possible for PircBotX to continue operating
          1432836709219 ### normally. Here is the stack trace that was produced: -
          1432836709219 ###
          1432836709219 ### java.lang.UnsupportedOperationException: The method shutdownInput() is not supported in SSLSocket
          1432836709219 ### at sun.security.ssl.BaseSSLSocketImpl.shutdownInput(BaseSSLSocketImpl.java:199)
          1432836709219 ### at org.pircbotx.PircBotX.shutdown(PircBotX.java:2855)
          1432836709219 ### at org.pircbotx.PircBotX.handleLine(PircBotX.java:1679)
          1432836709219 ### at org.pircbotx.InputThread.run(InputThread.java:100)
          1432836709219 *** Disconnected.
          1432836710243 ### Your implementation of PircBotX is faulty and you have
          1432836710243 ### allowed an uncaught Exception or Error to propagate in your
          1432836710243 ### code. It may be possible for PircBotX to continue operating
          1432836710243 ### normally. Here is the stack trace that was produced: -
          1432836710243 ###
          1432836710243 ### java.lang.UnsupportedOperationException: The method shutdownInput() is not supported in SSLSocket
          1432836710243 ### at sun.security.ssl.BaseSSLSocketImpl.shutdownInput(BaseSSLSocketImpl.java:199)
          1432836710243 ### at org.pircbotx.PircBotX.shutdown(PircBotX.java:2855)
          1432836710243 ### at hudson.plugins.ircbot.v2.IRCConnection.close(IRCConnection.java:102)
          1432836710243 ### at hudson.plugins.im.IMConnectionProvider.releaseConnection(IMConnectionProvider.java:86)
          1432836710243 ### at hudson.plugins.im.IMPlugin.stop(IMPlugin.java:20)
          1432836710243 ### at hudson.plugins.ircbot.PluginImpl.stop(PluginImpl.java:35)
          1432836710243 ### at hudson.PluginWrapper.stop(PluginWrapper.java:375)
          1432836710243 ### at hudson.PluginManager.stop(PluginManager.java:738)
          1432836710243 ### at jenkins.model.Jenkins.cleanUp(Jenkins.java:2796)
          1432836710243 ### at hudson.WebAppMain.contextDestroyed(WebAppMain.java:397)
          1432836710243 ### at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:823)
          1432836710243 ### at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:160)
          1432836710243 ### at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:518)
          1432836710243 ### at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
          1432836710243 ### at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
          1432836710243 ### at org.eclipse.jetty.server.handler.RequestLogHandler.doStop(RequestLogHandler.java:176)
          1432836710243 ### at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
          1432836710243 ### at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
          1432836710243 ### at org.eclipse.jetty.server.Server.doStop(Server.java:343)
          1432836710243 ### at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
          1432836710243 ### at winstone.Launcher.shutdown(Launcher.java:307)
          1432836710243 ### at winstone.ShutdownHook.run(ShutdownHook.java:25)
          1432836710243 *** Disconnected.

          Show
          windowsrefund windows refund added a comment - May 28, 2015 2:11:49 PM winstone.Logger logInternal INFO: JVM is terminating. Shutting down Winstone 1432836709212 ### Your implementation of PircBotX is faulty and you have 1432836709212 ### allowed an uncaught Exception or Error to propagate in your 1432836709212 ### code. It may be possible for PircBotX to continue operating 1432836709212 ### normally. Here is the stack trace that was produced: - 1432836709212 ### 1432836709212 ### java.lang.UnsupportedOperationException: The method shutdownInput() is not supported in SSLSocket 1432836709212 ### at sun.security.ssl.BaseSSLSocketImpl.shutdownInput(BaseSSLSocketImpl.java:199) 1432836709212 ### at org.pircbotx.PircBotX.shutdown(PircBotX.java:2855) 1432836709212 ### at org.pircbotx.PircBotX$4.run(PircBotX.java:2817) 1432836709212 >>>QUIT : 1432836709213 *** Disconnected. 1432836709219 <<<ERROR :Closing link: (REMOVED_FROM_COMMENT) [Quit: ] 1432836709219 ### Your implementation of PircBotX is faulty and you have 1432836709219 ### allowed an uncaught Exception or Error to propagate in your 1432836709219 ### code. It may be possible for PircBotX to continue operating 1432836709219 ### normally. Here is the stack trace that was produced: - 1432836709219 ### 1432836709219 ### java.lang.UnsupportedOperationException: The method shutdownInput() is not supported in SSLSocket 1432836709219 ### at sun.security.ssl.BaseSSLSocketImpl.shutdownInput(BaseSSLSocketImpl.java:199) 1432836709219 ### at org.pircbotx.PircBotX.shutdown(PircBotX.java:2855) 1432836709219 ### at org.pircbotx.PircBotX.handleLine(PircBotX.java:1679) 1432836709219 ### at org.pircbotx.InputThread.run(InputThread.java:100) 1432836709219 *** Disconnected. 1432836710243 ### Your implementation of PircBotX is faulty and you have 1432836710243 ### allowed an uncaught Exception or Error to propagate in your 1432836710243 ### code. It may be possible for PircBotX to continue operating 1432836710243 ### normally. Here is the stack trace that was produced: - 1432836710243 ### 1432836710243 ### java.lang.UnsupportedOperationException: The method shutdownInput() is not supported in SSLSocket 1432836710243 ### at sun.security.ssl.BaseSSLSocketImpl.shutdownInput(BaseSSLSocketImpl.java:199) 1432836710243 ### at org.pircbotx.PircBotX.shutdown(PircBotX.java:2855) 1432836710243 ### at hudson.plugins.ircbot.v2.IRCConnection.close(IRCConnection.java:102) 1432836710243 ### at hudson.plugins.im.IMConnectionProvider.releaseConnection(IMConnectionProvider.java:86) 1432836710243 ### at hudson.plugins.im.IMPlugin.stop(IMPlugin.java:20) 1432836710243 ### at hudson.plugins.ircbot.PluginImpl.stop(PluginImpl.java:35) 1432836710243 ### at hudson.PluginWrapper.stop(PluginWrapper.java:375) 1432836710243 ### at hudson.PluginManager.stop(PluginManager.java:738) 1432836710243 ### at jenkins.model.Jenkins.cleanUp(Jenkins.java:2796) 1432836710243 ### at hudson.WebAppMain.contextDestroyed(WebAppMain.java:397) 1432836710243 ### at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:823) 1432836710243 ### at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:160) 1432836710243 ### at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:518) 1432836710243 ### at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) 1432836710243 ### at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107) 1432836710243 ### at org.eclipse.jetty.server.handler.RequestLogHandler.doStop(RequestLogHandler.java:176) 1432836710243 ### at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) 1432836710243 ### at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107) 1432836710243 ### at org.eclipse.jetty.server.Server.doStop(Server.java:343) 1432836710243 ### at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) 1432836710243 ### at winstone.Launcher.shutdown(Launcher.java:307) 1432836710243 ### at winstone.ShutdownHook.run(ShutdownHook.java:25) 1432836710243 *** Disconnected.
          Hide
          kutzi kutzi added a comment -

          Yes, that looks like a bug in the IRC plugin, but I fail to see how the plugin caused Jenkins to shut down.
          The order in the log file is, that there's an info that the JVM is shutting down ('INFO: JVM is terminating. Shutting down Winstone') and only after that the irc plugin logs an exception.

          Do you have additional logs which show how the irc plugin causes the Jenkins shutdown and/or do you have instructions on how to reproduce the issue?

          Show
          kutzi kutzi added a comment - Yes, that looks like a bug in the IRC plugin, but I fail to see how the plugin caused Jenkins to shut down. The order in the log file is, that there's an info that the JVM is shutting down ('INFO: JVM is terminating. Shutting down Winstone') and only after that the irc plugin logs an exception. Do you have additional logs which show how the irc plugin causes the Jenkins shutdown and/or do you have instructions on how to reproduce the issue?
          Hide
          kutzi kutzi added a comment -

          Seems like this is a bug in PircBotX 1.9 which was fixed in 2.0 (see changelog: https://code.google.com/p/pircbotx/wiki/ChangeLog)

          You might want to try the unreleased version of the IRC plugin which already uses PircBotx 2.0
          https://dl.dropboxusercontent.com/u/25863594/ircbot.hpi

          Show
          kutzi kutzi added a comment - Seems like this is a bug in PircBotX 1.9 which was fixed in 2.0 (see changelog: https://code.google.com/p/pircbotx/wiki/ChangeLog ) You might want to try the unreleased version of the IRC plugin which already uses PircBotx 2.0 https://dl.dropboxusercontent.com/u/25863594/ircbot.hpi
          Hide
          windowsrefund windows refund added a comment - - edited

          Thanks! The newer plugin seems to be working nicely. Sorry to drift off topic, but is there any way to customize the summary message? For example, I'd like

          Project This is a test #22: SUCCESS in 2.6 sec: http://jenkins.example.com:8080/job/This%20is%a%20/test/22/

          To simply be:

          Project This is a test #22: SUCCESS in 2.6 sec

          Show
          windowsrefund windows refund added a comment - - edited Thanks! The newer plugin seems to be working nicely. Sorry to drift off topic, but is there any way to customize the summary message? For example, I'd like Project This is a test #22: SUCCESS in 2.6 sec: http://jenkins.example.com:8080/job/This%20is%a%20/test/22/ To simply be: Project This is a test #22: SUCCESS in 2.6 sec
          Hide
          kutzi kutzi added a comment -

          You can configure different notification styles (normal, short, ...) as far as I remember. On top of that there is currently no possibility to configure it.

          Show
          kutzi kutzi added a comment - You can configure different notification styles (normal, short, ...) as far as I remember. On top of that there is currently no possibility to configure it.
          Hide
          kutzi kutzi added a comment -

          Can you confirm, that it was really the IRC plugin which lead to Jenkins shutdown?

          Show
          kutzi kutzi added a comment - Can you confirm, that it was really the IRC plugin which lead to Jenkins shutdown?
          Hide
          windowsrefund windows refund added a comment -

          sure thing.. just want to let this version burn in for a bit.

          Show
          windowsrefund windows refund added a comment - sure thing.. just want to let this version burn in for a bit.

            People

            • Assignee:
              kutzi kutzi
              Reporter:
              windowsrefund windows refund
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: