Details

    • Similar Issues:

      Description

      Trying to configure for the first time, the plugin will not save the hostname configured in the settings.

      Steps to reproduce:
      enter the hostname URL (example: https://my.server.local)
      enter the other fields
      press test connection -> it fails
      press Save on the settings
      go back to the settings
      hostname field is empty

      Environment:
      RocketChat Notifier 1.0.1
      Jenkins ver. 2.60.2
      RocketChat 0.59.3

      This is the log:

      Nov 23, 2017 1:28:45 AM SEVERE jenkins.plugins.rocketchatnotifier.RocketChatNotifier$DescriptorImpl doTestConnection
      Client error during trying to send rocket message
      java.lang.NullPointerException
      	at jenkins.plugins.rocketchatnotifier.rocket.RocketChatClientCallBuilder.<init>(RocketChatClientCallBuilder.java:48)
      	at jenkins.plugins.rocketchatnotifier.rocket.RocketChatClientImpl.<init>(RocketChatClientImpl.java:41)
      	at jenkins.plugins.rocketchatnotifier.RocketClientImpl.<init>(RocketClientImpl.java:29)
      	at jenkins.plugins.rocketchatnotifier.RocketChatNotifier$DescriptorImpl.doTestConnection(RocketChatNotifier.java:339)
      	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
      	at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
      	at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:138)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:92)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      	at org.eclipse.jetty.server.Server.handle(Server.java:499)
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
      	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
      	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      
      Nov 23, 2017 1:29:55 AM INFO hudson.plugins.jabber.im.transport.JabberPublisherDescriptor configure
      No hostname specified.
      

        Attachments

          Activity

          lkraider Paul Eipper created issue -
          mreinhardt Martin Reinhardt made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          mreinhardt Martin Reinhardt added a comment -

          Fixed in v1.0.2

          Show
          mreinhardt Martin Reinhardt added a comment - Fixed in v1.0.2
          mreinhardt Martin Reinhardt made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          twizzydizzy TwizzyDizzy TwizzyDizzy added a comment - - edited

          I'm afraid I'm seeing the same behaviour as described above on 1.0.3. If you need any help with debugging, don't hesitate to ask. I don't see the error in /var/log/jenkins/jenkins.log though.

          Cheers
          Thomas

          Show
          twizzydizzy TwizzyDizzy TwizzyDizzy added a comment - - edited I'm afraid I'm seeing the same behaviour as described above on 1.0.3. If you need any help with debugging, don't hesitate to ask. I don't see the error in /var/log/jenkins/jenkins.log though. Cheers Thomas
          twizzydizzy TwizzyDizzy TwizzyDizzy made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Hide
          twizzydizzy TwizzyDizzy TwizzyDizzy added a comment -

          Additional note: If I enter the URL and then press "Test connection" without hitting "Apply" or "Save" before, the connection test succeeds. Yet still, on saving or applying, it doesn't get preserved.

          Cheers
          Thomas

          Show
          twizzydizzy TwizzyDizzy TwizzyDizzy added a comment - Additional note: If I enter the URL and then press "Test connection" without hitting "Apply" or "Save" before, the connection test succeeds. Yet still, on saving or applying, it doesn't get preserved. Cheers Thomas
          Hide
          jenkinsuser33 Mark Worley added a comment - - edited

          I can confirm I have the same problem in 1.0.3. Identical to TwizzyDIzzy. Update from 0.5.3 directly to 1.0.3 and the problem began occurring. Tried uninstalling and reinstalling plugin and issue persists.

          Edit to add: I tried removing the plugin, deleting the folder out of the plugins folder and installing 0.5.4 manually and it still doesn't work. Also, even though I completely uninstalled it, upon re-install it has all the settings except the URL saved for the notifier.

          Show
          jenkinsuser33 Mark Worley added a comment - - edited I can confirm I have the same problem in 1.0.3. Identical to TwizzyDIzzy. Update from 0.5.3 directly to 1.0.3 and the problem began occurring. Tried uninstalling and reinstalling plugin and issue persists. Edit to add: I tried removing the plugin, deleting the folder out of the plugins folder and installing 0.5.4 manually and it still doesn't work. Also, even though I completely uninstalled it, upon re-install it has all the settings except the URL saved for the notifier.
          Hide
          satarus Karsten Raddatz added a comment -

          Today I changed a different Setting on Jenkins and this problem popped up. I did not update the plugin and was still on 1.0.1 after the update to 1.0.3 this problem is still there. For now I deactivated sending messages to rocketchat until this problem is fixed.

          Show
          satarus Karsten Raddatz added a comment - Today I changed a different Setting on Jenkins and this problem popped up. I did not update the plugin and was still on 1.0.1 after the update to 1.0.3 this problem is still there. For now I deactivated sending messages to rocketchat until this problem is fixed.
          Hide
          mrmoehritz Mo Scott added a comment - - edited

          i only registered to confirm this bug. downgraded to version 0.5.4 wich works fine, nice plugin!

          edit: it is true, the url is not visible, but it magically works for me...

          Show
          mrmoehritz Mo Scott added a comment - - edited i only registered to confirm this bug. downgraded to version 0.5.4 wich works fine, nice plugin! edit: it is true, the url is not visible, but it magically works for me...
          Hide
          amolchan Aleksey Molchanov added a comment -

          I installed this version of plugin (fresh installation) and now I cannot save Rocket Server URL. In the configuration XML file on the disk there is no any option for server URL.Plugin 1.0.3 version, Jenkins 2.93

           

          <?xml version='1.0' encoding='UTF-8'?>
          <jenkins.plugins.rocketchatnotifier.RocketChatNotifier_-DescriptorImpl plugin="rocketchatnotifier@1.0.3">
          <trustSSL>true</trustSSL>
          <username>user1</username>
          <password>pass</password>
          <channel></channel>
          <buildServerUrl>http://10.5.0.103:8080/</buildServerUrl>
          </jenkins.plugins.rocketchatnotifier.RocketChatNotifier_-DescriptorImpl>

           

           

           

          Show
          amolchan Aleksey Molchanov added a comment - I installed this version of plugin (fresh installation) and now I cannot save Rocket Server URL. In the configuration XML file on the disk there is no any option for server URL.Plugin 1.0.3 version, Jenkins 2.93   <?xml version='1.0' encoding='UTF-8'?> <jenkins.plugins.rocketchatnotifier.RocketChatNotifier_-DescriptorImpl plugin="rocketchatnotifier@1.0.3"> <trustSSL>true</trustSSL> <username>user1</username> <password>pass</password> <channel></channel> <buildServerUrl> http://10.5.0.103:8080/ </buildServerUrl> </jenkins.plugins.rocketchatnotifier.RocketChatNotifier_-DescriptorImpl>      
          Hide
          twizzydizzy TwizzyDizzy TwizzyDizzy added a comment -

          Hey Aleksey Molchanov, could you tell me where to find this file in order to verify this?

          Cheers & Thanks
          Thomas

          Show
          twizzydizzy TwizzyDizzy TwizzyDizzy added a comment - Hey Aleksey Molchanov , could you tell me where to find this file in order to verify this? Cheers & Thanks Thomas
          Hide
          amolchan Aleksey Molchanov added a comment -

          /var/lib/jenkins/jenkins.plugins.rocketchatnotifier.RocketChatNotifier.xm

           

          Show
          amolchan Aleksey Molchanov added a comment - /var/lib/jenkins/jenkins.plugins.rocketchatnotifier.RocketChatNotifier.xm  
          Hide
          twizzydizzy TwizzyDizzy TwizzyDizzy added a comment -

          Thank you and: Identical here... RC Server-URL is missing.

          Cheers
          Thomas

          Show
          twizzydizzy TwizzyDizzy TwizzyDizzy added a comment - Thank you and: Identical here... RC Server-URL is missing. Cheers Thomas
          Hide
          mreinhardt Martin Reinhardt added a comment -

          Can you try with 1.0.4

          Show
          mreinhardt Martin Reinhardt added a comment - Can you try with 1.0.4
          Hide
          amolchan Aleksey Molchanov added a comment -

          The problem solved in 1.0.4, thanks a lot! 

          Show
          amolchan Aleksey Molchanov added a comment - The problem solved in 1.0.4, thanks a lot! 
          Hide
          twizzydizzy TwizzyDizzy TwizzyDizzy added a comment - - edited

          Solved for me, too. Hostname is now preserved on saving and if I use this (e.g. as a Post-Build step) the message gets sent to the configured channel.

          Thanks a lot!

          Cheers
          Thomas

          Show
          twizzydizzy TwizzyDizzy TwizzyDizzy added a comment - - edited Solved for me, too. Hostname is now preserved on saving and if I use this (e.g. as a Post-Build step) the message gets sent to the configured channel. Thanks a lot! Cheers Thomas
          Hide
          mrmoehritz Mo Scott added a comment -

          solved for me too. Nice!

          Show
          mrmoehritz Mo Scott added a comment - solved for me too. Nice!
          mreinhardt Martin Reinhardt made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          marbon marbon added a comment -

          I have this problem also with version 1.0.4. The property rocketServerUrl is defined in the above named xml-file.

          I also tried deleting all settings and reinstalling the plugin, but the problem still exists

          Show
          marbon marbon added a comment - I have this problem also with version 1.0.4. The property rocketServerUrl is defined in the above named xml-file. I also tried deleting all settings and reinstalling the plugin, but the problem still exists
          mreinhardt Martin Reinhardt made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              mreinhardt Martin Reinhardt
              Reporter:
              lkraider Paul Eipper
            • Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: