java.lang.NullPointerException

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.

  • Dear Jira, We encounters some problem while creating Service Desk project (below you can see attached screens – screen1, screen2, screen3). We’ve already checked existing issues (e.g. https://jira.atlassian.com/browse/JSD-3385 ) but as we understand we met new problem regarding this issues. Here is the part of the log file where the project is creating (In addition we’re attaching Jira’s Full log file see “atlassian-jira.rar” in attachments): 2016-06-27 19:11:04,108 http-nio-80-exec-24 WARN Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.p.r.c.security.jersey.XsrfResourceFilter] Use of the 'nocheck' value for X-Atlassian-Token has been deprecated since rest 3.0.0. Please use a value of 'no-check' instead. 2016-06-27 19:11:04,108 http-nio-80-exec-24 WARN Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.p.r.c.security.jersey.XsrfResourceFilter] Use of the 'nocheck' value for X-Atlassian-Token has been deprecated since rest 3.0.0. Please use a value of 'no-check' instead. 2016-06-27 19:11:05,889 http-nio-80-exec-24 INFO Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.j.i.f.config.manager.FieldConfigSchemeManagerImpl] ConfigScheme JIRA Service Desk Issue Type Scheme for Project TEST3 (11404). Created with no associated contexts 2016-06-27 19:11:08,201 http-nio-80-exec-24 INFO Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.jira.workflow.OSWorkflowManager] User 'Spider(spider)' updated workflow 'JIRA Service Desk IT Support Workflow generated for Project TEST3' at 'Mon Jun 27 19:11:08 GET 2016' 2016-06-27 19:11:08,373 http-nio-80-exec-24 INFO Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.jira.workflow.OSWorkflowManager] User 'Spider(spider)' updated workflow 'JIRA Service Desk IT Support Workflow generated for Project TEST3' at 'Mon Jun 27 19:11:08 GET 2016' 2016-06-27 19:11:08,451 http-nio-80-exec-24 INFO Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.jira.workflow.OSWorkflowManager] User 'Spider(spider)' updated workflow 'JIRA Service Desk IT Support Workflow generated for Project TEST3' at 'Mon Jun 27 19:11:08 GET 2016' 2016-06-27 19:11:08,623 http-nio-80-exec-24 INFO Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.jira.workflow.OSWorkflowManager] User 'Spider(spider)' updated workflow 'JIRA Service Desk Problem Management Workflow generated for Project TEST3' at 'Mon Jun 27 19:11:08 GET 2016' 2016-06-27 19:11:08,842 http-nio-80-exec-24 INFO Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.jira.workflow.OSWorkflowManager] User 'Spider(spider)' updated workflow 'JIRA Service Desk Problem Management Workflow generated for Project TEST3' at 'Mon Jun 27 19:11:08 GET 2016' 2016-06-27 19:11:08,920 http-nio-80-exec-24 INFO Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.jira.workflow.OSWorkflowManager] User 'Spider(spider)' updated workflow 'JIRA Service Desk Problem Management Workflow generated for Project TEST3' at 'Mon Jun 27 19:11:08 GET 2016' 2016-06-27 19:11:09,108 http-nio-80-exec-24 INFO Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.jira.workflow.OSWorkflowManager] User 'Spider(spider)' updated workflow 'JIRA Service Desk Change Management Workflow generated for Project TEST3' at 'Mon Jun 27 19:11:09 GET 2016' 2016-06-27 19:11:09,295 http-nio-80-exec-24 INFO Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.jira.workflow.OSWorkflowManager] User 'Spider(spider)' updated workflow 'JIRA Service Desk Change Management Workflow generated for Project TEST3' at 'Mon Jun 27 19:11:09 GET 2016' 2016-06-27 19:11:09,451 http-nio-80-exec-24 INFO Spider 1151x20550x1 1fnack7 10.50.10.49 /rest/project-templates/1.0/templates [c.a.jira.workflow.OSWorkflowManager] User 'Spider(spider)' updated workflow 'JIRA Service Desk Change Management Workflow generated for Project TEST3' at 'Mon Jun 27 19:11:09 GET 2016' 2016-06-27 19:11:09,498 http-nio-80-exec-24 ERROR Spider 1151x20550x1 1fnack7 10.50.10.49 /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 java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.putVal(Unknown Source) at java.util.concurrent.ConcurrentHashMap.putIfAbsent(Unknown Source) at com.atlassian.cache.memory.DelegatingCache.acquireLockFor(DelegatingCache.java:444) at com.atlassian.cache.memory.DelegatingCache.remove(DelegatingCache.java:234) at com.atlassian.jira.bc.project.component.CachingProjectComponentStore.insert(CachingProjectComponentStore.java:309) at com.atlassian.jira.bc.project.component.CachingProjectComponentStore.store(CachingProjectComponentStore.java:215) at com.atlassian.jira.bc.project.component.DefaultProjectComponentManager.create(DefaultProjectComponentManager.java:111) at com.atlassian.jira.bc.project.component.DefaultProjectComponentService$2.executeOnSuccess(DefaultProjectComponentService.java:156) at com.atlassian.jira.bc.project.component.DefaultProjectComponentService$Handler.run(DefaultProjectComponentService.java:648) at com.atlassian.jira.bc.project.component.DefaultProjectComponentService.create(DefaultProjectComponentService.java:162) ... 3 filtered at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy513.create(Unknown Source) ... 3 filtered at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy2756.create(Unknown Source) at com.atlassian.servicedesk.internal.feature.jira.project.ProjectComponentCreationService$$anonfun$createComponentsForProject$1.apply(ProjectComponentCreationService.scala:26) at com.atlassian.servicedesk.internal.feature.jira.project.ProjectComponentCreationService$$anonfun$createComponentsForProject$1.apply(ProjectComponentCreationService.scala:24) at scala.collection.immutable.List.map(List.scala:273) at com.atlassian.servicedesk.internal.feature.jira.project.ProjectComponentCreationService.createComponentsForProject(ProjectComponentCreationService.scala:24) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$3$$anonfun$apply$5$$anonfun$apply$6.apply(GettingStartedService.scala:172) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$3$$anonfun$apply$5$$anonfun$apply$6.apply(GettingStartedService.scala:169) at scalaz.$bslash$div.flatMap(Either.scala:134) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$3$$anonfun$apply$5.apply(GettingStartedService.scala:169) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$3$$anonfun$apply$5.apply(GettingStartedService.scala:165) at scalaz.$bslash$div.flatMap(Either.scala:134) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$3.apply(GettingStartedService.scala:165) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$3.apply(GettingStartedService.scala:160) at scalaz.$bslash$div.flatMap(Either.scala:134) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1.apply(GettingStartedService.scala:160) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1.apply(GettingStartedService.scala:157) at scalaz.$bslash$div.flatMap(Either.scala:134) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.createServiceDeskForEmptyProject(GettingStartedService.scala:157) at com.atlassian.servicedesk.internal.project.ServiceDeskProjectConfigurator.callGettingStartedServiceToCreateServiceDesk(ServiceDeskProjectConfigurator.java:98) at com.atlassian.servicedesk.internal.project.ServiceDeskProjectConfigurator.lambda$configure$0(ServiceDeskProjectConfigurator.java:83) at com.atlassian.fugue.Either$RightProjection.flatMap(Either.java:839) at com.atlassian.fugue.Either.flatMap(Either.java:294) at com.atlassian.pocketknife.EitherStep1.then(EitherStep1.java:21) at com.atlassian.servicedesk.internal.project.ServiceDeskProjectConfigurator.configure(ServiceDeskProjectConfigurator.java:82) at com.atlassian.servicedesk.internal.project.template.hook.ItilServiceDeskAddProjectHook.configure(ItilServiceDeskAddProjectHook.java:16) at com.atlassian.jira.projecttemplates.service.ApplyProjectTemplateHandler.applyProjectTemplate(ApplyProjectTemplateHandler.java:65) at com.atlassian.jira.projecttemplates.service.ApplyProjectTemplateHandler.onProjectCreated(ApplyProjectTemplateHandler.java:53) 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(Unknown Source) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy43.createProject(Unknown Source) ... 3 filtered at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) at com.sun.proxy.$Proxy43.createProject(Unknown Source) at com.atlassian.jira.projecttemplates.service.ProjectTemplateServiceImpl.applyProjectTemplate(ProjectTemplateServiceImpl.java:173) at com.atlassian.jira.projecttemplates.rest.ProjectTemplatesResource.createProjectFromFormRequest(ProjectTemplatesResource.java:170) ... 3 filtered at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ... 12 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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) 2016-06-27 19:11:11,827 http-nio-80-exec-24 ERROR Spider 1151x20550x1 1fnack7 10.50.10.49 /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 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(Unknown Source) ... 1 filtered at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy43.createProject(Unknown Source) ... 3 filtered at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) at com.sun.proxy.$Proxy43.createProject(Unknown Source) at com.atlassian.jira.projecttemplates.service.ProjectTemplateServiceImpl.applyProjectTemplate(ProjectTemplateServiceImpl.java:173) at com.atlassian.jira.projecttemplates.rest.ProjectTemplatesResource.createProjectFromFormRequest(ProjectTemplatesResource.java:170) ... 3 filtered at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ... 12 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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) Best Regards, Alex
    via by Aleksandre Kheteshvili,
  • ILock.destroy and ISemaphore.destroy exceptions on 2.5
    via by trey.hu...@gmail.com,
    • java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.putVal(Unknown Source) at java.util.concurrent.ConcurrentHashMap.putIfAbsent(Unknown Source) at com.atlassian.cache.memory.DelegatingCache.acquireLockFor(DelegatingCache.java:444) at com.atlassian.cache.memory.DelegatingCache.remove(DelegatingCache.java:234) at com.atlassian.jira.bc.project.component.CachingProjectComponentStore.insert(CachingProjectComponentStore.java:309) at com.atlassian.jira.bc.project.component.CachingProjectComponentStore.store(CachingProjectComponentStore.java:215) at com.atlassian.jira.bc.project.component.DefaultProjectComponentManager.create(DefaultProjectComponentManager.java:111) at com.atlassian.jira.bc.project.component.DefaultProjectComponentService$2.executeOnSuccess(DefaultProjectComponentService.java:156) at com.atlassian.jira.bc.project.component.DefaultProjectComponentService$Handler.run(DefaultProjectComponentService.java:648) at com.atlassian.jira.bc.project.component.DefaultProjectComponentService.create(DefaultProjectComponentService.java:162)

    Users with the same issue

    osvzs
    3 times, last one,
    Andreas Häber
    5 times, last one,
    Kialandei
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,