java.lang.NullPointerException

Atlassian JIRA | Stanislav Dvorscak [Atlassian] | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Steps to reproduce: # New Project (Simple Type) # New Issue # Backup # Remove Project # Project Import (and you get) — Status The status 'To Do' is in use by an issue of type 'New Feature' in the backup file. The default workflow 'jira', which is associated with issue type 'New Feature', does not use this status. This workflow is not editable. You must create a project with key 'TST', instead of letting the import create it for you, and associate a workflow with issue type 'New Feature' that uses the status. To do this you will need to use a workflow scheme. — # In separate tab you create project again and # in original tab you click Refresh Validations than you get NPE: java.lang.NullPointerException at com.atlassian.jira.web.action.admin.importer.project.ProjectImportSummary.doReMapAndValidate(ProjectImportSummary.java:139) {code} ... // Clear any mapped values that may have been added to the ProjectImportMapper projectImportData.getProjectImportMapper().clearMappedValues(); … {code} *projectImportData is null* Stack trace: {code} Jun 19, 2014 10:30:19 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [action] in context with path [/jira] threw exception [java.lang.NullPointerException] with root cause java.lang.NullPointerException at com.atlassian.jira.web.action.admin.importer.project.ProjectImportSummary.doReMapAndValidate(ProjectImportSummary.java:139) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:438) at webwork.action.ActionSupport.execute(ActionSupport.java:157) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:87) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:225) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:154) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.atlassian.jira.web.filters.XContentTypeOptionsNoSniffFilter.doFilter(XContentTypeOptionsNoSniffFilter.java:22) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) {code}

    Atlassian JIRA | 3 years ago | Stanislav Dvorscak [Atlassian]
    java.lang.NullPointerException
  2. 0

    Steps to reproduce: # New Project (Simple Type) # New Issue # Backup # Remove Project # Project Import (and you get) — Status The status 'To Do' is in use by an issue of type 'New Feature' in the backup file. The default workflow 'jira', which is associated with issue type 'New Feature', does not use this status. This workflow is not editable. You must create a project with key 'TST', instead of letting the import create it for you, and associate a workflow with issue type 'New Feature' that uses the status. To do this you will need to use a workflow scheme. — # In separate tab you create project again and # in original tab you click Refresh Validations than you get NPE: java.lang.NullPointerException at com.atlassian.jira.web.action.admin.importer.project.ProjectImportSummary.doReMapAndValidate(ProjectImportSummary.java:139) {code} ... // Clear any mapped values that may have been added to the ProjectImportMapper projectImportData.getProjectImportMapper().clearMappedValues(); … {code} *projectImportData is null* Stack trace: {code} Jun 19, 2014 10:30:19 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [action] in context with path [/jira] threw exception [java.lang.NullPointerException] with root cause java.lang.NullPointerException at com.atlassian.jira.web.action.admin.importer.project.ProjectImportSummary.doReMapAndValidate(ProjectImportSummary.java:139) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:438) at webwork.action.ActionSupport.execute(ActionSupport.java:157) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:87) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:225) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:154) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.atlassian.jira.web.filters.XContentTypeOptionsNoSniffFilter.doFilter(XContentTypeOptionsNoSniffFilter.java:22) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) {code}

    Atlassian JIRA | 3 years ago | Stanislav Dvorscak [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.web.action.admin.importer.project.ProjectImportSummary.doReMapAndValidate()
    2. com.atlassian.jira
      ProjectImportSummary.doReMapAndValidate
      1. com.atlassian.jira.web.action.admin.importer.project.ProjectImportSummary.doReMapAndValidate(ProjectImportSummary.java:139)
      1 frame