java.lang.NullPointerException

Atlassian JIRA | Partha Kamal [Atlassian] | 7 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

    When trying to rename a project key, get the following: {noformat} 2009-09-15 10:04:08,890 ERROR [btpool0-283] org.mortbay.log org.mortbay.log.Slf4jLog-warn - /fisheye/admin/updateProject.do java.lang.NullPointerException at com.atlassian.fisheye.jira.DefaultJiraServerManager.updateCrucibleProjectKey(DefaultJiraServerManager.java:394) at com.cenqua.crucible.model.managers.impl.DefaultProjectManager.changeProjectKey(DefaultProjectManager.java:100) at com.cenqua.crucible.actions.admin.project.ProjectDataFactory.updateProject(ProjectDataFactory.java:40) at com.cenqua.crucible.actions.admin.project.UpdateProjectAction$1.doInTransaction(UpdateProjectAction.java:55) at com.cenqua.crucible.actions.admin.project.UpdateProjectAction$1.doInTransaction(UpdateProjectAction.java:31) at com.atlassian.fisheye.spi.TxTemplate.execute(TxTemplate.java:137) at com.cenqua.crucible.actions.admin.project.UpdateProjectAction.execute(UpdateProjectAction.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) {noformat} The offending line: {noformat} JiraProjectMappingType mappings = jiraServerType.getJiraMappings(); for (JiraCrucibleMappingType cruMapping : mappings.getCrucibleProjectArray()) { {noformat} however {{jiraServerType.getJiraMappings()}} can return null.

    Atlassian JIRA | 7 years ago | Partha Kamal [Atlassian]
    java.lang.NullPointerException
  2. 0

    When trying to rename a project key, get the following: {noformat} 2009-09-15 10:04:08,890 ERROR [btpool0-283] org.mortbay.log org.mortbay.log.Slf4jLog-warn - /fisheye/admin/updateProject.do java.lang.NullPointerException at com.atlassian.fisheye.jira.DefaultJiraServerManager.updateCrucibleProjectKey(DefaultJiraServerManager.java:394) at com.cenqua.crucible.model.managers.impl.DefaultProjectManager.changeProjectKey(DefaultProjectManager.java:100) at com.cenqua.crucible.actions.admin.project.ProjectDataFactory.updateProject(ProjectDataFactory.java:40) at com.cenqua.crucible.actions.admin.project.UpdateProjectAction$1.doInTransaction(UpdateProjectAction.java:55) at com.cenqua.crucible.actions.admin.project.UpdateProjectAction$1.doInTransaction(UpdateProjectAction.java:31) at com.atlassian.fisheye.spi.TxTemplate.execute(TxTemplate.java:137) at com.cenqua.crucible.actions.admin.project.UpdateProjectAction.execute(UpdateProjectAction.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) {noformat} The offending line: {noformat} JiraProjectMappingType mappings = jiraServerType.getJiraMappings(); for (JiraCrucibleMappingType cruMapping : mappings.getCrucibleProjectArray()) { {noformat} however {{jiraServerType.getJiraMappings()}} can return null.

    Atlassian JIRA | 7 years ago | Partha Kamal [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.fisheye.jira.DefaultJiraServerManager.updateCrucibleProjectKey()
    2. com.atlassian.fisheye
      DefaultJiraServerManager.updateCrucibleProjectKey
      1. com.atlassian.fisheye.jira.DefaultJiraServerManager.updateCrucibleProjectKey(DefaultJiraServerManager.java:394)
      1 frame
    3. com.cenqua.crucible
      UpdateProjectAction$1.doInTransaction
      1. com.cenqua.crucible.model.managers.impl.DefaultProjectManager.changeProjectKey(DefaultProjectManager.java:100)
      2. com.cenqua.crucible.actions.admin.project.ProjectDataFactory.updateProject(ProjectDataFactory.java:40)
      3. com.cenqua.crucible.actions.admin.project.UpdateProjectAction$1.doInTransaction(UpdateProjectAction.java:55)
      4. com.cenqua.crucible.actions.admin.project.UpdateProjectAction$1.doInTransaction(UpdateProjectAction.java:31)
      4 frames
    4. com.atlassian.fisheye
      TxTemplate.execute
      1. com.atlassian.fisheye.spi.TxTemplate.execute(TxTemplate.java:137)
      1 frame
    5. com.cenqua.crucible
      UpdateProjectAction.execute
      1. com.cenqua.crucible.actions.admin.project.UpdateProjectAction.execute(UpdateProjectAction.java:31)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames