java.lang.NullPointerException

JIRA | Stephen Day | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When the Jira built-in "Proirity" field is hidden, issue creation by email fails (see error below). We are using Jira 3.12.2, version 0.9.1-SNAPSHOT of JEMH, and version 1.0.16 of ldaputli {noformat} 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 DEBUG [util.handler.emh.AbstractFieldProcessor] - issueObject created: true 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 DEBUG [util.handler.emh.AbstractFieldProcessor] - projectObject set: true 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 DEBUG [util.handler.emh.AbstractFieldProcessor] - reporter set: true 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 DEBUG [util.handler.emh.AbstractFieldProcessor] - issueTypeObject set: true 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 DEBUG [util.handler.emh.AbstractFieldProcessor] - priorityObject set: false 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 WARN [util.handler.emh.AbstractFieldProcessor] Based on lack of information within the issue, it cannot be created by this handler. Other handlers will now be tried. 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 ERROR [service.util.handler.EMHIssueHandler] Unhandled Exception processing issue (bug): null 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 ERROR [service.util.handler.EMHIssueHandler] Rethrowing exception: Unhandled Exception processing issue (bug): null; nested exception is: java.lang.NullPointerException javax.mail.MessagingException: Unhandled Exception processing issue (bug): null; nested exception is: java.lang.NullPointerException at com.dolby.atlassian.jira.service.util.handler.EMHIssueHandler.runProcessor(EMHIssueHandler.java:336) at com.dolby.atlassian.jira.service.util.handler.EMHIssueHandler.handleMessage(EMHIssueHandler.java:118) at com.dolby.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:63) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:190) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) {noformat} config file: {noformat} defaultIssueType=38 defaultPriority=minor defaultIssueLinkType=relates defaultProject=MRLITBRPR createUsers=true createUsersIDFrom=alternate autoJoinGroup=jira-users eatEmptyBodyLinesMax=2 deleteEmail=false projectAutoAssign=false alternateIDLookupClassList=com.dolby.atlassian.jira.service.util.handler.emh.LDAPAlternateUserIDLookup domainEquivalency=NorthAmerica.msx.campany.com,company.com emailFieldProcessorPackageList=com.dolby.atlassian.jira.service.util.handler.emh.processor stripQuotes=true {noformat}

    JIRA | 8 years ago | Stephen Day
    java.lang.NullPointerException
  2. 0

    When the Jira built-in "Proirity" field is hidden, issue creation by email fails (see error below). We are using Jira 3.12.2, version 0.9.1-SNAPSHOT of JEMH, and version 1.0.16 of ldaputli {noformat} 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 DEBUG [util.handler.emh.AbstractFieldProcessor] - issueObject created: true 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 DEBUG [util.handler.emh.AbstractFieldProcessor] - projectObject set: true 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 DEBUG [util.handler.emh.AbstractFieldProcessor] - reporter set: true 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 DEBUG [util.handler.emh.AbstractFieldProcessor] - issueTypeObject set: true 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 DEBUG [util.handler.emh.AbstractFieldProcessor] - priorityObject set: false 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 WARN [util.handler.emh.AbstractFieldProcessor] Based on lack of information within the issue, it cannot be created by this handler. Other handlers will now be tried. 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 ERROR [service.util.handler.EMHIssueHandler] Unhandled Exception processing issue (bug): null 2009-08-26 14:20:38,708 JiraQuartzScheduler_Worker-2 ERROR [service.util.handler.EMHIssueHandler] Rethrowing exception: Unhandled Exception processing issue (bug): null; nested exception is: java.lang.NullPointerException javax.mail.MessagingException: Unhandled Exception processing issue (bug): null; nested exception is: java.lang.NullPointerException at com.dolby.atlassian.jira.service.util.handler.EMHIssueHandler.runProcessor(EMHIssueHandler.java:336) at com.dolby.atlassian.jira.service.util.handler.EMHIssueHandler.handleMessage(EMHIssueHandler.java:118) at com.dolby.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:63) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:190) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) {noformat} config file: {noformat} defaultIssueType=38 defaultPriority=minor defaultIssueLinkType=relates defaultProject=MRLITBRPR createUsers=true createUsersIDFrom=alternate autoJoinGroup=jira-users eatEmptyBodyLinesMax=2 deleteEmail=false projectAutoAssign=false alternateIDLookupClassList=com.dolby.atlassian.jira.service.util.handler.emh.LDAPAlternateUserIDLookup domainEquivalency=NorthAmerica.msx.campany.com,company.com emailFieldProcessorPackageList=com.dolby.atlassian.jira.service.util.handler.emh.processor stripQuotes=true {noformat}

    JIRA | 8 years ago | Stephen Day
    java.lang.NullPointerException
  3. 0

    Andy, just experimenting with this support. It look very good. Having a few problems. Perhaps they are just configuration issues. 1) If I specify reporter in the email, I can get it to import as an issue. But it seems to have trouble with trying to determine reporter from the email address. 2) Other than project and reporter, none of the other fields seemed to be picked up. {noformat} Subject: test 3 From: Bob Swift <bob.swift@visionsolutions.com> Date: Nov 04, 2008 project: Experiment components: Other priority: Major issuetype: Bug watchers: sde-tester fixVersions: 0.0.1,0.0.2 description: test {noformat} {noformat} createusers=false #reportusername=jiraissues notifyusers=true deleteEmail=true stripquotes=true #get the project key from the to: address #projectAutoAssign=true alternateIDLookupClass=com.dolby.atlassian.jira.service.util.handler.emh.LDAPAlternateUserIDLookup domainEquivalency=visionsolutions.com emailFieldProcessorClassList=com.dolby.atlassian.jira.service.util.handler.emh.processor.ConfluenceMailFormNgFieldProcessor lowercaseUserids=true defaultProject=XXX defaultIssueType=Task defaultPriority=Major defaultComponents=Other {noformat} {noformat} java.lang.NullPointerException at com.dolby.atlassian.jira.service.util.handler.emh.AbstractFieldProcessor.getAlternateEmailUserLookup(AbstractFieldProcessor.java:369) at com.dolby.atlassian.jira.service.util.handler.emh.AbstractFieldProcessor.findUserByEmail(AbstractFieldProcessor.java:507) at com.dolby.atlassian.jira.service.util.handler.emh.processor.ConfluenceMailFormNgFieldProcessor.fixupReporter(ConfluenceMailFormNgFieldProcessor.java:403) at com.dolby.atlassian.jira.service.util.handler.emh.processor.ConfluenceMailFormNgFieldProcessor.extractFieldsAndBody(ConfluenceMailFormNgFieldProcessor.java:181) at com.dolby.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:122) at com.dolby.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:124) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:174) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:56) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 2008-11-04 08:10:35,945 JiraQuartzScheduler_Worker-0 ERROR [service.util.handler.CreateIssueHandler] Could not create issue! - null java.lang.NullPointerException at com.dolby.atlassian.jira.service.util.handler.emh.AbstractFieldProcessor.getAlternateEmailUserLookup(AbstractFieldProcessor.java:369) at com.dolby.atlassian.jira.service.util.handler.emh.AbstractFieldProcessor.findUserByEmail(AbstractFieldProcessor.java:507) at com.dolby.atlassian.jira.service.util.handler.emh.processor.ConfluenceMailFormNgFieldProcessor.fixupReporter(ConfluenceMailFormNgFieldProcessor.java:403) at com.dolby.atlassian.jira.service.util.handler.emh.processor.ConfluenceMailFormNgFieldProcessor.extractFieldsAndBody(ConfluenceMailFormNgFieldProcessor.java:181) at com.dolby.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:122) at com.dolby.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:124) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:174) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:56) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) {noformat}

    JIRA | 9 years ago | Bob Swift
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Andy, just experimenting with this support. It look very good. Having a few problems. Perhaps they are just configuration issues. 1) If I specify reporter in the email, I can get it to import as an issue. But it seems to have trouble with trying to determine reporter from the email address. 2) Other than project and reporter, none of the other fields seemed to be picked up. {noformat} Subject: test 3 From: Bob Swift <bob.swift@visionsolutions.com> Date: Nov 04, 2008 project: Experiment components: Other priority: Major issuetype: Bug watchers: sde-tester fixVersions: 0.0.1,0.0.2 description: test {noformat} {noformat} createusers=false #reportusername=jiraissues notifyusers=true deleteEmail=true stripquotes=true #get the project key from the to: address #projectAutoAssign=true alternateIDLookupClass=com.dolby.atlassian.jira.service.util.handler.emh.LDAPAlternateUserIDLookup domainEquivalency=visionsolutions.com emailFieldProcessorClassList=com.dolby.atlassian.jira.service.util.handler.emh.processor.ConfluenceMailFormNgFieldProcessor lowercaseUserids=true defaultProject=XXX defaultIssueType=Task defaultPriority=Major defaultComponents=Other {noformat} {noformat} java.lang.NullPointerException at com.dolby.atlassian.jira.service.util.handler.emh.AbstractFieldProcessor.getAlternateEmailUserLookup(AbstractFieldProcessor.java:369) at com.dolby.atlassian.jira.service.util.handler.emh.AbstractFieldProcessor.findUserByEmail(AbstractFieldProcessor.java:507) at com.dolby.atlassian.jira.service.util.handler.emh.processor.ConfluenceMailFormNgFieldProcessor.fixupReporter(ConfluenceMailFormNgFieldProcessor.java:403) at com.dolby.atlassian.jira.service.util.handler.emh.processor.ConfluenceMailFormNgFieldProcessor.extractFieldsAndBody(ConfluenceMailFormNgFieldProcessor.java:181) at com.dolby.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:122) at com.dolby.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:124) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:174) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:56) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 2008-11-04 08:10:35,945 JiraQuartzScheduler_Worker-0 ERROR [service.util.handler.CreateIssueHandler] Could not create issue! - null java.lang.NullPointerException at com.dolby.atlassian.jira.service.util.handler.emh.AbstractFieldProcessor.getAlternateEmailUserLookup(AbstractFieldProcessor.java:369) at com.dolby.atlassian.jira.service.util.handler.emh.AbstractFieldProcessor.findUserByEmail(AbstractFieldProcessor.java:507) at com.dolby.atlassian.jira.service.util.handler.emh.processor.ConfluenceMailFormNgFieldProcessor.fixupReporter(ConfluenceMailFormNgFieldProcessor.java:403) at com.dolby.atlassian.jira.service.util.handler.emh.processor.ConfluenceMailFormNgFieldProcessor.extractFieldsAndBody(ConfluenceMailFormNgFieldProcessor.java:181) at com.dolby.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:122) at com.dolby.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:124) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:174) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:56) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) {noformat}

    JIRA | 9 years ago | Bob Swift
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.dolby.atlassian.jira.service.util.handler.EMHIssueHandler.runProcessor()
    2. com.dolby.atlassian
      CreateOrCommentHandler.handleMessage
      1. com.dolby.atlassian.jira.service.util.handler.EMHIssueHandler.runProcessor(EMHIssueHandler.java:336)
      2. com.dolby.atlassian.jira.service.util.handler.EMHIssueHandler.handleMessage(EMHIssueHandler.java:118)
      3. com.dolby.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:63)
      3 frames
    3. com.atlassian.jira
      ServiceRunner.execute
      1. com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:190)
      2. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67)
      3. com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61)
      3 frames
    4. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:191)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      2 frames