org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: 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.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: 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.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.acegisecurity.userdetails.UsernameNotFoundException: User not found]
  3. 0

    Suddenly appengine devmode task requests to 0.0.0.0 refused

    Stack Overflow | 5 years ago | Riley Lark
    org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 2: Received exception executing http method POST against URL http://0.0.0.0:8888/tasks/cleanup: Connection to http://0.0.0.0:8888 refused]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why am I getting a can't load class, when the class is in my JAR file?

    Stack Overflow | 4 years ago | Dave
    org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: javax.ejb.EJBTransactionRolledbackException: Cannot load java type: org.mainco.bsorg.BusinessServiceFaultException]
  6. 0

    Hibernate 4: How do I resolve a "An AnnotationConfiguration instance is required to use

    org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: javax.ejb.EJBTransactionRolledbackException: An AnnotationConfiguration instance is required to use <mapping class="com.mainco.fdr.myproject.model.UserRole"/>]

    5 unregistered visitors
    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.quartz.SchedulerException

      Job threw an unhandled exception. [See nested exception: org.acegisecurity.userdetails.UsernameNotFoundException: User not found]

      at org.quartz.core.JobRunShell.run()
    2. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:214)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      2 frames