java.util.NoSuchElementException

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.

  • h3. Summary When creating a Service Desk project using a shared configuration, the creation dialogue will display as error as shown in the attached screenshot. This issue does not appear to surface in a newly setup environment. It has so far only surfaced in existing environments h3. Steps to Reproduce # Create a new Service Desk "Service Desk A" # Create another Service Desk using the "Create with shared configuration" option in the bottom of the dialogue # Name the Service Desk "Service Desk B" h3. Expected Results The Service Desk B gets created with the shared configuration h3. Actual Results The error in the attached screenshot will get displayed. The Service Desk B will not get created. The below exception is thrown in the atlassian-jira.log file: {noformat} 2016-07-05 08:10:16,843 http-nio-8080-exec-3 ERROR <user> 490x247x1 1vd928d 0:0:0:0:0:0:0:1 /rest/project-templates/1.0/createshared/11102 [c.a.jira.project.ProjectCreateRegistrarImpl] The handler with id servicedesk-project-create-handler threw an exception while handling a notification about a project being created java.util.NoSuchElementException: None.get at scala.None$.get(Option.scala:347) at scala.None$.get(Option.scala:345) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedReportCreationService.createDefaultReports(GettingStartedReportCreationService.scala:43) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createOrReEnableServiceDeskForExistingProject$2.apply(GettingStartedService.scala:316) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createOrReEnableServiceDeskForExistingProject$2.apply(GettingStartedService.scala:275) at scalaz.$bslash$div.map(Either.scala:111) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.createOrReEnableServiceDeskForExistingProject(GettingStartedService.scala:275) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.createServiceDeskWithSharedConfig(GettingStartedService.scala:327) at com.atlassian.servicedesk.internal.project.type.ServiceDeskProjectHelper.createServiceDeskForSharedConfigProject(ServiceDeskProjectHelper.java:49) at com.atlassian.servicedesk.internal.project.type.ServiceDeskProjectCreateHandler.onProjectCreated(ServiceDeskProjectCreateHandler.java:33) at com.atlassian.jira.project.ProjectCreateRegistrarImpl.notifyAllHandlers(ProjectCreateRegistrarImpl.java:36) at com.atlassian.jira.bc.project.DefaultProjectService.notifyHandlersOfProjectCreated(DefaultProjectService.java:393) at com.atlassian.jira.bc.project.DefaultProjectService.createProjectInternal(DefaultProjectService.java:378) at com.atlassian.jira.bc.project.DefaultProjectService.createProject(DefaultProjectService.java:348) ... 3 filtered at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy183.createProject(Unknown Source) ... 3 filtered at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) at com.sun.proxy.$Proxy183.createProject(Unknown Source) at com.atlassian.jira.projecttemplates.rest.CreateSharedProjectResource.createSharedProject(CreateSharedProjectResource.java:76) ... 3 filtered at java.lang.reflect.Method.invoke(Method.java:498) ... 19 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68) ... 91 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 16 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 22 filtered at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:169) at com.atlassian.servicedesk.internal.util.scala.ScalaJavaInterOp$1.apply(ScalaJavaInterOp.java:25) at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil$.outOfCustomerContext(CustomerContextUtil.scala:48) at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil.outOfCustomerContext(CustomerContextUtil.scala) at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext(CustomerContextServiceImpl.java:24) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:164) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:120) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:112) ... 54 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2016-07-05 08:10:17,143 http-nio-8080-exec-3 ERROR <user> 490x247x1 1vd928d 0:0:0:0:0:0:0:1 /rest/project-templates/1.0/createshared/11102 [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: An error occurred while notifying that a project was created java.lang.RuntimeException: An error occurred while notifying that a project was created at com.atlassian.jira.bc.project.DefaultProjectService.notifyHandlersOfProjectCreated(DefaultProjectService.java:396) at com.atlassian.jira.bc.project.DefaultProjectService.createProjectInternal(DefaultProjectService.java:378) at com.atlassian.jira.bc.project.DefaultProjectService.createProject(DefaultProjectService.java:348) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ... 1 filtered at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy183.createProject(Unknown Source) ... 3 filtered at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) at com.sun.proxy.$Proxy183.createProject(Unknown Source) at com.atlassian.jira.projecttemplates.rest.CreateSharedProjectResource.createSharedProject(CreateSharedProjectResource.java:76) ... 3 filtered at java.lang.reflect.Method.invoke(Method.java:498) ... 19 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68) ... 91 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 16 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 22 filtered at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:169) at com.atlassian.servicedesk.internal.util.scala.ScalaJavaInterOp$1.apply(ScalaJavaInterOp.java:25) at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil$.outOfCustomerContext(CustomerContextUtil.scala:48) at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil.outOfCustomerContext(CustomerContextUtil.scala) at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext(CustomerContextServiceImpl.java:24) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:164) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:120) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:112) ... 54 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) {noformat} h3.Workaround There currently is no workaround to create a Service Desk project with a shared configuration if your environment is impacted by this error. The only option is to create a clean Service Desk and manually add the configurations to match
    via by Mick Nassette [Atlassian],
  • FAILED: RemoteNodeRestartGate
    via GitHub by drewhk
    ,
  • PL parser doesn't work
    via GitHub by woj-i
    ,
  • GitHub comment 1201#124311390
    via GitHub by kkasravi
    ,
    • java.util.NoSuchElementException: None.get at scala.None$.get(Option.scala:347) at scala.None$.get(Option.scala:345) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedReportCreationService.createDefaultReports(GettingStartedReportCreationService.scala:43) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createOrReEnableServiceDeskForExistingProject$2.apply(GettingStartedService.scala:316) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createOrReEnableServiceDeskForExistingProject$2.apply(GettingStartedService.scala:275) at scalaz.$bslash$div.map(Either.scala:111) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.createOrReEnableServiceDeskForExistingProject(GettingStartedService.scala:275) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.createServiceDeskWithSharedConfig(GettingStartedService.scala:327) at com.atlassian.servicedesk.internal.project.type.ServiceDeskProjectHelper.createServiceDeskForSharedConfigProject(ServiceDeskProjectHelper.java:49) at com.atlassian.servicedesk.internal.project.type.ServiceDeskProjectCreateHandler.onProjectCreated(ServiceDeskProjectCreateHandler.java:33) at com.atlassian.jira.project.ProjectCreateRegistrarImpl.notifyAllHandlers(ProjectCreateRegistrarImpl.java:36) at com.atlassian.jira.bc.project.DefaultProjectService.notifyHandlersOfProjectCreated(DefaultProjectService.java:393) at com.atlassian.jira.bc.project.DefaultProjectService.createProjectInternal(DefaultProjectService.java:378) at com.atlassian.jira.bc.project.DefaultProjectService.createProject(DefaultProjectService.java:348)

    Users with the same issue

    zsamboki
    4 times, last one,
    nasimk
    20 times, last one,
    poroszd
    1 times, last one,
    Adarro
    1 times, last one,
    bandoca
    2 times, last one,
    24 more bugmates