java.lang.NullPointerException

Atlassian JIRA | Kah Loun Foong [Atlassian] | 5 years ago
  1. 0

    *Steps to reproduce* # Create a custom field Cascading Select # Add the options into it # Create an issue # Select 'NONE' for the Cascading Select custom field The issue successfully created without exception # Edit the same issue and select 'NONE' for the Cascading Select custom field again The following error appear and the update fail: {noformat} 2012-05-04 18:18:58,904 http-8503-6 ERROR kahloun.foong 1098x176x1 2zrt38 127.0.0.1 /secure/QuickEditIssue.jspa [jira.bc.issue.DefaultIssueService] Exception occurred editing issue: java.lang.NullPointerException java.lang.NullPointerException at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getChangelogValue(CascadingSelectCFType.java:390) at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getChangelogValue(CascadingSelectCFType.java:69) at com.atlassian.jira.issue.fields.CustomFieldImpl.getChangelogValue(CustomFieldImpl.java:378) at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:418) at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:399) at com.atlassian.jira.issue.managers.DefaultIssueManager.updateFieldValues(DefaultIssueManager.java:589) at com.atlassian.jira.issue.managers.DefaultIssueManager.updateIssue(DefaultIssueManager.java:554) at com.atlassian.jira.bc.issue.DefaultIssueService.update(DefaultIssueService.java:272) at com.atlassian.jira.bc.issue.DefaultIssueService.update(DefaultIssueService.java:246) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) {noformat} *Workaround* # Shutdown JIRA # Backup and modify the file {{<jira-install>\atlassian-jira\WEB-INF\classes\templates\plugins\fields\edit\edit-cascadingselect.vm}} from {noformat} <select class="select cascadingselect-parent" id="${customField.id}" name="${customField.id}"> <option class="default-option" value="">$i18n.getText("common.words.pleaseselect")</option> <option class="default-option" value="-1">$i18n.getText("common.words.none")</option> #foreach ($option in $configs.options.rootOptions) #if(!$option.disabled || $option.disabled == false || ($selectedParent && $selectedParent == $option.optionId.toString())) <option class="option-group-$option.optionId" value="$option.optionId"#if ($selectedParent && $selectedParent == $option.optionId.toString()) selected="selected"#end>$cfValueEncoder.encodeForHtml($option.value)</option> #end #end </select> <select class="select cascadingselect-child" id="${customField.id}:1" name="${customField.id}:1"> <option class="default-option" value="">$i18n.getText("common.words.pleaseselect")</option> <option class="default-option" value="-1">$i18n.getText("common.words.none")</option> #foreach ($parentOption in $configs.options.rootOptions) <option class="option-group-$parentOption.optionId" value="">$i18n.getText("common.words.pleaseselect")</option> <option class="option-group-$parentOption.optionId" value="-1">$i18n.getText("common.words.none")</option> {noformat} to {noformat} <select class="select cascadingselect-parent" id="${customField.id}" name="${customField.id}"> <option class="default-option" value="">$i18n.getText("common.words.none")</option> <!-- <option class="default-option" value="-1">$i18n.getText("common.words.none")</option> --> #foreach ($option in $configs.options.rootOptions) #if(!$option.disabled || $option.disabled == false || ($selectedParent && $selectedParent == $option.optionId.toString())) <option class="option-group-$option.optionId" value="$option.optionId"#if ($selectedParent && $selectedParent == $option.optionId.toString()) selected="selected"#end>$cfValueEncoder.encodeForHtml($option.value)</option> #end #end </select> <select class="select cascadingselect-child" id="${customField.id}:1" name="${customField.id}:1"> <option class="default-option" value="">$i18n.getText("common.words.none")</option> <!-- <option class="default-option" value="-1">$i18n.getText("common.words.none")</option> --> #foreach ($parentOption in $configs.options.rootOptions) <option class="option-group-$parentOption.optionId" value="">$i18n.getText("common.words.none")</option> <!-- <option class="option-group-$parentOption.optionId" value="-1">$i18n.getText("common.words.none")</option> --> {noformat} # Restart JIRA This modification will remove the 'Please select' in the option and replace it with the word 'None'

    Atlassian JIRA | 5 years ago | Kah Loun Foong [Atlassian]
    java.lang.NullPointerException
  2. 0

    *Steps to reproduce* # Create a custom field Cascading Select # Add the options into it # Create an issue # Select 'NONE' for the Cascading Select custom field The issue successfully created without exception # Edit the same issue and select 'NONE' for the Cascading Select custom field again The following error appear and the update fail: {noformat} 2012-05-04 18:18:58,904 http-8503-6 ERROR kahloun.foong 1098x176x1 2zrt38 127.0.0.1 /secure/QuickEditIssue.jspa [jira.bc.issue.DefaultIssueService] Exception occurred editing issue: java.lang.NullPointerException java.lang.NullPointerException at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getChangelogValue(CascadingSelectCFType.java:390) at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getChangelogValue(CascadingSelectCFType.java:69) at com.atlassian.jira.issue.fields.CustomFieldImpl.getChangelogValue(CustomFieldImpl.java:378) at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:418) at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:399) at com.atlassian.jira.issue.managers.DefaultIssueManager.updateFieldValues(DefaultIssueManager.java:589) at com.atlassian.jira.issue.managers.DefaultIssueManager.updateIssue(DefaultIssueManager.java:554) at com.atlassian.jira.bc.issue.DefaultIssueService.update(DefaultIssueService.java:272) at com.atlassian.jira.bc.issue.DefaultIssueService.update(DefaultIssueService.java:246) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) {noformat} *Workaround* # Shutdown JIRA # Backup and modify the file {{<jira-install>\atlassian-jira\WEB-INF\classes\templates\plugins\fields\edit\edit-cascadingselect.vm}} from {noformat} <select class="select cascadingselect-parent" id="${customField.id}" name="${customField.id}"> <option class="default-option" value="">$i18n.getText("common.words.pleaseselect")</option> <option class="default-option" value="-1">$i18n.getText("common.words.none")</option> #foreach ($option in $configs.options.rootOptions) #if(!$option.disabled || $option.disabled == false || ($selectedParent && $selectedParent == $option.optionId.toString())) <option class="option-group-$option.optionId" value="$option.optionId"#if ($selectedParent && $selectedParent == $option.optionId.toString()) selected="selected"#end>$cfValueEncoder.encodeForHtml($option.value)</option> #end #end </select> <select class="select cascadingselect-child" id="${customField.id}:1" name="${customField.id}:1"> <option class="default-option" value="">$i18n.getText("common.words.pleaseselect")</option> <option class="default-option" value="-1">$i18n.getText("common.words.none")</option> #foreach ($parentOption in $configs.options.rootOptions) <option class="option-group-$parentOption.optionId" value="">$i18n.getText("common.words.pleaseselect")</option> <option class="option-group-$parentOption.optionId" value="-1">$i18n.getText("common.words.none")</option> {noformat} to {noformat} <select class="select cascadingselect-parent" id="${customField.id}" name="${customField.id}"> <option class="default-option" value="">$i18n.getText("common.words.none")</option> <!-- <option class="default-option" value="-1">$i18n.getText("common.words.none")</option> --> #foreach ($option in $configs.options.rootOptions) #if(!$option.disabled || $option.disabled == false || ($selectedParent && $selectedParent == $option.optionId.toString())) <option class="option-group-$option.optionId" value="$option.optionId"#if ($selectedParent && $selectedParent == $option.optionId.toString()) selected="selected"#end>$cfValueEncoder.encodeForHtml($option.value)</option> #end #end </select> <select class="select cascadingselect-child" id="${customField.id}:1" name="${customField.id}:1"> <option class="default-option" value="">$i18n.getText("common.words.none")</option> <!-- <option class="default-option" value="-1">$i18n.getText("common.words.none")</option> --> #foreach ($parentOption in $configs.options.rootOptions) <option class="option-group-$parentOption.optionId" value="">$i18n.getText("common.words.none")</option> <!-- <option class="option-group-$parentOption.optionId" value="-1">$i18n.getText("common.words.none")</option> --> {noformat} # Restart JIRA This modification will remove the 'Please select' in the option and replace it with the word 'None'

    Atlassian JIRA | 5 years ago | Kah Loun Foong [Atlassian]
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.lang.NullPointerException

      No message provided

      at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getChangelogValue()
    2. com.atlassian.jira
      DefaultIssueService.update
      1. com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getChangelogValue(CascadingSelectCFType.java:390)
      2. com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getChangelogValue(CascadingSelectCFType.java:69)
      3. com.atlassian.jira.issue.fields.CustomFieldImpl.getChangelogValue(CustomFieldImpl.java:378)
      4. com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:418)
      5. com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:399)
      6. com.atlassian.jira.issue.managers.DefaultIssueManager.updateFieldValues(DefaultIssueManager.java:589)
      7. com.atlassian.jira.issue.managers.DefaultIssueManager.updateIssue(DefaultIssueManager.java:554)
      8. com.atlassian.jira.bc.issue.DefaultIssueService.update(DefaultIssueService.java:272)
      9. com.atlassian.jira.bc.issue.DefaultIssueService.update(DefaultIssueService.java:246)
      9 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2 frames