Profiling upon JIRA startup is not allowing user creation
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
When we attempt to create an user through the UI, the following error appears:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
System Error
A system error has occurred.
Please try submitting this problem via the Support Request Page
Otherwise, please create a support issue on our support system at http://support.atlassian.com with the following information:
a description of your problem
cut & paste the error and system information found below
attach the application server log file ( /opt/Atlassian/atlassian-jira-5.2.8-standalone/home/log/atlassian-jira.log )
Cause:
java.lang.reflect.UndeclaredThrowableException
Stack Trace: [hide]
java.lang.reflect.UndeclaredThrowableException
at $Proxy349.validateCreateUserForAdmin(Unknown Source)
at com.atlassian.jira.web.action.admin.user.AddUser.doValidation(AddUser.java:68)
at webwork.action.ActionSupport.validate(ActionSupport.java:391)
at webwork.action.ActionSupport.execute(ActionSupport.java:162)
at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82)
at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)
at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)
at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)
at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)
at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:221)
at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:150)
at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
...
Caused by: java.lang.reflect.UndeclaredThrowableException
at $Proxy1605.findByName(Unknown Source)
at com.atlassian.crowd.directory.AbstractInternalDirectory.findUserByName(AbstractInternalDirectory.java:117)
at com.atlassian.crowd.directory.AbstractInternalDirectory.findUserByName(AbstractInternalDirectory.java:32)
at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.findUserByName(DirectoryManagerGeneric.java:283)
at com.atlassian.crowd.manager.application.ApplicationServiceGeneric.findUserByName(ApplicationServiceGeneric.java:265)
at com.atlassian.crowd.embedded.core.CrowdServiceImpl.getUser(CrowdServiceImpl.java:92)
at com.atlassian.crowd.embedded.core.DelegatingCrowdService.getUser(DelegatingCrowdService.java:40)
at com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl.getUser(FilteredCrowdServiceImpl.java:51)
at com.atlassian.jira.user.util.UserUtilImpl.getUserCwd(UserUtilImpl.java:843)
at com.atlassian.jira.user.util.UserUtilImpl.userExists(UserUtilImpl.java:871)
at com.atlassian.jira.bc.user.DefaultUserService.validateCreateUsername(DefaultUserService.java:293)
at com.atlassian.jira.bc.user.DefaultUserService.validateCreateUser(DefaultUserService.java:248)
at com.atlassian.jira.bc.user.DefaultUserService.validateCreateUserForAdmin(DefaultUserService.java:169)
...
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.atlassian.jira.config.component.GroupedMethodProfiler.profiledInvoke(GroupedMethodProfiler.java:65)
at com.atlassian.jira.config.component.TimerInvocationHandler.invoke(GroupedMethodProfiler.java:99)
...
Caused by: com.atlassian.crowd.exception.UserNotFoundException: User <test> does not exist
at com.atlassian.jira.crowd.embedded.ofbiz.OfBizUserDao.findByName(OfBizUserDao.java:82)
at com.atlassian.jira.crowd.embedded.ofbiz.OfBizUserDao.findByName(OfBizUserDao.java:51)
...
Cause
This error occurs If we turn on profiling upon JIRA startup and this bug is being tracked here: JRASERVER-24889 - UserNotFoundException: User does not exist
Workaround
Set param-value to false into the $JIRA_install/atlassian-jira/WEB-INF/web.xml file.
Was this helpful?