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

ActiveDirectory.updateUserCache uncaughtException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins 2.176.2
      active-directory:2.16
    • Similar Issues:

      Description

      Updated plugins using install_plugins.sh (the docker model).

       

      Upon startup, seeing the following the in the logs when user logs in. Login is successful however.

       

      hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtException
      SEVERE: A thread (ActiveDirectory.updateUserCache 1/332) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.
      java.lang.NullPointerException
         at hudson.Util.fileToPath(Util.java:1501)
         at hudson.model.UserIdMapper.createDirectoryForNewUser(UserIdMapper.java:145)
         at hudson.model.UserIdMapper.putIfAbsent(UserIdMapper.java:92)
         at hudson.model.User.putUserFolderIfAbsent(User.java:806)
         at hudson.model.User.constructUserConfigFile(User.java:802)
         at hudson.model.User.save(User.java:796)
         at hudson.model.User.addProperty(User.java:336)
         at hudson.plugins.active_directory.ActiveDirectoryUserDetail.updateUserInfo(ActiveDirectoryUserDetail.java:213)
         at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$2.run(ActiveDirectoryUnixAuthenticationProvider.java:462)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
         at java.lang.Thread.run(Thread.java:748) 

        Attachments

          Activity

          ianw Ian Williams created issue -
          ianw Ian Williams made changes -
          Field Original Value New Value
          Description Updated plugins using install_plugins.sh (the docker model).

           

          Upon startup, seeing the following the in the logs when user logs in. Login is successful however.

           hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtException

          SEVERE: A thread (ActiveDirectory.updateUserCache [#1]/332) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.

          {{java.lang.NullPointerException}}{{        at hudson.Util.fileToPath(Util.java:1501)}}{{        at hudson.model.UserIdMapper.createDirectoryForNewUser(UserIdMapper.java:145)}}{{        at hudson.model.UserIdMapper.putIfAbsent(UserIdMapper.java:92)}}{{        at hudson.model.User.putUserFolderIfAbsent(User.java:806)}}{{        at hudson.model.User.constructUserConfigFile(User.java:802)}}{{        at hudson.model.User.save(User.java:796)}}{{        at hudson.model.User.addProperty(User.java:336)}}{{        at hudson.plugins.active_directory.ActiveDirectoryUserDetail.updateUserInfo(ActiveDirectoryUserDetail.java:213)}}{{        at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$2.run(ActiveDirectoryUnixAuthenticationProvider.java:462)}}{{        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}{{        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}{{        at java.lang.Thread.run(Thread.java:748)}}

           
          Updated plugins using install_plugins.sh (the docker model).

           

          Upon startup, seeing the following the in the logs when user logs in. Login is successful however.

           

          {{hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtException}}
          {{SEVERE: A thread (ActiveDirectory.updateUserCache [#1]/332) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.}}
          {{java.lang.NullPointerException}}
          {{   at hudson.Util.fileToPath(Util.java:1501)}}
          {{   at hudson.model.UserIdMapper.createDirectoryForNewUser(UserIdMapper.java:145)}}
          {{   at hudson.model.UserIdMapper.putIfAbsent(UserIdMapper.java:92)}}
          {{   at hudson.model.User.putUserFolderIfAbsent(User.java:806)}}
          {{   at hudson.model.User.constructUserConfigFile(User.java:802)}}
          {{   at hudson.model.User.save(User.java:796)}}
          {{   at hudson.model.User.addProperty(User.java:336)}}
          {{   at hudson.plugins.active_directory.ActiveDirectoryUserDetail.updateUserInfo(ActiveDirectoryUserDetail.java:213)}}
          {{   at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$2.run(ActiveDirectoryUnixAuthenticationProvider.java:462)}}
          {{   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
          {{   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
          {{   at java.lang.Thread.run(Thread.java:748) }}
          ianw Ian Williams made changes -
          Description Updated plugins using install_plugins.sh (the docker model).

           

          Upon startup, seeing the following the in the logs when user logs in. Login is successful however.

           

          {{hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtException}}
          {{SEVERE: A thread (ActiveDirectory.updateUserCache [#1]/332) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.}}
          {{java.lang.NullPointerException}}
          {{   at hudson.Util.fileToPath(Util.java:1501)}}
          {{   at hudson.model.UserIdMapper.createDirectoryForNewUser(UserIdMapper.java:145)}}
          {{   at hudson.model.UserIdMapper.putIfAbsent(UserIdMapper.java:92)}}
          {{   at hudson.model.User.putUserFolderIfAbsent(User.java:806)}}
          {{   at hudson.model.User.constructUserConfigFile(User.java:802)}}
          {{   at hudson.model.User.save(User.java:796)}}
          {{   at hudson.model.User.addProperty(User.java:336)}}
          {{   at hudson.plugins.active_directory.ActiveDirectoryUserDetail.updateUserInfo(ActiveDirectoryUserDetail.java:213)}}
          {{   at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$2.run(ActiveDirectoryUnixAuthenticationProvider.java:462)}}
          {{   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
          {{   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
          {{   at java.lang.Thread.run(Thread.java:748) }}
          Updated plugins using install_plugins.sh (the docker model).

           

          Upon startup, seeing the following the in the logs when user logs in. Login is successful however.

           

          {{hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtException}}
           {{SEVERE: A thread (ActiveDirectory.updateUserCache [#1]/332) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.}}
           {{java.lang.NullPointerException}}
           {{   at hudson.Util.fileToPath(Util.java:1501)}}
           {{   at hudson.model.UserIdMapper.createDirectoryForNewUser(UserIdMapper.java:145)}}
           {{   at hudson.model.UserIdMapper.putIfAbsent(UserIdMapper.java:92)}}
           {{   at hudson.model.User.putUserFolderIfAbsent(User.java:806)}}
           {{   at hudson.model.User.constructUserConfigFile(User.java:802)}}
           {{   at hudson.model.User.save(User.java:796)}}
           {{   at hudson.model.User.addProperty(User.java:336)}}
           {{   at hudson.plugins.active_directory.ActiveDirectoryUserDetail.updateUserInfo(ActiveDirectoryUserDetail.java:213)}}
           {{   at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$2.run(ActiveDirectoryUnixAuthenticationProvider.java:462)}}
           {{   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
           {{   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
           {{   at java.lang.Thread.run(Thread.java:748) }}
          ianw Ian Williams made changes -
          Issue Type Improvement [ 4 ] Bug [ 1 ]
          ianw Ian Williams made changes -
          Attachment active_dir.dump.txt [ 48335 ]

            People

            Assignee:
            fbelzunc Félix Belzunce Arcos
            Reporter:
            ianw Ian Williams
            Votes:
            7 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Created:
              Updated: