Details

    • Similar Issues:

      Description

      Reported in 1.509.1:

      ... winstone.Logger logInternal 
      WARNING: Untrapped Error in Servlet 
      java.lang.NullPointerException 
      	at jenkins.security.ConfidentialStore.get(ConfidentialStore.java:66) 
      	at jenkins.security.ConfidentialKey.load(ConfidentialKey.java:47) 
      	at jenkins.security.HMACConfidentialKey.getKey(HMACConfidentialKey.java:125) 
      	at jenkins.security.HMACConfidentialKey.createMac(HMACConfidentialKey.java:112) 
      	at jenkins.security.HMACConfidentialKey.mac(HMACConfidentialKey.java:69) 
      	at jenkins.security.HMACConfidentialKey.mac(HMACConfidentialKey.java:85) 
      	at hudson.security.TokenBasedRememberMeServices2.makeTokenSignature(TokenBasedRememberMeServices2.java:51) 
      	at org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices.autoLogin(TokenBasedRememberMeServices.java:240) 
      	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:104) 
      	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 org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) 
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) 
      	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64) 
      	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:66) 
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) 
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) 
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) 
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) 
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) 
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50) 
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) 
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) 
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) 
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) 
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) 
      	at winstone.RequestDispatcher.forward(RequestDispatcher.java:331) 
      	at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227) 
      	at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) 
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
      	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:722)
      

      Probably a race condition: attempt to load a web page during startup, when the security realm has been set (as indicated by the call stack location in HudsonFilter) yet Jenkins.INSTANCE is still null. Can probably just ignore the Lookup in this case.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/java/jenkins/security/ConfidentialStore.java
          http://jenkins-ci.org/commit/jenkins/91a62d6574075516ecabf24f920a933683957ccb
          Log:
          [FIXED JENKINS-18193] NPE thrown when Jenkins failed to initialize.
          Not really solving anything here—there is no plausible implementation that could run under these circumstances—
          but at least reporting the problem more clearly.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/jenkins/security/ConfidentialStore.java http://jenkins-ci.org/commit/jenkins/91a62d6574075516ecabf24f920a933683957ccb Log: [FIXED JENKINS-18193] NPE thrown when Jenkins failed to initialize. Not really solving anything here—there is no plausible implementation that could run under these circumstances— but at least reporting the problem more clearly.
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #2572
          [FIXED JENKINS-18193] NPE thrown when Jenkins failed to initialize. (Revision 91a62d6574075516ecabf24f920a933683957ccb)

          Result = SUCCESS
          Jesse Glick : 91a62d6574075516ecabf24f920a933683957ccb
          Files :

          • core/src/main/java/jenkins/security/ConfidentialStore.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2572 [FIXED JENKINS-18193] NPE thrown when Jenkins failed to initialize. (Revision 91a62d6574075516ecabf24f920a933683957ccb) Result = SUCCESS Jesse Glick : 91a62d6574075516ecabf24f920a933683957ccb Files : core/src/main/java/jenkins/security/ConfidentialStore.java
          Hide
          jglick Jesse Glick added a comment -

          Not an lts-candidate since the fix is in 1.519 whereas the next LTS base is 1.532. (No 1.509.5 is planned.)

          Show
          jglick Jesse Glick added a comment - Not an lts-candidate since the fix is in 1.519 whereas the next LTS base is 1.532. (No 1.509.5 is planned.)

            People

            • Assignee:
              jglick Jesse Glick
              Reporter:
              jglick Jesse Glick
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: