java.util.NoSuchElementException: None.get

Atlassian JIRA | Mick Nassette [Atlassian] | 5 months ago
  1. 0

    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

    Atlassian JIRA | 5 months ago | Mick Nassette [Atlassian]
    java.util.NoSuchElementException: None.get
  2. 0

    FAILED: RemoteNodeRestartGate

    GitHub | 2 years ago | drewhk
    java.util.NoSuchElementException: None.get
  3. 0

    failed: RemoteRestartedQuarantinedSpec

    GitHub | 2 years ago | patriknw
    java.util.NoSuchElementException: None.get
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NoSuchElementException in LiftSession:1012

    Google Groups | 2 years ago | andreak
    java.util.NoSuchElementException: None.get
  6. 0

    PL parser doesn't work

    GitHub | 1 year ago | woj-i
    java.util.NoSuchElementException: None.get
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.NoSuchElementException

    None.get

    at scala.None$.get()
  2. Scala
    None$.get
    1. scala.None$.get(Option.scala:347)
    2. scala.None$.get(Option.scala:345)
    2 frames
  3. com.atlassian.servicedesk
    GettingStartedService$$anonfun$createOrReEnableServiceDeskForExistingProject$2.apply
    1. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedReportCreationService.createDefaultReports(GettingStartedReportCreationService.scala:43)
    2. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createOrReEnableServiceDeskForExistingProject$2.apply(GettingStartedService.scala:316)
    3. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createOrReEnableServiceDeskForExistingProject$2.apply(GettingStartedService.scala:275)
    3 frames
  4. Scalaz
    $bslash$div.map
    1. scalaz.$bslash$div.map(Either.scala:111)
    1 frame
  5. com.atlassian.servicedesk
    ServiceDeskProjectCreateHandler.onProjectCreated
    1. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.createOrReEnableServiceDeskForExistingProject(GettingStartedService.scala:275)
    2. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.createServiceDeskWithSharedConfig(GettingStartedService.scala:327)
    3. com.atlassian.servicedesk.internal.project.type.ServiceDeskProjectHelper.createServiceDeskForSharedConfigProject(ServiceDeskProjectHelper.java:49)
    4. com.atlassian.servicedesk.internal.project.type.ServiceDeskProjectCreateHandler.onProjectCreated(ServiceDeskProjectCreateHandler.java:33)
    4 frames
  6. com.atlassian.jira
    DefaultProjectService.createProject
    1. com.atlassian.jira.project.ProjectCreateRegistrarImpl.notifyAllHandlers(ProjectCreateRegistrarImpl.java:36)
    2. com.atlassian.jira.bc.project.DefaultProjectService.notifyHandlersOfProjectCreated(DefaultProjectService.java:393)
    3. com.atlassian.jira.bc.project.DefaultProjectService.createProjectInternal(DefaultProjectService.java:378)
    4. com.atlassian.jira.bc.project.DefaultProjectService.createProject(DefaultProjectService.java:348)
    4 frames