com.opensymphony.user.EntityNotFoundException: No user USER found

JIRA | Anurag Mohanty | 6 years ago
  1. 0

    Hello! I'm currently trying to configure JIRA with ldap and JEMH. I have JIRA 4.1.1, JEMH 0.9.5.1 and ldaputils 1.0.16 installed. I'm trying to pull the reporter from the body of an e-mail and check it against ldap and then create the user if it doesn't exist and associate it with the issue. I've tried every configuration I can think of. Here is a snapshot of the logs: When the service picks up the e-mail it checks if the user exists, and then checks all the existing users. {code:title=log} 2010-10-20 09:12:12,829 JiraQuartzScheduler_Worker-3 DEBUG ServiceRunner testing jemh [user.provider.ldap.LDAPCredentialsProvider] Credentials for 'USER' NOT handled by LDAP, because 'USER' not handled by any other credentials provider. Check you have at least one other credentials provider, and that they contain this user. com.opensymphony.user.EntityNotFoundException: No user USER found at com.opensymphony.user.UserManager.getEntity(UserManager.java:259) at com.opensymphony.user.UserManager.getUser(UserManager.java:181) at com.atlassian.core.user.UserUtils.getUser(UserUtils.java:37) at com.javahollic.jira.emh.engine.EMHIssueUtils.getApplicableReporter(EMHIssueUtils.java:1264) at com.javahollic.jira.emh.engine.EMHIssueUtils.<init>(EMHIssueUtils.java:169) at com.javahollic.jira.emh.engine.IssueCreationHelper.<init>(IssueCreationHelper.java:58) at com.javahollic.jira.emh.engine.AbstractFieldProcessor.getIssueObjectViaCreation(AbstractFieldProcessor.java:104) at com.javahollic.jira.emh.engine.AbstractFieldProcessor.getIssueObject(AbstractFieldProcessor.java:89) at com.javahollic.jira.emh.service.EMHIssueHandler.runProcessor(EMHIssueHandler.java:293) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:125) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:67) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:189) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 2010-10-20 09:12:12,832 JiraQuartzScheduler_Worker-3 DEBUG ServiceRunner testing jemh [user.provider.ldap.LDAPCredentialsProvider] 'GOOD USER' could be handled by LDAP 2010-10-20 09:12:12,832 JiraQuartzScheduler_Worker-3 DEBUG ServiceRunner testing jemh [user.provider.ldap.LDAPCredentialsProvider] 'GOOD USER' could be handled by LDAP 2010-10-20 09:12:12,834 JiraQuartzScheduler_Worker-3 DEBUG ServiceRunner testing jemh [user.provider.ldap.LDAPCredentialsProvider] Credentials for 'USER' NOT handled by LDAP, because 'USER' not handled by any other credentials provider. Check you have at least one other credentials provider, and that they contain this user. 2010-10-20 09:12:12,838 JiraQuartzScheduler_Worker-3 DEBUG ServiceRunner testing jemh [user.provider.ldap.LDAPCredentialsProvider] 'ANOTHER GOOD USER' could be handled by LDAP {code} My emh.properties files contains: {code} # #strictJiraPermissions=false # # JEMH-116, provide a CSV (ie mulitple values possible) regexp matching JEMH inbound email addresses that users use to get mail into JEMH/Jira, # enabling all TO: / CC: addresses to be scanned for: # a) 'projectAutoAssign' purposes # b) removal of erroneous entries that would otherwise be possibly processed with cc: # jemhAddresseeRegexps=[a-z|A-Z|0-9|_|-]*@columbia.edu # # Enable this to add an indicator at the top of a mail which processor handler the mail # indicateWhichProcessorProcessedMail=true # # Enable this to enable an indicator at the head of each email for # indicateEmailDetailsForAnonymousIssueCreation=true #------------ #If enabled will cause the outbound mail queue to flush whenever a comment is received or an issue processed # autoFlushMailQueue=true # If this option is enabled, it will allow the user associated with the email sender to be used for security checks , enabling simplified security setup of target projects. # #useEmailSenderForSecurityChecks=true ## Messages marked as Bulk handling, values are [forward|delete|ignore] bulk=forward # If using a case sensitive DB, need to define the userid Case for matching otherwise EXACT matches will be needed # Values: toLower|toUpper #forceUserIdCase=toLower # User will be created only if a valid ID can be found , users will not be created with the source email address. # example: createUsers=true createUsers=true # # When creating users, how should their ID's be formatted? # # values : # 'name' [NAME]@someplace.com (NOTE - collisions possible, needs more work to do NAME0, NAME1 upcounting etc. # 'email' [name@someplace.com] # 'alternate' (NOTE this delegates ID retrieval to custom retrievers, the 'default' will return full email address # # NOTE: if commented out, the default is to use the emailaddress [name@someplace.com] # example: createUsersIDFrom=email createUsersIDFrom=name # # regexp list, setup this with regexps matching from: address domains, to enable 'limited' account creation # eg .*@(dolby\..*) createUsersIDFromEmailDomainWhitelist=.*@columbia.edu # # regexp list, setup email addresses that you will never create from, possibly per domain. # eg sales@atlassian.com #createUsersIDFromEmailBlacklist=sales@dolby.com # # If set, all pre-existing users found will be checked for membership of this group. You would do this, for instan ce with an LDAP # user repository where not everyone is a jira user / member of 'jira-users'. It won't however create the users. # autoJoinGroup=jira-users {code} Is there something simple that I'm missing? Please help. Thanks, Anurag

    JIRA | 6 years ago | Anurag Mohanty
    com.opensymphony.user.EntityNotFoundException: No user USER found
  2. 0

    Hello! I'm currently trying to configure JIRA with ldap and JEMH. I have JIRA 4.1.1, JEMH 0.9.5.1 and ldaputils 1.0.16 installed. I'm trying to pull the reporter from the body of an e-mail and check it against ldap and then create the user if it doesn't exist and associate it with the issue. I've tried every configuration I can think of. Here is a snapshot of the logs: When the service picks up the e-mail it checks if the user exists, and then checks all the existing users. {code:title=log} 2010-10-20 09:12:12,829 JiraQuartzScheduler_Worker-3 DEBUG ServiceRunner testing jemh [user.provider.ldap.LDAPCredentialsProvider] Credentials for 'USER' NOT handled by LDAP, because 'USER' not handled by any other credentials provider. Check you have at least one other credentials provider, and that they contain this user. com.opensymphony.user.EntityNotFoundException: No user USER found at com.opensymphony.user.UserManager.getEntity(UserManager.java:259) at com.opensymphony.user.UserManager.getUser(UserManager.java:181) at com.atlassian.core.user.UserUtils.getUser(UserUtils.java:37) at com.javahollic.jira.emh.engine.EMHIssueUtils.getApplicableReporter(EMHIssueUtils.java:1264) at com.javahollic.jira.emh.engine.EMHIssueUtils.<init>(EMHIssueUtils.java:169) at com.javahollic.jira.emh.engine.IssueCreationHelper.<init>(IssueCreationHelper.java:58) at com.javahollic.jira.emh.engine.AbstractFieldProcessor.getIssueObjectViaCreation(AbstractFieldProcessor.java:104) at com.javahollic.jira.emh.engine.AbstractFieldProcessor.getIssueObject(AbstractFieldProcessor.java:89) at com.javahollic.jira.emh.service.EMHIssueHandler.runProcessor(EMHIssueHandler.java:293) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:125) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:67) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:189) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 2010-10-20 09:12:12,832 JiraQuartzScheduler_Worker-3 DEBUG ServiceRunner testing jemh [user.provider.ldap.LDAPCredentialsProvider] 'GOOD USER' could be handled by LDAP 2010-10-20 09:12:12,832 JiraQuartzScheduler_Worker-3 DEBUG ServiceRunner testing jemh [user.provider.ldap.LDAPCredentialsProvider] 'GOOD USER' could be handled by LDAP 2010-10-20 09:12:12,834 JiraQuartzScheduler_Worker-3 DEBUG ServiceRunner testing jemh [user.provider.ldap.LDAPCredentialsProvider] Credentials for 'USER' NOT handled by LDAP, because 'USER' not handled by any other credentials provider. Check you have at least one other credentials provider, and that they contain this user. 2010-10-20 09:12:12,838 JiraQuartzScheduler_Worker-3 DEBUG ServiceRunner testing jemh [user.provider.ldap.LDAPCredentialsProvider] 'ANOTHER GOOD USER' could be handled by LDAP {code} My emh.properties files contains: {code} # #strictJiraPermissions=false # # JEMH-116, provide a CSV (ie mulitple values possible) regexp matching JEMH inbound email addresses that users use to get mail into JEMH/Jira, # enabling all TO: / CC: addresses to be scanned for: # a) 'projectAutoAssign' purposes # b) removal of erroneous entries that would otherwise be possibly processed with cc: # jemhAddresseeRegexps=[a-z|A-Z|0-9|_|-]*@columbia.edu # # Enable this to add an indicator at the top of a mail which processor handler the mail # indicateWhichProcessorProcessedMail=true # # Enable this to enable an indicator at the head of each email for # indicateEmailDetailsForAnonymousIssueCreation=true #------------ #If enabled will cause the outbound mail queue to flush whenever a comment is received or an issue processed # autoFlushMailQueue=true # If this option is enabled, it will allow the user associated with the email sender to be used for security checks , enabling simplified security setup of target projects. # #useEmailSenderForSecurityChecks=true ## Messages marked as Bulk handling, values are [forward|delete|ignore] bulk=forward # If using a case sensitive DB, need to define the userid Case for matching otherwise EXACT matches will be needed # Values: toLower|toUpper #forceUserIdCase=toLower # User will be created only if a valid ID can be found , users will not be created with the source email address. # example: createUsers=true createUsers=true # # When creating users, how should their ID's be formatted? # # values : # 'name' [NAME]@someplace.com (NOTE - collisions possible, needs more work to do NAME0, NAME1 upcounting etc. # 'email' [name@someplace.com] # 'alternate' (NOTE this delegates ID retrieval to custom retrievers, the 'default' will return full email address # # NOTE: if commented out, the default is to use the emailaddress [name@someplace.com] # example: createUsersIDFrom=email createUsersIDFrom=name # # regexp list, setup this with regexps matching from: address domains, to enable 'limited' account creation # eg .*@(dolby\..*) createUsersIDFromEmailDomainWhitelist=.*@columbia.edu # # regexp list, setup email addresses that you will never create from, possibly per domain. # eg sales@atlassian.com #createUsersIDFromEmailBlacklist=sales@dolby.com # # If set, all pre-existing users found will be checked for membership of this group. You would do this, for instan ce with an LDAP # user repository where not everyone is a jira user / member of 'jira-users'. It won't however create the users. # autoJoinGroup=jira-users {code} Is there something simple that I'm missing? Please help. Thanks, Anurag

    JIRA | 6 years ago | Anurag Mohanty
    com.opensymphony.user.EntityNotFoundException: No user USER found
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    we use JIRA to authenticate users via CROWD. crowd retrieves the users from an ActiveDirectory. when the users is deleted in the active directory it sooner or later 'disappears' from crowd (or the administrator deletes the user in the crowd directory). then the user is no longer availble in jira. so issues assigned to that user cannot be re-assigned or edited. there is a stacktrace screen in the browser. the logs show an entity not found exception: {code} 2011-01-11 10:36:05,371 TP-Processor19 ERROR [500ErrorPage.jsp] Exception caught in 500 page Error occurred while retrieving user with username 'mabr'. com.atlassian.jira.exception.DataAccessException: Error occurred while retrieving user with username 'mabr'. at com.atlassian.jira.issue.IssueImpl.getUser(IssueImpl.java:1124) at com.atlassian.jira.issue.IssueImpl.getAssignee(IssueImpl.java:403) at com.atlassian.jira.issue.IssueImpl.setAssignee(IssueImpl.java:416) at com.atlassian.jira.issue.fields.AssigneeSystemField.updateIssue(AssigneeSystemField.java:231) at com.atlassian.jira.web.action.issue.AssignIssue.doExecute(AssignIssue.java:132) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:171) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.accesslog.AccessLogFilter.executeRequest(AccessLogFilter.java:99) at com.atlassian.jira.web.filters.accesslog.AccessLogFilter.doFilter(AccessLogFilter.java:83) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.security.xsrf.XsrfTokenAdditionRequestFilter.doFilter(XsrfTokenAdditionRequestFilter.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:40) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:219) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:140) at com.atlassian.jira.web.filters.JiraLoginFilter.doFilter(JiraLoginFilter.java:70) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:69) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:99) at com.atlassian.jira.web.filters.JIRAProfilingFilter.doFilter(JIRAProfilingFilter.java:16) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:59) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:53) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:350) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.gzipfilter.GzipFilter.doFilterInternal(GzipFilter.java:75) at com.atlassian.gzipfilter.GzipFilter.doFilter(GzipFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.cache.AbstractCachingFilter.doFilter(AbstractCachingFilter.java:33) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:41) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.startup.JiraStartupChecklistFilter.doFilter(JiraStartupChecklistFilter.java:86) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) Caused by: com.opensymphony.user.EntityNotFoundException: No user mabr found at com.opensymphony.user.UserManager.getEntity(UserManager.java:259) at com.opensymphony.user.UserManager.getUser(UserManager.java:181) at com.atlassian.core.user.UserUtils.getUser(UserUtils.java:37) at com.atlassian.jira.issue.IssueImpl.getUser(IssueImpl.java:1119) ... 107 more {code} we have re-created the user in jira directly to re-assign the affected issues. but the user cannot be deleted anymore as there are still issues assigned to that account (old stuf we dont want to move). jira should handle crowd accounts properly. it is important that issues with deleted users can still be edited or found (search with deleted users consequently does not work either)

    Atlassian JIRA | 6 years ago | werner mueller
    com.atlassian.jira.exception.DataAccessException: Error occurred while retrieving user with username 'mabr'.
  5. 0

    we use JIRA to authenticate users via CROWD. crowd retrieves the users from an ActiveDirectory. when the users is deleted in the active directory it sooner or later 'disappears' from crowd (or the administrator deletes the user in the crowd directory). then the user is no longer availble in jira. so issues assigned to that user cannot be re-assigned or edited. there is a stacktrace screen in the browser. the logs show an entity not found exception: {code} 2011-01-11 10:36:05,371 TP-Processor19 ERROR [500ErrorPage.jsp] Exception caught in 500 page Error occurred while retrieving user with username 'mabr'. com.atlassian.jira.exception.DataAccessException: Error occurred while retrieving user with username 'mabr'. at com.atlassian.jira.issue.IssueImpl.getUser(IssueImpl.java:1124) at com.atlassian.jira.issue.IssueImpl.getAssignee(IssueImpl.java:403) at com.atlassian.jira.issue.IssueImpl.setAssignee(IssueImpl.java:416) at com.atlassian.jira.issue.fields.AssigneeSystemField.updateIssue(AssigneeSystemField.java:231) at com.atlassian.jira.web.action.issue.AssignIssue.doExecute(AssignIssue.java:132) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:171) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.accesslog.AccessLogFilter.executeRequest(AccessLogFilter.java:99) at com.atlassian.jira.web.filters.accesslog.AccessLogFilter.doFilter(AccessLogFilter.java:83) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.security.xsrf.XsrfTokenAdditionRequestFilter.doFilter(XsrfTokenAdditionRequestFilter.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:40) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:219) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:140) at com.atlassian.jira.web.filters.JiraLoginFilter.doFilter(JiraLoginFilter.java:70) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:69) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:99) at com.atlassian.jira.web.filters.JIRAProfilingFilter.doFilter(JIRAProfilingFilter.java:16) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:59) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:53) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:350) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.gzipfilter.GzipFilter.doFilterInternal(GzipFilter.java:75) at com.atlassian.gzipfilter.GzipFilter.doFilter(GzipFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.cache.AbstractCachingFilter.doFilter(AbstractCachingFilter.java:33) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:41) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.startup.JiraStartupChecklistFilter.doFilter(JiraStartupChecklistFilter.java:86) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) Caused by: com.opensymphony.user.EntityNotFoundException: No user mabr found at com.opensymphony.user.UserManager.getEntity(UserManager.java:259) at com.opensymphony.user.UserManager.getUser(UserManager.java:181) at com.atlassian.core.user.UserUtils.getUser(UserUtils.java:37) at com.atlassian.jira.issue.IssueImpl.getUser(IssueImpl.java:1119) ... 107 more {code} we have re-created the user in jira directly to re-assign the affected issues. but the user cannot be deleted anymore as there are still issues assigned to that account (old stuf we dont want to move). jira should handle crowd accounts properly. it is important that issues with deleted users can still be edited or found (search with deleted users consequently does not work either)

    Atlassian JIRA | 6 years ago | werner mueller
    com.atlassian.jira.exception.DataAccessException: Error occurred while retrieving user with username 'mabr'.

    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. com.opensymphony.user.EntityNotFoundException

      No user USER found

      at com.opensymphony.user.UserManager.getEntity()
    2. com.opensymphony.user
      UserManager.getUser
      1. com.opensymphony.user.UserManager.getEntity(UserManager.java:259)
      2. com.opensymphony.user.UserManager.getUser(UserManager.java:181)
      2 frames
    3. com.atlassian.core
      UserUtils.getUser
      1. com.atlassian.core.user.UserUtils.getUser(UserUtils.java:37)
      1 frame
    4. com.javahollic.jira
      CreateOrCommentHandler.handleMessage
      1. com.javahollic.jira.emh.engine.EMHIssueUtils.getApplicableReporter(EMHIssueUtils.java:1264)
      2. com.javahollic.jira.emh.engine.EMHIssueUtils.<init>(EMHIssueUtils.java:169)
      3. com.javahollic.jira.emh.engine.IssueCreationHelper.<init>(IssueCreationHelper.java:58)
      4. com.javahollic.jira.emh.engine.AbstractFieldProcessor.getIssueObjectViaCreation(AbstractFieldProcessor.java:104)
      5. com.javahollic.jira.emh.engine.AbstractFieldProcessor.getIssueObject(AbstractFieldProcessor.java:89)
      6. com.javahollic.jira.emh.service.EMHIssueHandler.runProcessor(EMHIssueHandler.java:293)
      7. com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:125)
      8. com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:67)
      8 frames
    5. com.atlassian.jira
      ServiceRunner.execute
      1. com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:189)
      2. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67)
      3. com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
      3 frames
    6. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:191)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      2 frames