java.lang.RuntimeException

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.

  • *Symptom*: * error thrown in the JIRA UI indicating "'<user>' does not exist" * repeating the same step will throws random username does not exist *Step to reproduce*: # install JIRA with internal directory # create a new Internal with Delegated Authentication directory # migrate the users directory from internal to delegated authentication directory # (bug) error thrown in the JIRA UI indicating "'<user>' does not exist" # (bug) in the JIRA logs: {code} /plugins/servlet/embedded-crowd/directories/migrate/ [embedded.admin.directory.MigrateDirectoryUsersController] User migration failed java.lang.RuntimeException: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist at com.atlassian.crowd.embedded.admin.directory.MigrateDirectoryUsersController$1.doInTransaction(MigrateDirectoryUsersController.java:146) ... Caused by: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist at com.atlassian.jira.crowd.embedded.ofbiz.OfBizUserDao.findByName(OfBizUserDao.java:85) at com.atlassian.jira.crowd.embedded.ofbiz.OfBizDelegatingMembershipDao.addUserToGroup(OfBizDelegatingMembershipDao.java:81) at com.atlassian.crowd.directory.AbstractInternalDirectory.addUserToGroup(AbstractInternalDirectory.java:821) at com.atlassian.crowd.directory.DelegatedAuthenticationDirectory.addUserToGroup(DelegatedAuthenticationDirectory.java:805) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addUserToGroup(DirectoryManagerGeneric.java:757) {code} # (bug) username thrown in the error cannot login into JIRA using the password stored in LDAP *To verify*: # make sure the error is not caused by bug [JRA-24889|https://jira.atlassian.com/browse/JRA-24889] # in the JIRA database check if the user does exist correctly in the {{app_user}}, {{cwd_user}}, {{cwd_membership}}. The SQL queries below can be use: {code:sql} select * from app_user where lower_user_name='<sample_username>'; select * from cwd_user where user_name ='<sample_username>'; select * from cwd_membership where child_name ='<sample_username>'; select * from cwd_directory; {code} # Important note: restoring the JIRA's data into a test instance and the problem is not reproducible in the test instance. *Root Cause*: Broken Cache when creating the user in the new directory.
    via by Janet Albion [Atlassian],
  • *Symptom*: * error thrown in the JIRA UI indicating "'<user>' does not exist" * repeating the same step will throws random username does not exist *Step to reproduce*: # install JIRA with internal directory # create a new Internal with Delegated Authentication directory # migrate the users directory from internal to delegated authentication directory # (bug) error thrown in the JIRA UI indicating "'<user>' does not exist" # (bug) in the JIRA logs: {code} /plugins/servlet/embedded-crowd/directories/migrate/ [embedded.admin.directory.MigrateDirectoryUsersController] User migration failed java.lang.RuntimeException: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist at com.atlassian.crowd.embedded.admin.directory.MigrateDirectoryUsersController$1.doInTransaction(MigrateDirectoryUsersController.java:146) ... Caused by: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist at com.atlassian.jira.crowd.embedded.ofbiz.OfBizUserDao.findByName(OfBizUserDao.java:85) at com.atlassian.jira.crowd.embedded.ofbiz.OfBizDelegatingMembershipDao.addUserToGroup(OfBizDelegatingMembershipDao.java:81) at com.atlassian.crowd.directory.AbstractInternalDirectory.addUserToGroup(AbstractInternalDirectory.java:821) at com.atlassian.crowd.directory.DelegatedAuthenticationDirectory.addUserToGroup(DelegatedAuthenticationDirectory.java:805) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addUserToGroup(DirectoryManagerGeneric.java:757) {code} # (bug) username thrown in the error cannot login into JIRA using the password stored in LDAP *To verify*: # make sure the error is not caused by bug [JRA-24889|https://jira.atlassian.com/browse/JRA-24889] # in the JIRA database check if the user does exist correctly in the {{app_user}}, {{cwd_user}}, {{cwd_membership}}. The SQL queries below can be use: {code:sql} select * from app_user where lower_user_name='<sample_username>'; select * from cwd_user where user_name ='<sample_username>'; select * from cwd_membership where child_name ='<sample_username>'; select * from cwd_directory; {code} # Important note: restoring the JIRA's data into a test instance and the problem is not reproducible in the test instance. *Root Cause*: Broken Cache when creating the user in the new directory.
    via by Janet Albion [Atlassian],
    • java.lang.RuntimeException: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist at com.atlassian.crowd.embedded.admin.directory.MigrateDirectoryUsersController$1.doInTransaction(MigrateDirectoryUsersController.java:146)
    No Bugmate found.