org.acegisecurity.userdetails.UsernameNotFoundException: User not found

Pentaho BI Platform Tracking | Jared Pshedesky | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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

    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