com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String

JIRA | Jim Sullivan | 3 years ago
  1. 0

    I get the following exception from the external server after changing the state of an issue on the internal server. FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String: com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String at com.javahollic.jira.emh.module.fieldproc.XmlFieldProcessor.getFieldMaps(XmlFieldProcessor.java:106) at com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:743) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:307) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:267) 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) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String

    JIRA | 3 years ago | Jim Sullivan
    com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String
  2. 0

    I get the following exception from the external server after changing the state of an issue on the internal server. FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String: com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String at com.javahollic.jira.emh.module.fieldproc.XmlFieldProcessor.getFieldMaps(XmlFieldProcessor.java:106) at com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:743) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:307) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:267) 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) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String

    JIRA | 3 years ago | Jim Sullivan
    com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String
  3. 0

    Hi there, I've been trying to implement JEMH (Helpdesk scenario) with the most basic of config and at the moment cannot process any incoming email from either a JIRA or non user. The forwarded mail is as follows - Outcome forward Exception FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.NullPointerException: com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.NullPointerException at com.javahollic.jira.emh.module.fieldproc.BasicMailProcessor.getFieldMaps(BasicMailProcessor.java:57) at com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:756) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:323) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:247) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:45) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:368) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:271) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:356) 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) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.NullPointerException Return-path: thanks, Gareth

    JIRA | 3 years ago | gareth
    com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I had a user trying to create an issue per e-mail which caused an exception. As it seems a "Content-Disposition: inline" e-mail header causes this. I tried to come up with a minimal example; see jemh-audithistory-203.txt in attached .eml. Exception: {noformat}FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.lang.String cannot be cast to java.io.InputStream: com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.lang.String cannot be cast to java.io.InputStream at com.javahollic.jira.emh.module.fieldproc.BasicMailProcessor.getFieldMaps(BasicMailProcessor.java:56) at com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:759) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:336) 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: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) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.lang.String cannot be cast to java.io.InputStream{noformat}

    JIRA | 2 years ago | Mike Dornberger
    com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.lang.String cannot be cast to java.io.InputStream
  6. 0

    I got this error today. Not sure why, or what this is referring to. The email in question contained a small message with a 10MB PDF Attachment. As far as i coulde see it was just the same as any "other" email. JEMH stopped collecting emails until i "removed" this mail from the innboks, it then started to process the other emails. Any ide why i get this error? Is it a bug? or a error in my enviroment? FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ArrayIndexOutOfBoundsException: message number (3) out of bounds (1): com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ArrayIndexOutOfBoundsException: message number (3) out of bounds (1) at com.javahollic.jira.emh.module.fieldproc.BasicMailProcessor.getFieldMaps(BasicMailProcessor.java:55) at com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:743) 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) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ArrayIndexOutOfBoundsException: message number (3) out of bounds (1)

    JIRA | 3 years ago | Lasse Rolstad
    com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException: com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ArrayIndexOutOfBoundsException: message number (3) out of bounds (1)

    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. com.javahollic.jira.emh.api.extension.fieldproc.FieldProcessorException

      com.javahollic.jira.emh.service.InvalidDirectiveDataException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String

      at com.javahollic.jira.emh.module.fieldproc.XmlFieldProcessor.getFieldMaps()
    2. com.javahollic.jira
      EnterpriseMessageHandlerProxy.handleMessage
      1. com.javahollic.jira.emh.module.fieldproc.XmlFieldProcessor.getFieldMaps(XmlFieldProcessor.java:106)
      2. com.javahollic.jira.emh.service.ProcessorRunner.runProcessor(ProcessorRunner.java:743)
      3. com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:307)
      4. com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:267)
      5. com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:45)
      5 frames
    3. com.atlassian.jira
      ServiceRunner.execute
      1. com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:400)
      2. com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:293)
      3. com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:388)
      4. com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257)
      5. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
      6. com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
      6 frames
    4. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      2 frames