org.acegisecurity.userdetails.UsernameNotFoundException: User not found

Pentaho BI Platform Tracking | Jared Pshedesky | 8 years ago
  1. 0

    'm seeing exceptions when I have schedules running and delete the user who initiated them. Repro path is: 1. Login to PUC as Suzy 2. Login to PEC as Admin 3. Create public schedule in PEC and assign an xaction as content for the schedule; a period of 45 to 60 seconds works well for testing purposes 4. In PUC schedule the xaction using the public schedule 5. Logout of PUC 6. In PEC delete user Suzy 7. Restart the server 8. Watch the tomcat console for the exceptions below as the scheduled xaction is run. 14:39:00,046 ERROR [JobRunShell] Job Public Schedule.awdawdx threw an unhandled Exception: org.acegisecurity.userdetails.UsernameNotFoundException: User not found at org.pentaho.platform.engine.security.userroledao.userdetailsservice.UserRoleDaoUserDetailsService.loadUserByUsername(UserRoleDaoUserDetailsService.java:52) at org.pentaho.platform.engine.security.userroledao.userrolelistservice.UserRoleDaoUserRoleListService.getAuthoritiesForUser(UserRoleDaoUserRoleListService.java:66) at org.pentaho.platform.engine.security.userrole.UserDetailsRoleListService.getEffectiveUserSession(UserDetailsRoleListService.java:103) at org.pentaho.platform.repository.subscription.SubscriptionExecute.getEffectiveUserSession(SubscriptionExecute.java:80) at org.pentaho.platform.repository.subscription.SubscriptionExecute.execute(SubscriptionExecute.java:120) at org.pentaho.platform.scheduler.QuartzSubscriptionJob.execute(QuartzSubscriptionJob.java:29) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 14:39:00,062 ERROR [ErrorLogger] Job (Public Schedule.awdawdx threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.acegisecurity.userdetails.UsernameNotFoundException: User not found] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- org.acegisecurity.userdetails.UsernameNotFoundException: User not found at org.pentaho.platform.engine.security.userroledao.userdetailsservice.UserRoleDaoUserDetailsService.loadUserByUsername(UserRoleDaoUserDetailsService.java:52) at org.pentaho.platform.engine.security.userroledao.userrolelistservice.UserRoleDaoUserRoleListService.getAuthoritiesForUser(UserRoleDaoUserRoleListService.java:66) at org.pentaho.platform.engine.security.userrole.UserDetailsRoleListService.getEffectiveUserSession(UserDetailsRoleListService.java:103) at org.pentaho.platform.repository.subscription.SubscriptionExecute.getEffectiveUserSession(SubscriptionExecute.java:80) at org.pentaho.platform.repository.subscription.SubscriptionExecute.execute(SubscriptionExecute.java:120) at org.pentaho.platform.scheduler.QuartzSubscriptionJob.execute(QuartzSubscriptionJob.java:29) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    Pentaho BI Platform Tracking | 8 years ago | Jared Pshedesky
    org.acegisecurity.userdetails.UsernameNotFoundException: User not found
  2. 0

    'm seeing exceptions when I have schedules running and delete the user who initiated them. Repro path is: 1. Login to PUC as Suzy 2. Login to PEC as Admin 3. Create public schedule in PEC and assign an xaction as content for the schedule; a period of 45 to 60 seconds works well for testing purposes 4. In PUC schedule the xaction using the public schedule 5. Logout of PUC 6. In PEC delete user Suzy 7. Restart the server 8. Watch the tomcat console for the exceptions below as the scheduled xaction is run. 14:39:00,046 ERROR [JobRunShell] Job Public Schedule.awdawdx threw an unhandled Exception: org.acegisecurity.userdetails.UsernameNotFoundException: User not found at org.pentaho.platform.engine.security.userroledao.userdetailsservice.UserRoleDaoUserDetailsService.loadUserByUsername(UserRoleDaoUserDetailsService.java:52) at org.pentaho.platform.engine.security.userroledao.userrolelistservice.UserRoleDaoUserRoleListService.getAuthoritiesForUser(UserRoleDaoUserRoleListService.java:66) at org.pentaho.platform.engine.security.userrole.UserDetailsRoleListService.getEffectiveUserSession(UserDetailsRoleListService.java:103) at org.pentaho.platform.repository.subscription.SubscriptionExecute.getEffectiveUserSession(SubscriptionExecute.java:80) at org.pentaho.platform.repository.subscription.SubscriptionExecute.execute(SubscriptionExecute.java:120) at org.pentaho.platform.scheduler.QuartzSubscriptionJob.execute(QuartzSubscriptionJob.java:29) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 14:39:00,062 ERROR [ErrorLogger] Job (Public Schedule.awdawdx threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.acegisecurity.userdetails.UsernameNotFoundException: User not found] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- org.acegisecurity.userdetails.UsernameNotFoundException: User not found at org.pentaho.platform.engine.security.userroledao.userdetailsservice.UserRoleDaoUserDetailsService.loadUserByUsername(UserRoleDaoUserDetailsService.java:52) at org.pentaho.platform.engine.security.userroledao.userrolelistservice.UserRoleDaoUserRoleListService.getAuthoritiesForUser(UserRoleDaoUserRoleListService.java:66) at org.pentaho.platform.engine.security.userrole.UserDetailsRoleListService.getEffectiveUserSession(UserDetailsRoleListService.java:103) at org.pentaho.platform.repository.subscription.SubscriptionExecute.getEffectiveUserSession(SubscriptionExecute.java:80) at org.pentaho.platform.repository.subscription.SubscriptionExecute.execute(SubscriptionExecute.java:120) at org.pentaho.platform.scheduler.QuartzSubscriptionJob.execute(QuartzSubscriptionJob.java:29) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    Pentaho BI Platform Tracking | 8 years ago | Jared Pshedesky
    org.acegisecurity.userdetails.UsernameNotFoundException: User not found
  3. 0

    Jenkins CLI login problem

    Google Groups | 5 years ago | Lestin Liu
    org.acegisecurity.userdetails.UsernameNotFoundException: User anonymous not found in directory.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why doesn't the Jenkins CLI work on our Dev@Cloud instance?

    Stack Overflow | 4 years ago | highvoltage
    org.acegisecurity.userdetails.UsernameNotFoundException: Not Found or Not Authorized
  6. 0

    You cannot specify a username: java -jar jenkins-cli.jar -s http://ci.example.com:8080 login --username asdf --password asdf "--username" is not a valid option java -jar jenkins-cli.jar login args... Saves the current credential to allow future commands to run without explicit credential information and cant use the login command java -jar jenkins-cli.jar -s http://ci.example.com:8080 login org.acegisecurity.userdetails.UsernameNotFoundException: Active-directory plugin doesn't support user retrieval at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.loadUserByUsername(ActiveDirectoryUnixAuthenticationProvider.java:71) at hudson.security.SecurityRealm.loadUserByUsername(SecurityRealm.java:305) at hudson.cli.ClientAuthenticationCache.set(ClientAuthenticationCache.java:94) at hudson.cli.LoginCommand.run(LoginCommand.java:37) at hudson.cli.CLICommand.main(CLICommand.java:184) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:82) at sun.reflect.GeneratedMethodAccessor587.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) 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 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636)

    Jenkins JIRA | 5 years ago | arthur ulfeldt
    org.acegisecurity.userdetails.UsernameNotFoundException: Active-directory plugin doesn't support user retrieval

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.acegisecurity.userdetails.UsernameNotFoundException

      User not found

      at org.pentaho.platform.engine.security.userroledao.userdetailsservice.UserRoleDaoUserDetailsService.loadUserByUsername()
    2. org.pentaho.platform
      QuartzSubscriptionJob.execute
      1. org.pentaho.platform.engine.security.userroledao.userdetailsservice.UserRoleDaoUserDetailsService.loadUserByUsername(UserRoleDaoUserDetailsService.java:52)
      2. org.pentaho.platform.engine.security.userroledao.userrolelistservice.UserRoleDaoUserRoleListService.getAuthoritiesForUser(UserRoleDaoUserRoleListService.java:66)
      3. org.pentaho.platform.engine.security.userrole.UserDetailsRoleListService.getEffectiveUserSession(UserDetailsRoleListService.java:103)
      4. org.pentaho.platform.repository.subscription.SubscriptionExecute.getEffectiveUserSession(SubscriptionExecute.java:80)
      5. org.pentaho.platform.repository.subscription.SubscriptionExecute.execute(SubscriptionExecute.java:120)
      6. org.pentaho.platform.scheduler.QuartzSubscriptionJob.execute(QuartzSubscriptionJob.java:29)
      6 frames
    3. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:203)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      2 frames