org.acegisecurity.userdetails.UsernameNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • '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)
    via by Jared Pshedesky,
  • '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)
    via by Jared Pshedesky,
    • 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)
    No Bugmate found.