java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Having an issue getting the plugin to create a JIRA ticket. See the configuration screenshots attached for how I've got it setup. The error I'm getting is during a failed build is: {code} Recording test results ERROR: Build step failed with exception java.lang.NullPointerException at hudson.plugins.jira.JiraSession.createIssue(JiraSession.java:310) at hudson.plugins.jira.JiraCreateIssueNotifier.createJiraIssue(JiraCreateIssueNotifier.java:153) at hudson.plugins.jira.JiraCreateIssueNotifier.currentBuildResultFailure(JiraCreateIssueNotifier.java:343) at hudson.plugins.jira.JiraCreateIssueNotifier.perform(JiraCreateIssueNotifier.java:115) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Create Jira Issue' marked build as failure {code} If I call our JIRA rest API from the server I can create an issue just fine. {code} curl -D- -u username:password -X POST --data @data.txt -H "Content-Type: application/json" https://destinationnsw.atlassian.net/rest/api/2/issue/ {code} data.txt contains: {code} { "fields": { "project": { "key": "BUGS" }, "summary": "REST ye merry gentlemen.", "description": "Creating of an issue using project keys", "issuetype": { "name": "Bug" } } } {code} I get "HTTP/1.1 201 Created" and the ticket is available.
    via by Thom Wilhelm,
  • Having an issue getting the plugin to create a JIRA ticket. See the configuration screenshots attached for how I've got it setup. The error I'm getting is during a failed build is: {code} Recording test results ERROR: Build step failed with exception java.lang.NullPointerException at hudson.plugins.jira.JiraSession.createIssue(JiraSession.java:310) at hudson.plugins.jira.JiraCreateIssueNotifier.createJiraIssue(JiraCreateIssueNotifier.java:153) at hudson.plugins.jira.JiraCreateIssueNotifier.currentBuildResultFailure(JiraCreateIssueNotifier.java:343) at hudson.plugins.jira.JiraCreateIssueNotifier.perform(JiraCreateIssueNotifier.java:115) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Create Jira Issue' marked build as failure {code} If I call our JIRA rest API from the server I can create an issue just fine. {code} curl -D- -u username:password -X POST --data @data.txt -H "Content-Type: application/json" https://destinationnsw.atlassian.net/rest/api/2/issue/ {code} data.txt contains: {code} { "fields": { "project": { "key": "BUGS" }, "summary": "REST ye merry gentlemen.", "description": "Creating of an issue using project keys", "issuetype": { "name": "Bug" } } } {code} I get "HTTP/1.1 201 Created" and the ticket is available.
    via by Thom Wilhelm,
  • Jira Jenkins issue
    via Stack Overflow by sog
    ,
    • java.lang.NullPointerException at hudson.plugins.jira.JiraSession.createIssue(JiraSession.java:305)
    No Bugmate found.