-
Bug
-
Resolution: Timed out
-
Medium
-
11
-
Minor
-
2
-
Issue Summary
JSW project fails to create if the default issue type is not a standard issue type
Steps to Reproduce
- Rename Epic issue type (if existing)
- Create a new JSW project.
Expected Results
Jira should handle the creation of new projects better if it notices the issue type category has changed.
Actual Results
Error is thrown and project creation is not possible
The below exception is thrown in the log file:
stack: cloud.atlassian.logmon.laas.api.PrivacySafeException: Privacy-safe boxing of a java.lang.RuntimeException at com.atlassian.jira.bc.project.DefaultProjectService.notifyHandlersOfProjectCreated(DefaultProjectService.java:744) at com.atlassian.jira.bc.project.DefaultProjectService.createProjectInternal(DefaultProjectService.java:700) at com.atlassian.jira.bc.project.DefaultProjectService.createProject(DefaultProjectService.java:630) at com.atlassian.jira.projecttemplates.service.ProjectTemplateServiceImpl.applyProjectTemplate(ProjectTemplateServiceImpl.java:216) at com.atlassian.jira.projecttemplates.rest.simplified.SimplifiedProjectResource.create(SimplifiedProjectResource.java:121) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker.lambda$null$1(DispatchProviderHelper.java:309) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.lambda$invokeMethodWithInterceptors$0(DispatchProviderHelper.java:98) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.servicedesk.internal.api.customer.context.CustomerContextAuditingInterceptor.intercept(CustomerContextAuditingInterceptor.java:42) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.greenhopper.api.rest.util.AgileRestApiExceptionInterceptor.intercept(AgileRestApiExceptionInterceptor.java:27) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.jira.rest.api.analytics.AnalyticsInterceptor.invokeInterceptor(AnalyticsInterceptor.java:73) at com.atlassian.jira.rest.api.analytics.AnalyticsInterceptor.intercept(AnalyticsInterceptor.java:61) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.jira.rest.exception.ExceptionInterceptor.intercept(ExceptionInterceptor.java:66) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java:41) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.workcontext.metrics.Profile.timeWithException(Profile.java:76) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.invokeMethodWithInterceptors(DispatchProviderHelper.java:125) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker.lambda$_dispatch$2(DispatchProviderHelper.java:308) at com.atlassian.workcontext.metrics.Profile.timeWithException(Profile.java:76) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:305) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:286) at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:276) at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:181) at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.atlassian.jira.web.filters.XContentTypeOptionsNoSniffFilter.doFilter(XContentTypeOptionsNoSniffFilter.java:21) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:37)
More errors
java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker.lambda$null$1(DispatchProviderHelper.java:330) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.lambda$invokeMethodWithInterceptors$0(DispatchProviderHelper.java:98) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.jira.rest.interceptors.jsd.LanguageOverrideInterceptor.intercept(LanguageOverrideInterceptor.java:42) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.jira.rest.interceptors.jsd.RequestScopeInterceptor.enterRequestScope(RequestScopeInterceptor.java:39) at com.atlassian.jira.rest.interceptors.jsd.RequestScopeInterceptor.intercept(RequestScopeInterceptor.java:32) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.plugins.rest.common.security.jersey.CustomerContextInterceptor.invokeCatchingException(CustomerContextInterceptor.java:65) at com.atlassian.plugins.rest.common.security.jersey.CustomerContextInterceptor.lambda$invokeOutOfCustomerContext$1(CustomerContextInterceptor.java:57) at com.atlassian.jira.security.helpseeker.context.ReentrantThreadLocalBasedCodeContext.lambda$runnableToNoExceptionsCallable$1(ReentrantThreadLocalBasedCodeContext.java:149) at com.atlassian.jira.security.helpseeker.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:135) at com.atlassian.jira.security.helpseeker.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:89) at com.atlassian.jira.security.helpseeker.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:99) at com.atlassian.jira.security.helpseeker.context.CustomerContextServiceImpl.lambda$runOutOfCustomerContext$3(CustomerContextServiceImpl.java:64) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:48) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:25) at com.atlassian.jira.security.helpseeker.context.CustomerContextServiceImpl.runOutOfCustomerContext(CustomerContextServiceImpl.java:64) at com.atlassian.plugins.rest.common.security.jersey.CustomerContextInterceptor.invokeOutOfCustomerContext(CustomerContextInterceptor.java:57) at com.atlassian.plugins.rest.common.security.jersey.CustomerContextInterceptor.intercept(CustomerContextInterceptor.java:35) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.jira.rest.interceptors.jsd.ServicedeskExperimentalOptInInterceptor.intercept(ServicedeskExperimentalOptInInterceptor.java:42) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.greenhopper.api.rest.util.AgileRestApiExceptionInterceptor.intercept(AgileRestApiExceptionInterceptor.java:42) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) at com.atlassian.jira.rest.v2.analytics.jsd.JsdApiAnalyticsInterceptor.intercept(JsdApiAnalyticsInterceptor.java:46) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:55) Caused by: java.lang.RuntimeException: An error occurred while notifying that a project was created at com.atlassian.jira.bc.project.DefaultProjectService.notifyHandlersOfProjectCreated(DefaultProjectService.java:935) at com.atlassian.jira.bc.project.DefaultProjectService.createProjectInternal(DefaultProjectService.java:890) at com.atlassian.jira.bc.project.DefaultProjectService.lambda$null$21(DefaultProjectService.java:724) at com.atlassian.jira.project.DefaultProjectOperationContextService.runInProjectCreateContext(DefaultProjectOperationContextService.java:22) at com.atlassian.jira.bc.project.DefaultProjectService.lambda$null$22(DefaultProjectService.java:724) at com.atlassian.jira.event.context.EntityUpdateStreamJournalContext.runInContext(EntityUpdateStreamJournalContext.java:51) at com.atlassian.jira.event.context.EntityUpdateStreamJournalContext.runInContext(EntityUpdateStreamJournalContext.java:44) at com.atlassian.jira.bc.project.DefaultProjectService.lambda$createProject$23(DefaultProjectService.java:722) at com.atlassian.workcontext.metrics.Timer.timeWithException(Timer.java:277) at com.atlassian.jira.consistency.ConsistencyCheckServiceImpl.lambda$wrapWithTimer$6(ConsistencyCheckServiceImpl.java:268) at com.atlassian.jira.consistency.ConsistencyCheckServiceImpl.wrapWithTimer(ConsistencyCheckServiceImpl.java:275) at com.atlassian.jira.consistency.ConsistencyCheckServiceImpl.runWithException(ConsistencyCheckServiceImpl.java:129) at com.atlassian.jira.consistency.ConsistencyCheckBuilderForRolloutService$TypeAwareRollout.runTheCode(ConsistencyCheckBuilderForRolloutService.java:177) at com.atlassian.jira.consistency.ConsistencyCheckBuilderForRolloutService$TypeAwareRollout.with(ConsistencyCheckBuilderForRolloutService.java:211) at com.atlassian.jira.bc.project.DefaultProjectService.createProject(DefaultProjectService.java:722) at com.atlassian.jira.projecttemplates.service.ProjectTemplateServiceImpl.applyProjectTemplate(ProjectTemplateServiceImpl.java:231) at com.atlassian.jira.projecttemplates.rest.simplified.SimplifiedProjectResource.create(SimplifiedProjectResource.java:122) ... 440 more
Message
Failed to create project. Project type: ProjectTypeKey{key='software'}. Template: com.pyxis.greenhopper.jira:gh-simplified-scrum-classic. UUID: null
Workaround
Ensure that the issue type created is of standard type and not sub-task type or do not rename the Epic issue type.
- is cloned from
-
JSWCLOUD-18811 Unable to create Project due to non-Standard Story IssueType
- Closed