java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart

JIRA | Andy Brook | 3 years ago
  1. 0

    This has been reported in 1.4.17 but hasn't been replicated with Test Cases. {noformat} ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart: java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl(EMHMailUtils.java:1137) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:1000) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:994) at com.javahollic.jira.emh.module.msgfilter.CommentCountOrSizeFilter.filter(CommentCountOrSizeFilter.java:53) at com.javahollic.jira.emh.service.FilterManager.applyFilters(FilterManager.java:60) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.setupHandlerAndFilters(EnterpriseMessageHandlerImpl.java:873) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:239) at com.javahollic.jira.emh.service.reprocessing.AuditHistoryNecromancer.reanimate(AuditHistoryNecromancer.java:85) at com.javahollic.jira.emh.service.DefaultJEMHAuditHistoryReprocessingManager.reanimate(DefaultJEMHAuditHistoryReprocessingManager.java:231) at com.javahollic.jira.emh.rest.api.auditing.Auditing.doReanimate(Aud {noformat}

    JIRA | 3 years ago | Andy Brook
    java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart
  2. 0

    This has been reported in 1.4.17 but hasn't been replicated with Test Cases. {noformat} ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart: java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl(EMHMailUtils.java:1137) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:1000) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:994) at com.javahollic.jira.emh.module.msgfilter.CommentCountOrSizeFilter.filter(CommentCountOrSizeFilter.java:53) at com.javahollic.jira.emh.service.FilterManager.applyFilters(FilterManager.java:60) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.setupHandlerAndFilters(EnterpriseMessageHandlerImpl.java:873) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:239) at com.javahollic.jira.emh.service.reprocessing.AuditHistoryNecromancer.reanimate(AuditHistoryNecromancer.java:85) at com.javahollic.jira.emh.service.DefaultJEMHAuditHistoryReprocessingManager.reanimate(DefaultJEMHAuditHistoryReprocessingManager.java:231) at com.javahollic.jira.emh.rest.api.auditing.Auditing.doReanimate(Aud {noformat}

    JIRA | 3 years ago | Andy Brook
    java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart
  3. 0

    Sometimes in audit i see error: {noformat} ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart: java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl(EMHMailUtils.java:977) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:831) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:825) at com.javahollic.jira.emh.service.filter.CommentCountOrSizeFilter.filter(CommentCountOrSizeFilter.java:70) at com.javahollic.jira.emh.service.FilterManager.applyFilters(FilterManager.java:100) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.setupHandlerAndFilters(EnterpriseMessageHandlerImpl.java:747) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:227) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:44) 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:252) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47) {noformat} But when i try to create test case it creates successfully. I don't understand what is reason File of email what created error is [^jemh-1199.txt]

    JIRA | 3 years ago | Vladimir Korobov
    java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Eclipse vs. Procrun

    Oracle Community | 9 years ago | 843834
    java.lang.RuntimeException: java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.Multipart
  6. 0

    MimeMessageParser throws ClassCastException for HtmlEmail

    Stack Overflow | 3 years ago | alboko
    java.lang.ClassCastException: javax.mail.internet.MimeMultipart cannot be cast to java.lang.String

    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.ClassCastException

      javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart

      at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl()
    2. com.javahollic.jira
      DefaultJEMHAuditHistoryReprocessingManager.reanimate
      1. com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl(EMHMailUtils.java:1137)
      2. com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:1000)
      3. com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:994)
      4. com.javahollic.jira.emh.module.msgfilter.CommentCountOrSizeFilter.filter(CommentCountOrSizeFilter.java:53)
      5. com.javahollic.jira.emh.service.FilterManager.applyFilters(FilterManager.java:60)
      6. com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.setupHandlerAndFilters(EnterpriseMessageHandlerImpl.java:873)
      7. com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:239)
      8. com.javahollic.jira.emh.service.reprocessing.AuditHistoryNecromancer.reanimate(AuditHistoryNecromancer.java:85)
      9. com.javahollic.jira.emh.service.DefaultJEMHAuditHistoryReprocessingManager.reanimate(DefaultJEMHAuditHistoryReprocessingManager.java:231)
      9 frames