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

exception when loading main page prior to authenticating

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: slack-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      Exception when loading main page prior to authenticating:

      Oops!

      A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.
      Stack trace

      java.lang.NullPointerException
      at java.util.TreeMap.put(TreeMap.java:556)
      at java.util.TreeSet.add(TreeSet.java:255)
      at jenkins.model.Jenkins.getUnprotectedRootActions(Jenkins.java:4294)
      at jenkins.model.Jenkins.getTarget(Jenkins.java:4263)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:674)
      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:848)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:134)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:125)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      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:135)
      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:1482)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      at org.eclipse.jetty.server.Server.handle(Server.java:370)
      at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
      at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
      at org.eclipse.jetty.ajp.Ajp13Connection.access$2900(Ajp13Connection.java:45)
      at org.eclipse.jetty.ajp.Ajp13Connection$RequestHandler.headerComplete(Ajp13Connection.java:237)
      at org.eclipse.jetty.ajp.Ajp13Parser.parseNext(Ajp13Parser.java:478)
      at org.eclipse.jetty.ajp.Ajp13Parser.parseAvailable(Ajp13Parser.java:158)
      at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
      at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
      at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

          Hide
          kbaltrinic Kenneth Baltrinic added a comment - - edited

          Concur that this is critical. It breaks our ability to manage Jenkins with chef because it makes Jenkins appear to be 'down' when it should be and is up.

          Do we have a timeline for when this will be released to LTS?

          Show
          kbaltrinic Kenneth Baltrinic added a comment - - edited Concur that this is critical. It breaks our ability to manage Jenkins with chef because it makes Jenkins appear to be 'down' when it should be and is up. Do we have a timeline for when this will be released to LTS?
          Hide
          promo718 George Sakhnovsky added a comment -

          Thank you Bartosz, your suggestion works as a quick workaround.

          Show
          promo718 George Sakhnovsky added a comment - Thank you Bartosz, your suggestion works as a quick workaround.
          Hide
          sag47 Sam Gleske added a comment - - edited

          Placing this script console script in your $JENKINS_HOME/init.groovy.d directory is a workaround.

          https://github.com/samrocketman/jenkins-script-console-scripts/blob/master/disable-slack-webhooks.groovy

          It will permanently disable it. Restart your Jenkins instance for the change to take effect. Until a more permanent fix can be in place.

          Show
          sag47 Sam Gleske added a comment - - edited Placing this script console script in your $JENKINS_HOME/init.groovy.d directory is a workaround. https://github.com/samrocketman/jenkins-script-console-scripts/blob/master/disable-slack-webhooks.groovy It will permanently disable it. Restart your Jenkins instance for the change to take effect. Until a more permanent fix can be in place.
          Hide
          sag47 Sam Gleske added a comment - - edited

          I reproduced the issue and thoroughly documented it (including a workaround).

          https://github.com/jenkinsci/slack-plugin/issues/191

          Moved this to the slack-plugin issues and assigned to Kurt. Closing this issue in favor of issue 191 in GitHub. Please follow up with communication there.

          Show
          sag47 Sam Gleske added a comment - - edited I reproduced the issue and thoroughly documented it (including a workaround). https://github.com/jenkinsci/slack-plugin/issues/191 Moved this to the slack-plugin issues and assigned to Kurt. Closing this issue in favor of issue 191 in GitHub. Please follow up with communication there.
          Hide
          sag47 Sam Gleske added a comment -
          Show
          sag47 Sam Gleske added a comment - Closed in favor of https://github.com/jenkinsci/slack-plugin/issues/191

            People

            Assignee:
            kmadel Kurt Madel
            Reporter:
            promo718 George Sakhnovsky
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: