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

JIRA | Andy Brook | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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 | 4 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 | 4 years ago | Andy Brook
    java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.internet.MimeMultipart

    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