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

An error regarding SecurityRealm occurred when build test job

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: ldap-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.121.3
      LDAP SASL plugin:1.0.0
      LDAP Plugin:1.20
    • Similar Issues:

      Description

      Hi there,

       

      when we use the Jenkins to build job, an error below occurred:

      FATAL: java.lang.NullPointerException: hudson.security.SecurityRealm should never return null. jp.ikedam.jenkins.plugins.ldap_sasl.LdapSaslSecurityRealm@3f5cafe1 returned null for idOrFullName='xxx'
      java.lang.NullPointerException: hudson.security.SecurityRealm should never return null. jp.ikedam.jenkins.plugins.ldap_sasl.LdapSaslSecurityRealm@3f5cafe1 returned null for idOrFullName='xxx'
      	at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:176)
      	at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:161)
      	at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767)
      	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)
      	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)
      	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
      	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
      Caused: com.google.common.util.concurrent.UncheckedExecutionException
      	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234)
      	at com.google.common.cache.LocalCache.get(LocalCache.java:3965)
      	at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)
      	at jenkins.security.UserDetailsCache.loadUserByUsername(UserDetailsCache.java:127)
      	at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1305)
      	at hudson.model.User$CanonicalIdResolver.resolve(User.java:1242)
      	at hudson.model.User.get(User.java:465)
      	at hudson.model.User.get(User.java:432)
      	at hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:388)
      	at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:466)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:138)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
      	at hudson.model.Run.execute(Run.java:1823)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE

      but currently, we didn't add users and assign roles.

      what might cause this problem or how can i troubleshoot this kind of problem?

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              talentleonard Johnson Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: