java.lang.NullPointerException

Atlassian JIRA | Vincent Chin [Atlassian] | 2 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

    h2.Problem Description This bug is closely related to https://jira.atlassian.com/browse/JRA-42919 and it seems to be affecting other components like the JSON Export module and also the Issue Navigator. h2.Steps to Replicate Setting the timezone of your instance to -Duser.timezone=Asia/Beirut. Then add the due date field to your issue. Create an issue due date set at {{2015-03-29}}. *Issue Navigator* # Add the due column to the Issue Navigator. # Attempt to search for the issues with due date set on {{2015-03-29}}. *JSON Export* # Enable the JSON module in JIM (JIRA Import Manager). # Attempt to export the results from the Issue Navigator to JSON. h2.Expected Results *Issue Navigator* Able to view the results without any error. *JSON Export* Able to export without issues. h2.Current Results *Issue Navigator* !Untitled1.png|thumbnail! {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 'getHtml' in class com.atlassian.jira.issue.fields.layout.column.ColumnLayoutItemImpl threw exception java.lang.NullPointerException at templates/jira/issue/table/macros.vm[line 117, column 34] 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 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) {noformat} *JSON Export* {noformat} java.lang.NullPointerException at com.atlassian.jira.issue.DocumentIssueImpl.getDueDate(DocumentIssueImpl.java:291) at com.atlassian.jira.plugins.importer.views.IssueJsonView.convertIssueToExternalIssue(IssueJsonView.java:245) at com.atlassian.jira.plugins.importer.views.SearchRequestJsonView$1.collect(SearchRequestJsonView.java:101) at com.atlassian.jira.issue.statistics.util.DocumentHitCollector.collect(DocumentHitCollector.java:34) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:482) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:456) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:191) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} h2.Workaround *Issue Navigator* # Hide the *Due Date* field and then re-index the instance. The Issue Navigator will now display the results without errors. *JSON Export* # No known workaround for now as the exporter gets all the value of the JIRA ticket regardless of whether the *Due Date* field is hidden or shown.

    Atlassian JIRA | 2 years ago | Vincent Chin [Atlassian]
    java.lang.NullPointerException
  2. 0

    h2.Problem Description This bug is closely related to https://jira.atlassian.com/browse/JRA-42919 and it seems to be affecting other components like the JSON Export module and also the Issue Navigator. h2.Steps to Replicate Setting the timezone of your instance to -Duser.timezone=Asia/Beirut. Then add the due date field to your issue. Create an issue due date set at {{2015-03-29}}. *Issue Navigator* # Add the due column to the Issue Navigator. # Attempt to search for the issues with due date set on {{2015-03-29}}. *JSON Export* # Enable the JSON module in JIM (JIRA Import Manager). # Attempt to export the results from the Issue Navigator to JSON. h2.Expected Results *Issue Navigator* Able to view the results without any error. *JSON Export* Able to export without issues. h2.Current Results *Issue Navigator* !Untitled1.png|thumbnail! {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 'getHtml' in class com.atlassian.jira.issue.fields.layout.column.ColumnLayoutItemImpl threw exception java.lang.NullPointerException at templates/jira/issue/table/macros.vm[line 117, column 34] 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 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) {noformat} *JSON Export* {noformat} java.lang.NullPointerException at com.atlassian.jira.issue.DocumentIssueImpl.getDueDate(DocumentIssueImpl.java:291) at com.atlassian.jira.plugins.importer.views.IssueJsonView.convertIssueToExternalIssue(IssueJsonView.java:245) at com.atlassian.jira.plugins.importer.views.SearchRequestJsonView$1.collect(SearchRequestJsonView.java:101) at com.atlassian.jira.issue.statistics.util.DocumentHitCollector.collect(DocumentHitCollector.java:34) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:482) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:456) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:191) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} h2.Workaround *Issue Navigator* # Hide the *Due Date* field and then re-index the instance. The Issue Navigator will now display the results without errors. *JSON Export* # No known workaround for now as the exporter gets all the value of the JIRA ticket regardless of whether the *Due Date* field is hidden or shown.

    Atlassian JIRA | 2 years ago | Vincent Chin [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.issue.DocumentIssueImpl.getDueDate()
    2. com.atlassian.jira
      LuceneSearchProvider.searchAndSort
      1. com.atlassian.jira.issue.DocumentIssueImpl.getDueDate(DocumentIssueImpl.java:291)
      2. com.atlassian.jira.plugins.importer.views.IssueJsonView.convertIssueToExternalIssue(IssueJsonView.java:245)
      3. com.atlassian.jira.plugins.importer.views.SearchRequestJsonView$1.collect(SearchRequestJsonView.java:101)
      4. com.atlassian.jira.issue.statistics.util.DocumentHitCollector.collect(DocumentHitCollector.java:34)
      5. com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:482)
      6. com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:456)
      7. com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:191)
      7 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame