java.lang.NullPointerException

Atlassian JIRA | KhongMing KOK [Atlassian] | 4 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

    In advanced search, with JQL *"~!"* will thrown java.lang.NullPointerException with in the Log but return result. !2.PNG! In the logs:- {noformat} java.lang.NullPointerException at com.atlassian.jira.issue.search.searchers.transformer.AbstractSearchInputTransformer.validateParams(AbstractSearchInputTransformer.java:109) at com.atlassian.jira.plugin.issuenav.service.DefaultSearcherService.getValueResults(DefaultSearcherService.java:244) at com.atlassian.jira.plugin.issuenav.service.DefaultSearcherService.getSearchResults(DefaultSearcherService.java:178) at com.atlassian.jira.plugin.issuenav.service.DefaultSearcherService.searchWithJql(DefaultSearcherService.java:172) at com.atlassian.jira.plugin.issuenav.IssueNavAction.performSearch(IssueNavAction.java:716) at com.atlassian.jira.plugin.issuenav.IssueNavAction.doNav(IssueNavAction.java:224) at com.atlassian.jira.plugin.issuenav.IssueNavAction.doDefault(IssueNavAction.java:157) at sun.reflect.GeneratedMethodAccessor575.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433) at webwork.action.ActionSupport.execute(ActionSupport.java:157) ...... {noformat} If the JQL with "~!" is saved as filter, the page is not accessible and thrown System Error Page. !3.PNG! !1.PNG!

    Atlassian JIRA | 4 years ago | KhongMing KOK [Atlassian]
    java.lang.NullPointerException
  2. 0

    In advanced search, with JQL *"~!"* will thrown java.lang.NullPointerException with in the Log but return result. !2.PNG! In the logs:- {noformat} java.lang.NullPointerException at com.atlassian.jira.issue.search.searchers.transformer.AbstractSearchInputTransformer.validateParams(AbstractSearchInputTransformer.java:109) at com.atlassian.jira.plugin.issuenav.service.DefaultSearcherService.getValueResults(DefaultSearcherService.java:244) at com.atlassian.jira.plugin.issuenav.service.DefaultSearcherService.getSearchResults(DefaultSearcherService.java:178) at com.atlassian.jira.plugin.issuenav.service.DefaultSearcherService.searchWithJql(DefaultSearcherService.java:172) at com.atlassian.jira.plugin.issuenav.IssueNavAction.performSearch(IssueNavAction.java:716) at com.atlassian.jira.plugin.issuenav.IssueNavAction.doNav(IssueNavAction.java:224) at com.atlassian.jira.plugin.issuenav.IssueNavAction.doDefault(IssueNavAction.java:157) at sun.reflect.GeneratedMethodAccessor575.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433) at webwork.action.ActionSupport.execute(ActionSupport.java:157) ...... {noformat} If the JQL with "~!" is saved as filter, the page is not accessible and thrown System Error Page. !3.PNG! !1.PNG!

    Atlassian JIRA | 4 years ago | KhongMing KOK [Atlassian]
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    So, in my plugin, I use the IssueService.create() method to add issues to a newly created project. This is the method I used to create them : IssueInputParameters issueToCreate = ComponentAccessor.getIssueService().newIssueInputParameters(); issueToCreate.set...; //All the sets IssueService.CreateValidationResult validationResult = ComponentAccessor.getIssueService().validateCreate(user, issueToCreate); if (validationResult.isValid()) { IssueService.IssueResult createdIssue = ComponentAccessor.getIssueService().create(user, validationResult); } When I do so, all the issues seems to be added correctly (I see all of them in the project page), but when I click on one, I get this error in the console : SEVERE: Servlet.service() for servlet action threw exception java.lang.NullPointerException at com.atlassian.jira.plugin.issuenav.action.IssueBean$IssueProjectBean.<init>(IssueBean.java:146) at com.atlassian.jira.plugin.issuenav.action.IssueBean.<init>(IssueBean.java:60) at com.atlassian.jira.plugin.issuenav.IssueNavAction.doIssue(IssueNavAction.java:629) at com.atlassian.jira.plugin.issuenav.IssueNavAction.doDefault(IssueNavAction.java:261) 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:606) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) [...] This is quit annoying since everywhere I look this is the method to use to create issues in a JIRA plugin (without using the REST API). Is this a known bug?

    Atlassian JIRA | 3 years ago | Frederick Plante
    java.lang.NullPointerException

    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.search.searchers.transformer.AbstractSearchInputTransformer.validateParams()
    2. com.atlassian.jira
      IssueNavAction.doDefault
      1. com.atlassian.jira.issue.search.searchers.transformer.AbstractSearchInputTransformer.validateParams(AbstractSearchInputTransformer.java:109)
      2. com.atlassian.jira.plugin.issuenav.service.DefaultSearcherService.getValueResults(DefaultSearcherService.java:244)
      3. com.atlassian.jira.plugin.issuenav.service.DefaultSearcherService.getSearchResults(DefaultSearcherService.java:178)
      4. com.atlassian.jira.plugin.issuenav.service.DefaultSearcherService.searchWithJql(DefaultSearcherService.java:172)
      5. com.atlassian.jira.plugin.issuenav.IssueNavAction.performSearch(IssueNavAction.java:716)
      6. com.atlassian.jira.plugin.issuenav.IssueNavAction.doNav(IssueNavAction.java:224)
      7. com.atlassian.jira.plugin.issuenav.IssueNavAction.doDefault(IssueNavAction.java:157)
      7 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor575.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    4. webwork.util
      InjectionUtils.invoke
      1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
      2. webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
      2 frames
    5. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433)
      2. webwork.action.ActionSupport.execute(ActionSupport.java:157)
      2 frames