[JIRA] (JENKINS-37339) Global security throws NullPointerException after installing Slack Plugin

3 views
Skip to first unread message

bhunt@mac.com (JIRA)

unread,
Aug 11, 2016, 8:45:01 AM8/11/16
to jenkinsc...@googlegroups.com
Bryan Hunt created an issue
 
Jenkins / Bug JENKINS-37339
Global security throws NullPointerException after installing Slack Plugin
Issue Type: Bug Bug
Assignee: Kurt Madel
Components: slack-plugin
Created: 2016/Aug/11 12:44 PM
Environment: Jenkins 2.7.2 Slack plugin 2.0.1
Priority: Major Major
Reporter: Bryan Hunt

After installing the slack plugin, if you navigate to the Global Security configuration page, you get a NullPointerException and global security is no longer configurable.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

bhunt@mac.com (JIRA)

unread,
Aug 11, 2016, 9:46:01 AM8/11/16
to jenkinsc...@googlegroups.com
Bryan Hunt commented on Bug JENKINS-37339
 
Re: Global security throws NullPointerException after installing Slack Plugin
javax.servlet.ServletException: java.lang.NullPointerException
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
	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:126)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:86)
	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:93)
	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:76)
	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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
	at jenkins.plugins.slack.webhook.WebhookEndpoint.getUrlName(WebhookEndpoint.java:51)
	at jenkins.model.Jenkins.getDynamic(Jenkins.java:3344)
	at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
	at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:378)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
	... 54 more

alex@workpop.com (JIRA)

unread,
Aug 18, 2016, 5:23:03 PM8/18/16
to jenkinsc...@googlegroups.com

info@martinklinke.com (JIRA)

unread,
Sep 14, 2016, 4:44:01 AM9/14/16
to jenkinsc...@googlegroups.com

I have also installed the Slack Plugin and now not even the login page of Jenkins works. The stack trace is similar to the one mentioned in the "Caused by" section, at least it's also the call to WebhookEndpoint.getUrlName where the NPE occurs.

info@martinklinke.com (JIRA)

unread,
Sep 14, 2016, 4:47:02 AM9/14/16
to jenkinsc...@googlegroups.com

However, I have deactivated the plugin and reactivated it upon restart (which caused another restart). Now it seems to be working. I can also open the Global Security page without problems.

ryankersh@gmail.com (JIRA)

unread,
Oct 20, 2016, 7:29:01 PM10/20/16
to jenkinsc...@googlegroups.com

We installed the plugin for the first time today and ran into the same issue. Jenkins ver. 1.642.4, Slack Notification Plugin 2.0.1. I disabled the plugin and restarted, which got rid of the problem. We'll wait to enable it.

bhunt@mac.com (JIRA)

unread,
Oct 20, 2016, 9:07:01 PM10/20/16
to jenkinsc...@googlegroups.com

I believe the plugin works just fine after a restart. I've been running it without problems after a restart.

peter.grape@scania.com (JIRA)

unread,
Nov 18, 2016, 4:35:01 AM11/18/16
to jenkinsc...@googlegroups.com

kmadel@cloudbees.com (JIRA)

unread,
Oct 7, 2018, 11:34:02 AM10/7/18
to jenkinsc...@googlegroups.com
Change By: Kurt Madel
Status: Open Fixed but Unreleased
Resolution: Fixed
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

timjacomb1@gmail.com (JIRA)

unread,
Nov 30, 2018, 5:19:04 AM11/30/18
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages