java.lang.NullPointerException

JIRA | Michael Harrison | 3 months 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

    h2. Scenario User creates a new project mapping and clicks cancel before adding any configuration at all. Creates an "invalid" project mapping. During email processing, when JEMH checks for a workflow rule on a related project mapping, an exception occurs as the mapping has no project key. {panel:title=Exception} NullPointerException: null: java.lang.NullPointerException at com.javahollic.jira.emh.engine.support.IssueServiceWorkflowSupport.getProjectMappingToApply(IssueServiceWorkflowSupport.java:67) at com.javahollic.jira.emh.engine.support.IssueServiceWorkflowSupport.applyWorkflow(IssueServiceWorkflowSupport.java:90) at com.javahollic.jira.emh.engine.support.EMHIssueUtils.setupWorkflow(EMHIssueUtils.java:821) at com.javahollic.jira.emh.engine.FieldProcessorMapHandler.handleCommentOrPostIssueCreationActions(FieldProcessorMapHandler.java:219) at com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:1148) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:319) at com.javahollic.jira.emh.service.ProfileGroupRunner.runWithConfiguration(ProfileGroupRunner.java:550) at com.javahollic.jira.emh.service.ProfileGroupRunner.handleMessage(ProfileGroupRunner.java:126) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:194) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:47) {panel} h2. Workaround Remove any "invalid" project mappings that are not the default and have no project selected. h2. Resolution See "Fix Versions" on this issue for versions that this was fixed in.

    JIRA | 3 months ago | Michael Harrison
    java.lang.NullPointerException
  2. 0

    Failing after update from 2.0.10 to 2.0.11 {code}Exception: NullPointerException: null: java.lang.NullPointerException at com.javahollic.jira.emh.engine.ProjectMapper.processCFDefaults(ProjectMapper.java:1122) at com.javahollic.jira.emh.engine.ProjectMapper.applyCFDefaultsForMappingResult(ProjectMapper.java:1072) at com.javahollic.jira.emh.engine.ProjectMapper.applyDefaultsForCreation(ProjectMapper.java:869) at com.javahollic.jira.emh.engine.FieldProcessorFixer.fixupProject(FieldProcessorFixer.java:4030) at com.javahollic.jira.emh.engine.FieldProcessorFixer.fixup(FieldProcessorFixer.java:273) at com.javahollic.jira.emh.module.fieldproc.AbstractFieldProcessor.fixup(AbstractFieldProcessor.java:384) at com.javahollic.jira.emh.module.fieldproc.BasicMailProcessor.getFieldMaps(BasicMailProcessor.java:55) at com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:917) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:341) at com.javahollic.jira.emh.service.ProfileGroupRunner.runWithConfiguration(ProfileGroupRunner.java:550) at com.javahollic.jira.emh.service.ProfileGroupRunner.handleMessage(ProfileGroupRunner.java:126) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:194){code} h2. Cause We determine that this was likely due to old custom field default configurations allowing for the possibility of a non-existent "value type".

    JIRA | 3 months ago | Barbora Rolfesova
    java.lang.NullPointerException
  3. 0

    When responding to an email on a resolved issue, the comment never makes it to the issue. The following is thrown in a forward message: Audit result Audit Result 89758 (hit retry after loading URL to get XSRF token) Common causes of this are: • Insufficient resolve required parameters: JEMH requires a Project, Reporter, IssueType and Summary in order to create an issue. • BCC delivered email's: JEMH needs to match on incoming mail addressees, BCC mails don't have this (undisclosed recipients). JEMH does have a feature that allows a Profile to nominated mail headers that may include that final recipient address, its all non-standard, YMMV. • Bugs, they do happen, if you have verified the above are not the cause, log a JEMH support ticket (free reg) Outcome forward Exception NullPointerException: null: java.lang.NullPointerException at com.javahollic.jira.emh.engine.support.EMHIssueUtils.setupWorkflowAuthd(EMHIssueUtils.java:938) at com.javahollic.jira.emh.engine.support.EMHIssueUtils.setupWorkflow(EMHIssueUtils.java:834) at com.javahollic.jira.emh.engine.support.EMHIssueUtils.setupWorkflow(EMHIssueUtils.java:821) at com.javahollic.jira.emh.engine.FieldProcessorMapHandler.handleCommentOrPostIssueCreationActions(FieldProcessorMapHandler.java:212) at com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:1004) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:335) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:279) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:45) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:413) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:306) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:401) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)

    JIRA | 3 years ago | Robert Swarts
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi I tried configuring ticket reopening when a resolved ticket receives a comment by email. I followed these instructions - https://thepluginpeople.atlassian.net/wiki/display/JEMH/Reopen+an+Issue+On+Comment But not very well! :) I think the problem is I forgot to enter an 'oncomment workflow advance action', but I did enter an 'advance from state' {noformat} NullPointerException: null: java.lang.NullPointerException at com.javahollic.jira.emh.engine.support.EMHIssueUtils.setupWorkflow(EMHIssueUtils.java:904) at com.javahollic.jira.emh.engine.support.EMHIssueUtils.setupWorkflow(EMHIssueUtils.java:802) at com.javahollic.jira.emh.engine.FieldProcessorMapHandler.handleCommentOrPostIssueCreationActions(FieldProcessorMapHandler.java:212) at com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:973) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:323) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:291) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:45) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:400) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:293) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:388) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) {noformat} Perhaps JEMH should refuse to save my configuration in this case? Thanks, Alex

    JIRA | 3 years ago | Alexander Fisher
    java.lang.NullPointerException
  6. 0

    Hi I tried configuring ticket reopening when a resolved ticket receives a comment by email. I followed these instructions - https://thepluginpeople.atlassian.net/wiki/display/JEMH/Reopen+an+Issue+On+Comment But not very well! :) I think the problem is I forgot to enter an 'oncomment workflow advance action', but I did enter an 'advance from state' {noformat} NullPointerException: null: java.lang.NullPointerException at com.javahollic.jira.emh.engine.support.EMHIssueUtils.setupWorkflow(EMHIssueUtils.java:904) at com.javahollic.jira.emh.engine.support.EMHIssueUtils.setupWorkflow(EMHIssueUtils.java:802) at com.javahollic.jira.emh.engine.FieldProcessorMapHandler.handleCommentOrPostIssueCreationActions(FieldProcessorMapHandler.java:212) at com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:973) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:323) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:291) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:45) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:400) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:293) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:388) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) {noformat} Perhaps JEMH should refuse to save my configuration in this case? Thanks, Alex

    JIRA | 3 years ago | Alexander Fisher
    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.javahollic.jira.emh.engine.support.IssueServiceWorkflowSupport.getProjectMappingToApply()
    2. com.javahollic.jira
      EnterpriseMessageHandlerProxy.handleMessage
      1. com.javahollic.jira.emh.engine.support.IssueServiceWorkflowSupport.getProjectMappingToApply(IssueServiceWorkflowSupport.java:67)
      2. com.javahollic.jira.emh.engine.support.IssueServiceWorkflowSupport.applyWorkflow(IssueServiceWorkflowSupport.java:90)
      3. com.javahollic.jira.emh.engine.support.EMHIssueUtils.setupWorkflow(EMHIssueUtils.java:821)
      4. com.javahollic.jira.emh.engine.FieldProcessorMapHandler.handleCommentOrPostIssueCreationActions(FieldProcessorMapHandler.java:219)
      5. com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:1148)
      6. com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:319)
      7. com.javahollic.jira.emh.service.ProfileGroupRunner.runWithConfiguration(ProfileGroupRunner.java:550)
      8. com.javahollic.jira.emh.service.ProfileGroupRunner.handleMessage(ProfileGroupRunner.java:126)
      9. com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:194)
      10. com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:47)
      10 frames