java.lang.NullPointerException

Atlassian JIRA | Michał Majcher | 1 year ago
  1. 0

    I try to create a Kanban or Scrum board programmatically using JIRA Software Java API. I use this code: {code:java} String boardName = "B1"; Long filterId = 10001L; ApplicationUser user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser(); RapidView rv = RapidView.builder().name(boardName).owner(user.getUsername()) .savedFilterId(filterId).cardColorStrategy(CardColorStrategy.ISSUE_TYPE) .swimlaneStrategy(SwimlaneStrategy.EPIC).showDaysInColumn(false) .sprintMarkersMigrated(false).sprintSupportEnabled(false).build(); RapidViewManager rvManager = new RapidViewManagerImpl(); ServiceOutcome<RapidView> so = rvManager.create(rv, user, RapidViewPreset.KANBAN); {code} Unfortunately I get _NullPointerException_: {code:java} java.lang.NullPointerException at com.atlassian.greenhopper.manager.rapidview.RapidViewManagerImpl.create(RapidViewManagerImpl.java:187) at com.atlassian.tutorial.helloworld.MyTestServlet.doGet(MyTestServlet.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) ... {code} I tried passing _RapidViewPreset.SCRUM_, calling _...builder().id(null)..._ and passing other values to builder methods. The result is always the same, i.e. NPE. As I call all the methods of the rapid view builder and I cannot find any property which I should set yet, I suppose it is a bug in the _RapidViewManagerImpl_ class.

    Atlassian JIRA | 1 year ago | Michał Majcher
    java.lang.NullPointerException
  2. 0

    I try to create a Kanban or Scrum board programmatically using JIRA Software Java API. I use this code: {code:java} String boardName = "B1"; Long filterId = 10001L; ApplicationUser user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser(); RapidView rv = RapidView.builder().name(boardName).owner(user.getUsername()) .savedFilterId(filterId).cardColorStrategy(CardColorStrategy.ISSUE_TYPE) .swimlaneStrategy(SwimlaneStrategy.EPIC).showDaysInColumn(false) .sprintMarkersMigrated(false).sprintSupportEnabled(false).build(); RapidViewManager rvManager = new RapidViewManagerImpl(); ServiceOutcome<RapidView> so = rvManager.create(rv, user, RapidViewPreset.KANBAN); {code} Unfortunately I get _NullPointerException_: {code:java} java.lang.NullPointerException at com.atlassian.greenhopper.manager.rapidview.RapidViewManagerImpl.create(RapidViewManagerImpl.java:187) at com.atlassian.tutorial.helloworld.MyTestServlet.doGet(MyTestServlet.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) ... {code} I tried passing _RapidViewPreset.SCRUM_, calling _...builder().id(null)..._ and passing other values to builder methods. The result is always the same, i.e. NPE. As I call all the methods of the rapid view builder and I cannot find any property which I should set yet, I suppose it is a bug in the _RapidViewManagerImpl_ class.

    Atlassian JIRA | 1 year ago | Michał Majcher
    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.greenhopper.manager.rapidview.RapidViewManagerImpl.create()
    2. com.atlassian.greenhopper
      RapidViewManagerImpl.create
      1. com.atlassian.greenhopper.manager.rapidview.RapidViewManagerImpl.create(RapidViewManagerImpl.java:187)
      1 frame
    3. com.atlassian.tutorial
      MyTestServlet.doGet
      1. com.atlassian.tutorial.helloworld.MyTestServlet.doGet(MyTestServlet.java:92)
      1 frame
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2 frames