java.lang.IllegalStateException: XSRF: Cannot delete caches

Atlassian JIRA | Rian Josua Masikome [Atlassian] | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Warning - "You are probably missing the ObjectifyFilter" - in deployed application only

    Google Groups | 2 years ago | Arpit
    java.lang.IllegalStateException: You have not started an Objectify context. You are probably missing the ObjectifyFilter. If you are not running in the context of an http request, see the ObjectifyService.run() method. at com.googlecode.objectify.ObjectifyService.ofy(ObjectifyService.java:44) at com.googlecode.objectify.impl.ref.LiveRef.ofy(LiveRef.java:64) at com.googlecode.objectify.impl.ref.LiveRef.isLoaded(LiveRef.java:55) at com.googlecode.objectify.Ref.getValue(Ref.java:83) at com.googlecode.objectify.impl.ref.LiveRef.writeReplace(LiveRef.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    h3. Summary Creating a JIRA Software Project (Scrum, Kanban or Basic), if the Issue Types "Epic" or "Story" exist but are not of type "Standard" the project creation fails. h3. Environment * JIRA Software h3. Steps to Reproduce # Remove Issue Types "Story" or "Epic" if they exist. # Create an Issue Type called "Story" or "Epic" of type" "Sub-Task" # Create a Scrum, Kanban or Basic Software project h3. Expected Results The project is created with either the same Issue Type that exists or a new one that meets the requirements. Else, a message on screens specifies the problem so it can be corrected. h3. Actual Results On the last step of the project creation, the following message is shown: {quote} Hmm... we couldn't create your project due to an unknown error. Try refreshing the page to start again. {quote} JIRA logs the error: {noformat} 2016-04-01 16:20:25.128269500 2016-04-01 05:20:25,123 http-nio-2990-exec-4 ERROR username 980x1976x1 fwe3kl 59.167.133.100 /rest/project-templates/1.0/templates [c.a.jira.project.ProjectCreateRegistrarImpl] The handler with id com.atlassian.jira.project-templates-plugin:apply-project-template-handler threw an exception while handling a notification about a project being created 2016-04-01 16:20:25.128272500 java.lang.IllegalStateException: An issue type with the name 'Story' exists already. 2016-04-01 16:20:25.128272500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueTypeAndAddToDefaultScheme(DefaultIssueTypeManager.java:141) 2016-04-01 16:20:25.128304500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueTypeAndAddToDefaultScheme(DefaultIssueTypeManager.java:171) 2016-04-01 16:20:25.128305500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueType(DefaultIssueTypeManager.java:98) 2016-04-01 16:20:25.128305500 at sun.reflect.GeneratedMethodAccessor1103.invoke(Unknown Source) 2016-04-01 16:20:25.128310500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2016-04-01 16:20:25.128310500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.128310500 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) 2016-04-01 16:20:25.128317500 at com.sun.proxy.$Proxy17.createIssueType(Unknown Source) 2016-04-01 16:20:25.128317500 ... 2 filtered 2016-04-01 16:20:25.128317500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.128317500 at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) 2016-04-01 16:20:25.128321500 at com.sun.proxy.$Proxy17.createIssueType(Unknown Source) 2016-04-01 16:20:25.128322500 at com.atlassian.greenhopper.manager.issue.issuetypes.AbstractIssueTypeProvider.produceIssueType(AbstractIssueTypeProvider.java:148) 2016-04-01 16:20:25.128322500 at com.atlassian.greenhopper.manager.issue.issuetypes.AbstractIssueTypeProvider.ensureIssueTypeIsAvailable(AbstractIssueTypeProvider.java:114) 2016-04-01 16:20:25.128326500 at com.atlassian.greenhopper.manager.issue.issuetypes.AbstractIssueTypeProvider.getOrCreateIssueType(AbstractIssueTypeProvider.java:48) 2016-04-01 16:20:25.128327500 at com.atlassian.greenhopper.service.issue.IssueTypeServiceImpl.getOrCreateStoryIssueType(IssueTypeServiceImpl.java:28) 2016-04-01 16:20:25.128328500 at com.atlassian.greenhopper.service.issue.IssueTypeSchemeServiceImpl.addAllAgileIssueTypesToScheme(IssueTypeSchemeServiceImpl.java:33) 2016-04-01 16:20:25.128332500 at com.atlassian.greenhopper.web.rapid.project.AgileProjectConfiguratorImpl.extendConfiguration(AgileProjectConfiguratorImpl.java:81) 2016-04-01 16:20:25.128333500 at com.atlassian.greenhopper.web.rapid.project.AgileProjectConfiguratorImpl.configure(AgileProjectConfiguratorImpl.java:42) 2016-04-01 16:20:25.128334500 at com.atlassian.greenhopper.web.rapid.project.ProjectCreateHookHelperImpl.configureProject(ProjectCreateHookHelperImpl.java:77) 2016-04-01 16:20:25.128338500 at com.atlassian.greenhopper.web.rapid.project.GreenHopperProjectCreateHook.configure(GreenHopperProjectCreateHook.java:45) 2016-04-01 16:20:25.128338500 at com.atlassian.jira.projecttemplates.service.ApplyProjectTemplateHandler.applyProjectTemplate(ApplyProjectTemplateHandler.java:65) 2016-04-01 16:20:25.128339500 at com.atlassian.jira.projecttemplates.service.ApplyProjectTemplateHandler.onProjectCreated(ApplyProjectTemplateHandler.java:53) 2016-04-01 16:20:25.128343500 at com.atlassian.jira.project.ProjectCreateRegistrarImpl.notifyAllHandlers(ProjectCreateRegistrarImpl.java:36) 2016-04-01 16:20:25.128343500 at com.atlassian.jira.bc.project.DefaultProjectService.notifyHandlersOfProjectCreated(DefaultProjectService.java:394) 2016-04-01 16:20:25.128358500 at com.atlassian.jira.bc.project.DefaultProjectService.createProjectInternal(DefaultProjectService.java:379) 2016-04-01 16:20:25.128358500 at com.atlassian.jira.bc.project.DefaultProjectService.createProject(DefaultProjectService.java:349) 2016-04-01 16:20:25.128359500 ... 2 filtered 2016-04-01 16:20:25.128359500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.128363500 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) 2016-04-01 16:20:25.128363500 at com.sun.proxy.$Proxy236.createProject(Unknown Source) 2016-04-01 16:20:25.128364500 ... 2 filtered 2016-04-01 16:20:25.128364500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.128364500 at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) 2016-04-01 16:20:25.128368500 at com.sun.proxy.$Proxy236.createProject(Unknown Source) 2016-04-01 16:20:25.128369500 at com.atlassian.jira.projecttemplates.service.ProjectTemplateServiceImpl.applyProjectTemplate(ProjectTemplateServiceImpl.java:173) 2016-04-01 16:20:25.128369500 at com.atlassian.jira.projecttemplates.rest.ProjectTemplatesResource.createProjectFromFormRequest(ProjectTemplatesResource.java:170) 2016-04-01 16:20:25.128377500 ... 2 filtered 2016-04-01 16:20:25.128377500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.128378500 at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) 2016-04-01 16:20:25.128379500 ... 12 filtered 2016-04-01 16:20:25.128379500 at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154) 2016-04-01 16:20:25.128388500 ... 1 filtered 2016-04-01 16:20:25.128388500 at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68) 2016-04-01 16:20:25.128389500 ... 50 filtered 2016-04-01 16:20:25.128389500 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) 2016-04-01 16:20:25.128397500 ... 42 filtered 2016-04-01 16:20:25.128397500 at com.atlassian.plugin.connect.plugin.auth.scope.ApiScopingFilter.doFilter(ApiScopingFilter.java:81) 2016-04-01 16:20:25.128398500 ... 14 filtered 2016-04-01 16:20:25.128398500 at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:76) 2016-04-01 16:20:25.128399500 at com.atlassian.jira.security.JiraSecurityFilter$$Lambda$428/30580541.doFilter(Unknown Source) 2016-04-01 16:20:25.128406500 ... 1 filtered 2016-04-01 16:20:25.128406500 at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:74) 2016-04-01 16:20:25.128412500 ... 16 filtered 2016-04-01 16:20:25.128412500 at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) 2016-04-01 16:20:25.128413500 ... 16 filtered 2016-04-01 16:20:25.128413500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action.lambda$nextInFilterChain$1(CloudHomepageFilter.java:110) 2016-04-01 16:20:25.128414500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action$$Lambda$425/6405433.execute(Unknown Source) 2016-04-01 16:20:25.128421500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter.doFilter(CloudHomepageFilter.java:68) 2016-04-01 16:20:25.128421500 ... 17 filtered 2016-04-01 16:20:25.128421500 at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) 2016-04-01 16:20:25.128422500 ... 5 filtered 2016-04-01 16:20:25.128422500 at com.atlassian.plugin.connect.plugin.auth.user.ThreeLeggedAuthFilter.doFilter(ThreeLeggedAuthFilter.java:110) 2016-04-01 16:20:25.128427500 ... 3 filtered 2016-04-01 16:20:25.128428500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:174) 2016-04-01 16:20:25.128428500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter$$Lambda$781/21320988.call(Unknown Source) 2016-04-01 16:20:25.128438500 at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:142) 2016-04-01 16:20:25.128439500 at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:94) 2016-04-01 16:20:25.128440500 at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext(CustomerContextServiceImpl.java:44) 2016-04-01 16:20:25.128445500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:169) 2016-04-01 16:20:25.128446500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:125) 2016-04-01 16:20:25.128447500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:116) 2016-04-01 16:20:25.128452500 ... 3 filtered 2016-04-01 16:20:25.128453500 at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32) 2016-04-01 16:20:25.128453500 ... 8 filtered 2016-04-01 16:20:25.128453500 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) 2016-04-01 16:20:25.128464500 ... 4 filtered 2016-04-01 16:20:25.128465500 at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36) 2016-04-01 16:20:25.128465500 ... 29 filtered 2016-04-01 16:20:25.128466500 at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) 2016-04-01 16:20:25.128466500 ... 28 filtered 2016-04-01 16:20:25.128472500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2016-04-01 16:20:25.128472500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2016-04-01 16:20:25.128473500 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 2016-04-01 16:20:25.128473500 at java.lang.Thread.run(Thread.java:745) 2016-04-01 16:20:25.198996500 2016-04-01 05:20:25,194 http-nio-2990-exec-4 ERROR username 980x1976x1 fwe3kl 59.167.133.100 /rest/project-templates/1.0/templates [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: An error occurred while notifying that a project was created 2016-04-01 16:20:25.198998500 java.lang.RuntimeException: An error occurred while notifying that a project was created 2016-04-01 16:20:25.198999500 at com.atlassian.jira.bc.project.DefaultProjectService.notifyHandlersOfProjectCreated(DefaultProjectService.java:397) 2016-04-01 16:20:25.199034500 at com.atlassian.jira.bc.project.DefaultProjectService.createProjectInternal(DefaultProjectService.java:379) 2016-04-01 16:20:25.199035500 at com.atlassian.jira.bc.project.DefaultProjectService.createProject(DefaultProjectService.java:349) 2016-04-01 16:20:25.199035500 at sun.reflect.GeneratedMethodAccessor965.invoke(Unknown Source) 2016-04-01 16:20:25.199036500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2016-04-01 16:20:25.199040500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.199041500 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) 2016-04-01 16:20:25.199047500 at com.sun.proxy.$Proxy236.createProject(Unknown Source) 2016-04-01 16:20:25.199047500 ... 2 filtered 2016-04-01 16:20:25.199047500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.199048500 at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) 2016-04-01 16:20:25.199052500 at com.sun.proxy.$Proxy236.createProject(Unknown Source) 2016-04-01 16:20:25.199052500 at com.atlassian.jira.projecttemplates.service.ProjectTemplateServiceImpl.applyProjectTemplate(ProjectTemplateServiceImpl.java:173) 2016-04-01 16:20:25.199053500 at com.atlassian.jira.projecttemplates.rest.ProjectTemplatesResource.createProjectFromFormRequest(ProjectTemplatesResource.java:170) 2016-04-01 16:20:25.199062500 ... 2 filtered 2016-04-01 16:20:25.199062500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.199062500 at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) 2016-04-01 16:20:25.199063500 ... 12 filtered 2016-04-01 16:20:25.199063500 at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154) 2016-04-01 16:20:25.199067500 ... 1 filtered 2016-04-01 16:20:25.199067500 at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68) 2016-04-01 16:20:25.199072500 ... 50 filtered 2016-04-01 16:20:25.199073500 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) 2016-04-01 16:20:25.199073500 ... 42 filtered 2016-04-01 16:20:25.199073500 at com.atlassian.plugin.connect.plugin.auth.scope.ApiScopingFilter.doFilter(ApiScopingFilter.java:81) 2016-04-01 16:20:25.199074500 ... 14 filtered 2016-04-01 16:20:25.199078500 at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:76) 2016-04-01 16:20:25.199078500 at com.atlassian.jira.security.JiraSecurityFilter$$Lambda$428/30580541.doFilter(Unknown Source) 2016-04-01 16:20:25.199079500 ... 1 filtered 2016-04-01 16:20:25.199079500 at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:74) 2016-04-01 16:20:25.199079500 ... 16 filtered 2016-04-01 16:20:25.199079500 at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) 2016-04-01 16:20:25.199083500 ... 16 filtered 2016-04-01 16:20:25.199084500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action.lambda$nextInFilterChain$1(CloudHomepageFilter.java:110) 2016-04-01 16:20:25.199084500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action$$Lambda$425/6405433.execute(Unknown Source) 2016-04-01 16:20:25.199085500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter.doFilter(CloudHomepageFilter.java:68) 2016-04-01 16:20:25.199090500 ... 17 filtered 2016-04-01 16:20:25.199090500 at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) 2016-04-01 16:20:25.199091500 ... 5 filtered 2016-04-01 16:20:25.199091500 at com.atlassian.plugin.connect.plugin.auth.user.ThreeLeggedAuthFilter.doFilter(ThreeLeggedAuthFilter.java:110) 2016-04-01 16:20:25.199091500 ... 3 filtered 2016-04-01 16:20:25.199095500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:174) 2016-04-01 16:20:25.199095500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter$$Lambda$781/21320988.call(Unknown Source) 2016-04-01 16:20:25.199096500 at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:142) 2016-04-01 16:20:25.199100500 at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:94) 2016-04-01 16:20:25.199101500 at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext(CustomerContextServiceImpl.java:44) 2016-04-01 16:20:25.199106500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:169) 2016-04-01 16:20:25.199106500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:125) 2016-04-01 16:20:25.199107500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:116) 2016-04-01 16:20:25.199111500 ... 3 filtered 2016-04-01 16:20:25.199111500 at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32) 2016-04-01 16:20:25.199111500 ... 8 filtered 2016-04-01 16:20:25.199111500 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) 2016-04-01 16:20:25.199112500 ... 4 filtered 2016-04-01 16:20:25.199118500 at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36) 2016-04-01 16:20:25.199119500 ... 29 filtered 2016-04-01 16:20:25.199119500 at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) 2016-04-01 16:20:25.199119500 ... 28 filtered 2016-04-01 16:20:25.199119500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2016-04-01 16:20:25.199120500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2016-04-01 16:20:25.199126500 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 2016-04-01 16:20:25.199126500 at java.lang.Thread.run(Thread.java:745) {noformat} h3. Notes Basic Software fails with Story issue type although it is not on the scheme. h3.Workaround Remove (or rename if in use by other custom project) issue types "Story" and "Epic" and create a new project. The issue types will be recreated automatically.

    Atlassian JIRA | 1 year ago | Mauro Fernandez Badii [Atlassian]
    java.lang.IllegalStateException: An issue type with the name 'Story' exists already. 2016-04-01 16:20:25.128272500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueTypeAndAddToDefaultScheme(DefaultIssueTypeManager.java:141) 2016-04-01 16:20:25.128304500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueTypeAndAddToDefaultScheme(DefaultIssueTypeManager.java:171) 2016-04-01 16:20:25.128305500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueType(DefaultIssueTypeManager.java:98) 2016-04-01 16:20:25.128305500 at sun.reflect.GeneratedMethodAccessor1103.invoke(Unknown Source)
  4. 0

    h3. Summary Creating a JIRA Software Project (Scrum, Kanban or Basic), if the Issue Types "Epic" or "Story" exist but are not of type "Standard" the project creation fails. h3. Environment * JIRA Software h3. Steps to Reproduce # Remove Issue Types "Story" or "Epic" if they exist. # Create an Issue Type called "Story" or "Epic" of type" "Sub-Task" # Create a Scrum, Kanban or Basic Software project h3. Expected Results The project is created with either the same Issue Type that exists or a new one that meets the requirements. Else, a message on screens specifies the problem so it can be corrected. h3. Actual Results On the last step of the project creation, the following message is shown: {quote} Hmm... we couldn't create your project due to an unknown error. Try refreshing the page to start again. {quote} JIRA logs the error: {noformat} 2016-04-01 16:20:25.128269500 2016-04-01 05:20:25,123 http-nio-2990-exec-4 ERROR username 980x1976x1 fwe3kl 59.167.133.100 /rest/project-templates/1.0/templates [c.a.jira.project.ProjectCreateRegistrarImpl] The handler with id com.atlassian.jira.project-templates-plugin:apply-project-template-handler threw an exception while handling a notification about a project being created 2016-04-01 16:20:25.128272500 java.lang.IllegalStateException: An issue type with the name 'Story' exists already. 2016-04-01 16:20:25.128272500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueTypeAndAddToDefaultScheme(DefaultIssueTypeManager.java:141) 2016-04-01 16:20:25.128304500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueTypeAndAddToDefaultScheme(DefaultIssueTypeManager.java:171) 2016-04-01 16:20:25.128305500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueType(DefaultIssueTypeManager.java:98) 2016-04-01 16:20:25.128305500 at sun.reflect.GeneratedMethodAccessor1103.invoke(Unknown Source) 2016-04-01 16:20:25.128310500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2016-04-01 16:20:25.128310500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.128310500 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) 2016-04-01 16:20:25.128317500 at com.sun.proxy.$Proxy17.createIssueType(Unknown Source) 2016-04-01 16:20:25.128317500 ... 2 filtered 2016-04-01 16:20:25.128317500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.128317500 at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) 2016-04-01 16:20:25.128321500 at com.sun.proxy.$Proxy17.createIssueType(Unknown Source) 2016-04-01 16:20:25.128322500 at com.atlassian.greenhopper.manager.issue.issuetypes.AbstractIssueTypeProvider.produceIssueType(AbstractIssueTypeProvider.java:148) 2016-04-01 16:20:25.128322500 at com.atlassian.greenhopper.manager.issue.issuetypes.AbstractIssueTypeProvider.ensureIssueTypeIsAvailable(AbstractIssueTypeProvider.java:114) 2016-04-01 16:20:25.128326500 at com.atlassian.greenhopper.manager.issue.issuetypes.AbstractIssueTypeProvider.getOrCreateIssueType(AbstractIssueTypeProvider.java:48) 2016-04-01 16:20:25.128327500 at com.atlassian.greenhopper.service.issue.IssueTypeServiceImpl.getOrCreateStoryIssueType(IssueTypeServiceImpl.java:28) 2016-04-01 16:20:25.128328500 at com.atlassian.greenhopper.service.issue.IssueTypeSchemeServiceImpl.addAllAgileIssueTypesToScheme(IssueTypeSchemeServiceImpl.java:33) 2016-04-01 16:20:25.128332500 at com.atlassian.greenhopper.web.rapid.project.AgileProjectConfiguratorImpl.extendConfiguration(AgileProjectConfiguratorImpl.java:81) 2016-04-01 16:20:25.128333500 at com.atlassian.greenhopper.web.rapid.project.AgileProjectConfiguratorImpl.configure(AgileProjectConfiguratorImpl.java:42) 2016-04-01 16:20:25.128334500 at com.atlassian.greenhopper.web.rapid.project.ProjectCreateHookHelperImpl.configureProject(ProjectCreateHookHelperImpl.java:77) 2016-04-01 16:20:25.128338500 at com.atlassian.greenhopper.web.rapid.project.GreenHopperProjectCreateHook.configure(GreenHopperProjectCreateHook.java:45) 2016-04-01 16:20:25.128338500 at com.atlassian.jira.projecttemplates.service.ApplyProjectTemplateHandler.applyProjectTemplate(ApplyProjectTemplateHandler.java:65) 2016-04-01 16:20:25.128339500 at com.atlassian.jira.projecttemplates.service.ApplyProjectTemplateHandler.onProjectCreated(ApplyProjectTemplateHandler.java:53) 2016-04-01 16:20:25.128343500 at com.atlassian.jira.project.ProjectCreateRegistrarImpl.notifyAllHandlers(ProjectCreateRegistrarImpl.java:36) 2016-04-01 16:20:25.128343500 at com.atlassian.jira.bc.project.DefaultProjectService.notifyHandlersOfProjectCreated(DefaultProjectService.java:394) 2016-04-01 16:20:25.128358500 at com.atlassian.jira.bc.project.DefaultProjectService.createProjectInternal(DefaultProjectService.java:379) 2016-04-01 16:20:25.128358500 at com.atlassian.jira.bc.project.DefaultProjectService.createProject(DefaultProjectService.java:349) 2016-04-01 16:20:25.128359500 ... 2 filtered 2016-04-01 16:20:25.128359500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.128363500 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) 2016-04-01 16:20:25.128363500 at com.sun.proxy.$Proxy236.createProject(Unknown Source) 2016-04-01 16:20:25.128364500 ... 2 filtered 2016-04-01 16:20:25.128364500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.128364500 at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) 2016-04-01 16:20:25.128368500 at com.sun.proxy.$Proxy236.createProject(Unknown Source) 2016-04-01 16:20:25.128369500 at com.atlassian.jira.projecttemplates.service.ProjectTemplateServiceImpl.applyProjectTemplate(ProjectTemplateServiceImpl.java:173) 2016-04-01 16:20:25.128369500 at com.atlassian.jira.projecttemplates.rest.ProjectTemplatesResource.createProjectFromFormRequest(ProjectTemplatesResource.java:170) 2016-04-01 16:20:25.128377500 ... 2 filtered 2016-04-01 16:20:25.128377500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.128378500 at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) 2016-04-01 16:20:25.128379500 ... 12 filtered 2016-04-01 16:20:25.128379500 at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154) 2016-04-01 16:20:25.128388500 ... 1 filtered 2016-04-01 16:20:25.128388500 at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68) 2016-04-01 16:20:25.128389500 ... 50 filtered 2016-04-01 16:20:25.128389500 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) 2016-04-01 16:20:25.128397500 ... 42 filtered 2016-04-01 16:20:25.128397500 at com.atlassian.plugin.connect.plugin.auth.scope.ApiScopingFilter.doFilter(ApiScopingFilter.java:81) 2016-04-01 16:20:25.128398500 ... 14 filtered 2016-04-01 16:20:25.128398500 at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:76) 2016-04-01 16:20:25.128399500 at com.atlassian.jira.security.JiraSecurityFilter$$Lambda$428/30580541.doFilter(Unknown Source) 2016-04-01 16:20:25.128406500 ... 1 filtered 2016-04-01 16:20:25.128406500 at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:74) 2016-04-01 16:20:25.128412500 ... 16 filtered 2016-04-01 16:20:25.128412500 at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) 2016-04-01 16:20:25.128413500 ... 16 filtered 2016-04-01 16:20:25.128413500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action.lambda$nextInFilterChain$1(CloudHomepageFilter.java:110) 2016-04-01 16:20:25.128414500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action$$Lambda$425/6405433.execute(Unknown Source) 2016-04-01 16:20:25.128421500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter.doFilter(CloudHomepageFilter.java:68) 2016-04-01 16:20:25.128421500 ... 17 filtered 2016-04-01 16:20:25.128421500 at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) 2016-04-01 16:20:25.128422500 ... 5 filtered 2016-04-01 16:20:25.128422500 at com.atlassian.plugin.connect.plugin.auth.user.ThreeLeggedAuthFilter.doFilter(ThreeLeggedAuthFilter.java:110) 2016-04-01 16:20:25.128427500 ... 3 filtered 2016-04-01 16:20:25.128428500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:174) 2016-04-01 16:20:25.128428500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter$$Lambda$781/21320988.call(Unknown Source) 2016-04-01 16:20:25.128438500 at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:142) 2016-04-01 16:20:25.128439500 at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:94) 2016-04-01 16:20:25.128440500 at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext(CustomerContextServiceImpl.java:44) 2016-04-01 16:20:25.128445500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:169) 2016-04-01 16:20:25.128446500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:125) 2016-04-01 16:20:25.128447500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:116) 2016-04-01 16:20:25.128452500 ... 3 filtered 2016-04-01 16:20:25.128453500 at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32) 2016-04-01 16:20:25.128453500 ... 8 filtered 2016-04-01 16:20:25.128453500 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) 2016-04-01 16:20:25.128464500 ... 4 filtered 2016-04-01 16:20:25.128465500 at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36) 2016-04-01 16:20:25.128465500 ... 29 filtered 2016-04-01 16:20:25.128466500 at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) 2016-04-01 16:20:25.128466500 ... 28 filtered 2016-04-01 16:20:25.128472500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2016-04-01 16:20:25.128472500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2016-04-01 16:20:25.128473500 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 2016-04-01 16:20:25.128473500 at java.lang.Thread.run(Thread.java:745) 2016-04-01 16:20:25.198996500 2016-04-01 05:20:25,194 http-nio-2990-exec-4 ERROR username 980x1976x1 fwe3kl 59.167.133.100 /rest/project-templates/1.0/templates [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: An error occurred while notifying that a project was created 2016-04-01 16:20:25.198998500 java.lang.RuntimeException: An error occurred while notifying that a project was created 2016-04-01 16:20:25.198999500 at com.atlassian.jira.bc.project.DefaultProjectService.notifyHandlersOfProjectCreated(DefaultProjectService.java:397) 2016-04-01 16:20:25.199034500 at com.atlassian.jira.bc.project.DefaultProjectService.createProjectInternal(DefaultProjectService.java:379) 2016-04-01 16:20:25.199035500 at com.atlassian.jira.bc.project.DefaultProjectService.createProject(DefaultProjectService.java:349) 2016-04-01 16:20:25.199035500 at sun.reflect.GeneratedMethodAccessor965.invoke(Unknown Source) 2016-04-01 16:20:25.199036500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2016-04-01 16:20:25.199040500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.199041500 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) 2016-04-01 16:20:25.199047500 at com.sun.proxy.$Proxy236.createProject(Unknown Source) 2016-04-01 16:20:25.199047500 ... 2 filtered 2016-04-01 16:20:25.199047500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.199048500 at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) 2016-04-01 16:20:25.199052500 at com.sun.proxy.$Proxy236.createProject(Unknown Source) 2016-04-01 16:20:25.199052500 at com.atlassian.jira.projecttemplates.service.ProjectTemplateServiceImpl.applyProjectTemplate(ProjectTemplateServiceImpl.java:173) 2016-04-01 16:20:25.199053500 at com.atlassian.jira.projecttemplates.rest.ProjectTemplatesResource.createProjectFromFormRequest(ProjectTemplatesResource.java:170) 2016-04-01 16:20:25.199062500 ... 2 filtered 2016-04-01 16:20:25.199062500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-04-01 16:20:25.199062500 at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) 2016-04-01 16:20:25.199063500 ... 12 filtered 2016-04-01 16:20:25.199063500 at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154) 2016-04-01 16:20:25.199067500 ... 1 filtered 2016-04-01 16:20:25.199067500 at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68) 2016-04-01 16:20:25.199072500 ... 50 filtered 2016-04-01 16:20:25.199073500 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) 2016-04-01 16:20:25.199073500 ... 42 filtered 2016-04-01 16:20:25.199073500 at com.atlassian.plugin.connect.plugin.auth.scope.ApiScopingFilter.doFilter(ApiScopingFilter.java:81) 2016-04-01 16:20:25.199074500 ... 14 filtered 2016-04-01 16:20:25.199078500 at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:76) 2016-04-01 16:20:25.199078500 at com.atlassian.jira.security.JiraSecurityFilter$$Lambda$428/30580541.doFilter(Unknown Source) 2016-04-01 16:20:25.199079500 ... 1 filtered 2016-04-01 16:20:25.199079500 at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:74) 2016-04-01 16:20:25.199079500 ... 16 filtered 2016-04-01 16:20:25.199079500 at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) 2016-04-01 16:20:25.199083500 ... 16 filtered 2016-04-01 16:20:25.199084500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action.lambda$nextInFilterChain$1(CloudHomepageFilter.java:110) 2016-04-01 16:20:25.199084500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action$$Lambda$425/6405433.execute(Unknown Source) 2016-04-01 16:20:25.199085500 at com.atlassian.studio.jira.homepage.CloudHomepageFilter.doFilter(CloudHomepageFilter.java:68) 2016-04-01 16:20:25.199090500 ... 17 filtered 2016-04-01 16:20:25.199090500 at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) 2016-04-01 16:20:25.199091500 ... 5 filtered 2016-04-01 16:20:25.199091500 at com.atlassian.plugin.connect.plugin.auth.user.ThreeLeggedAuthFilter.doFilter(ThreeLeggedAuthFilter.java:110) 2016-04-01 16:20:25.199091500 ... 3 filtered 2016-04-01 16:20:25.199095500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:174) 2016-04-01 16:20:25.199095500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter$$Lambda$781/21320988.call(Unknown Source) 2016-04-01 16:20:25.199096500 at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:142) 2016-04-01 16:20:25.199100500 at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:94) 2016-04-01 16:20:25.199101500 at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext(CustomerContextServiceImpl.java:44) 2016-04-01 16:20:25.199106500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:169) 2016-04-01 16:20:25.199106500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:125) 2016-04-01 16:20:25.199107500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:116) 2016-04-01 16:20:25.199111500 ... 3 filtered 2016-04-01 16:20:25.199111500 at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32) 2016-04-01 16:20:25.199111500 ... 8 filtered 2016-04-01 16:20:25.199111500 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) 2016-04-01 16:20:25.199112500 ... 4 filtered 2016-04-01 16:20:25.199118500 at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36) 2016-04-01 16:20:25.199119500 ... 29 filtered 2016-04-01 16:20:25.199119500 at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) 2016-04-01 16:20:25.199119500 ... 28 filtered 2016-04-01 16:20:25.199119500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2016-04-01 16:20:25.199120500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2016-04-01 16:20:25.199126500 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 2016-04-01 16:20:25.199126500 at java.lang.Thread.run(Thread.java:745) {noformat} h3. Notes Basic Software fails with Story issue type although it is not on the scheme. h3.Workaround Remove (or rename if in use by other custom project) issue types "Story" and "Epic" and create a new project. The issue types will be recreated automatically.

    Atlassian JIRA | 1 year ago | Mauro Fernandez Badii [Atlassian]
    java.lang.IllegalStateException: An issue type with the name 'Story' exists already. 2016-04-01 16:20:25.128272500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueTypeAndAddToDefaultScheme(DefaultIssueTypeManager.java:141) 2016-04-01 16:20:25.128304500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueTypeAndAddToDefaultScheme(DefaultIssueTypeManager.java:171) 2016-04-01 16:20:25.128305500 at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueType(DefaultIssueTypeManager.java:98) 2016-04-01 16:20:25.128305500 at sun.reflect.GeneratedMethodAccessor1103.invoke(Unknown Source)

    Root Cause Analysis

    1. java.lang.IllegalStateException

      XSRF: Cannot delete caches

      at com.atlassian.bamboo.utils.XsrfUtils.fail()
    2. com.atlassian.bamboo
      RepositorySettingsAction.doDelete
      1. com.atlassian.bamboo.utils.XsrfUtils.fail(XsrfUtils.java:20)
      2. com.atlassian.bamboo.utils.XsrfUtils.assertCanPerformMutativeAction(XsrfUtils.java:40)
      3. com.atlassian.bamboo.ww2.actions.admin.RepositorySettingsAction.doDelete(RepositorySettingsAction.java:78)
      3 frames
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3 frames