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

Atlassian JIRA | Jeff Turner | 1 decade ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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. 0

    As in all companies people come and go, but Jira can not handle this correctly. With leaving the company the peoples are deleted from our Windows-ActiveDirectory. When doing so and the person has created tickets or is current assignee the tickets can be opened but you can not change the owner or assigne or close the issues. At present we do recreate a "dummy-account" with the former username of the deleted account in crowd to be able to shift the tickets to an other person. Further more: - you can not search for "deleted" accounts - deleted accounts can not be deleted from the projekt roles as they are not listed in the edit view A well working solution is very much appreciated. Best Andreas See the error message below while trying to close or editing a ticket from a deleted person. Snip>--------------------------------------------------------------------- Ursache: com.atlassian.jira.exception.DataAccessException: Error occurred while retrieving user with username 'ssalles'. Stapel├╝berwachung: [hide] com.atlassian.jira.exception.DataAccessException: Error occurred while retrieving user with username 'ssalles'. at com.atlassian.jira.issue.IssueImpl.getUser(IssueImpl.java:1099) at com.atlassian.jira.issue.IssueImpl.getAssignee(IssueImpl.java:394) at com.atlassian.jira.issue.fields.AssigneeSystemField.populateFromIssue(AssigneeSystemField.java:507) at com.atlassian.jira.issue.fields.screen.FieldScreenRenderLayoutItemImpl.populateFromIssue(FieldScreenRenderLayoutItemImpl.java:85) at com.atlassian.jira.web.action.issue.CommentAssignIssue.doDefault(CommentAssignIssue.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:417) at webwork.action.ActionSupport.execute(ActionSupport.java:146) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 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:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:204) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.seraph.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:120) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.jira.web.filters.JIRAProfilingFilter.doFilter(JIRAProfilingFilter.java:16) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:43) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.jira.web.filters.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:350) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 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:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:33) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619) Caused by: com.opensymphony.user.EntityNotFoundException: No user ssalles found at com.opensymphony.user.UserManager.getEntity(UserManager.java:302) at com.opensymphony.user.UserManager.getUser(UserManager.java:193) at com.atlassian.core.user.UserUtils.getUser(UserUtils.java:37) at com.atlassian.jira.issue.IssueImpl.getUser(IssueImpl.java:1094) ... 76 more Verweiser-URL: deleted by reporter Build-Information: Betriebsdauer : N/A Edition : Enterprise Version : 3.13.4 Build-Nummer : 354 Atlassian-Partner : null Installationstyp : EAR/WAR ---------------------------------------------------------------------<Snap

    Atlassian JIRA | 7 years ago | Andreas Ketelhut
    com.atlassian.jira.exception.DataAccessException: Error occurred while retrieving user with username 'ssalles'.

    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 joe found

      at com.opensymphony.user.UserManager.getEntity()
    2. com.opensymphony.user
      UserManager.getUser
      1. com.opensymphony.user.UserManager.getEntity(UserManager.java:302)
      2. com.opensymphony.user.UserManager.getUser(UserManager.java:193)
      2 frames
    3. com.atlassian.core
      UserUtils.getUser
      1. com.atlassian.core.user.UserUtils.getUser(UserUtils.java:31)
      1 frame
    4. com.atlassian.jira
      ParameterStore.<init>
      1. com.atlassian.jira.util.ParameterStore.<init>(ParameterStore.java:35)
      1 frame