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

NullPointerException after server restart with security configured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • _unsorted
    • None
    • Platform: Macintosh, OS: All

      After configuring security and restarting the server, the following exception was encountered. Note
      that hudson is deployed as a war file on a local Tomcat instance. Hudson version 1.203

      java.lang.NullPointerException
      hudson.security.HudsonPrivateSecurityRealm$Details.getUsername(HudsonPrivateSecurityRealm.jav
      a:157)
      org.acegisecurity.acls.sid.PrincipalSid.<init>(PrincipalSid.java:50)
      hudson.security.SidACL._hasPermission(SidACL.java:34)
      hudson.security.GlobalMatrixAuthorizationStrategy$AclImpl._hasPermission(GlobalMatrixAuthoriza
      tionStrategy.java:112)
      hudson.security.SidACL.hasPermission(SidACL.java:20)
      hudson.security.ACL.checkPermission(ACL.java:28)
      hudson.model.View.checkPermission(View.java:102)
      hudson.model.Hudson.getTarget(Hudson.java:2165)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:362)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:351)
      org.kohsuke.stapler.Stapler.service(Stapler.java:111)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:52)
      hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:28)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessing
      Filter.java:125)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFil
      ter.java:142)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrati
      onFilter.java:249)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:44)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:85)

            Unassigned Unassigned
            dgreen dgreen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: