java.lang.NullPointerException

Atlassian JIRA | Jordan Robison [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

    The configuration pages can't be accessed. The big error modal window pops up and you get an "Internal Server Error" Here is what I see when I use firebug: {code} Got an error response with text that we don't know how to parse: {"status-code":500,"stack-trace":"java.lang.NullPointerException\n\tat com.atlassian.greenhopper.web.rapid.view.ColumnEditRequest$StatusDetails.from(ColumnEditRequest.java:145)\n\tat com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.asStatusEntry(ColumnEditHelper.java:330)\n\tat com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnStatusesModel(ColumnEditHelper.java:313)\n\tat com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnEditModel(ColumnEditHelper.java:185)\n\tat com.atlassian.greenhopper.web.rapid.view.RapidViewEditHelper.getEditModel(RapidViewEditHelper.java:139)\n\tat com.atlassian.greenhopper.web.rapid.view.RapidViewEditResource$7.call(RapidViewEditResource.java:191)\n\tat {code} h4. Cause: A status label was renamed. In my example, from *To Do* to *TO DO*. When you try to access the board, it sees that *To Do* does not exist, so it attempts to create it again, since it requires it. But unfortunately, since *TO DO* is essentially the same, it fails. This is a problem with case sensitivity. *Note:* I think this only happens if you edit a status that is already there by default to use a different case. h4. To Replicate # Go to {{secure/admin/ViewStatuses.jspa}} View Statuses, edit a default status to be in all caps for the name (e.g. To Do > TO DO) # *Create Project > Agile Software Development - Scrum*. Proceed through steps to create. # Attempt to create an issue in new project, *Error: Could not find workflow status for issue [ ]* # View *Issues Panel* in Overview: {noformat}An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUrl' in class com.atlassian.jira.projects.legacy.projectpanel.fragment.impl.StatusSummaryFragment$StatusUrlUtil threw exception java.lang.NullPointerException at legacy/templates/projectpanels/fragments/issues/statussummary.vm[line 18, column 50] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at ...{noformat} # Go to *Agile Simplified Workflow Scheme for Project* and try to click *View as text* next to *Agile Simplified Workflow for Project*, and you will get another error, *The JIRA server was contacted but has returned an error response. We are unsure of the result of this operation.* You will still be able to go directly to the workflow from the main Administration screen and view as text. h4. The Workaround This issue can be fixed with a manual database change. If you're running into it in a Cloud instance, please contact [Atlassian Support|https://support.atlassian.com/]. Alternatively for server please refer to our [Internal Server Error when accessing Rapid board|https://confluence.atlassian.com/display/AGILEKB/Internal+Server+Error+when+accessing+Rapid+board] KB article.

    Atlassian JIRA | 3 years ago | Jordan Robison [Atlassian]
    java.lang.NullPointerException
  2. 0

    The configuration pages can't be accessed. The big error modal window pops up and you get an "Internal Server Error" Here is what I see when I use firebug: {code} Got an error response with text that we don't know how to parse: {"status-code":500,"stack-trace":"java.lang.NullPointerException\n\tat com.atlassian.greenhopper.web.rapid.view.ColumnEditRequest$StatusDetails.from(ColumnEditRequest.java:145)\n\tat com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.asStatusEntry(ColumnEditHelper.java:330)\n\tat com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnStatusesModel(ColumnEditHelper.java:313)\n\tat com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnEditModel(ColumnEditHelper.java:185)\n\tat com.atlassian.greenhopper.web.rapid.view.RapidViewEditHelper.getEditModel(RapidViewEditHelper.java:139)\n\tat com.atlassian.greenhopper.web.rapid.view.RapidViewEditResource$7.call(RapidViewEditResource.java:191)\n\tat {code} h4. Cause: A status label was renamed. In my example, from *To Do* to *TO DO*. When you try to access the board, it sees that *To Do* does not exist, so it attempts to create it again, since it requires it. But unfortunately, since *TO DO* is essentially the same, it fails. This is a problem with case sensitivity. *Note:* I think this only happens if you edit a status that is already there by default to use a different case. h4. To Replicate # Go to {{secure/admin/ViewStatuses.jspa}} View Statuses, edit a default status to be in all caps for the name (e.g. To Do > TO DO) # *Create Project > Agile Software Development - Scrum*. Proceed through steps to create. # Attempt to create an issue in new project, *Error: Could not find workflow status for issue [ ]* # View *Issues Panel* in Overview: {noformat}An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUrl' in class com.atlassian.jira.projects.legacy.projectpanel.fragment.impl.StatusSummaryFragment$StatusUrlUtil threw exception java.lang.NullPointerException at legacy/templates/projectpanels/fragments/issues/statussummary.vm[line 18, column 50] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at ...{noformat} # Go to *Agile Simplified Workflow Scheme for Project* and try to click *View as text* next to *Agile Simplified Workflow for Project*, and you will get another error, *The JIRA server was contacted but has returned an error response. We are unsure of the result of this operation.* You will still be able to go directly to the workflow from the main Administration screen and view as text. h4. The Workaround This issue can be fixed with a manual database change. If you're running into it in a Cloud instance, please contact [Atlassian Support|https://support.atlassian.com/]. Alternatively for server please refer to our [Internal Server Error when accessing Rapid board|https://confluence.atlassian.com/display/AGILEKB/Internal+Server+Error+when+accessing+Rapid+board] KB article.

    Atlassian JIRA | 3 years ago | Jordan Robison [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.greenhopper.web.rapid.view.ColumnEditRequest$StatusDetails.from()
    2. com.atlassian.greenhopper
      RapidViewEditResource$7.call
      1. com.atlassian.greenhopper.web.rapid.view.ColumnEditRequest$StatusDetails.from(ColumnEditRequest.java:145)
      2. com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.asStatusEntry(ColumnEditHelper.java:330)
      3. com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnStatusesModel(ColumnEditHelper.java:313)
      4. com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnEditModel(ColumnEditHelper.java:185)
      5. com.atlassian.greenhopper.web.rapid.view.RapidViewEditHelper.getEditModel(RapidViewEditHelper.java:139)
      6. com.atlassian.greenhopper.web.rapid.view.RapidViewEditResource$7.call(RapidViewEditResource.java:191)
      6 frames