java.lang.ClassCastException: com.sun.mail.util.QPDecoderStream cannot be cast to java.lang.String

JIRA | Operations | 3 years ago
  1. 0

    While attempting to Re-Process an inbound email via the Auditing menu, the reprocessed "inbound" message cannot be processed by JEMH due to object casting issues within JEMH (cannot cast from QPDecoderStream to String). The full stack can be found below: ClassCastException: com.sun.mail.util.QPDecoderStream cannot be cast to java.lang.String: java.lang.ClassCastException: com.sun.mail.util.QPDecoderStream cannot be cast to java.lang.String at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl(EMHMailUtils.java:1125) 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:932) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:275) 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(Auditing.java:136) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source)

    JIRA | 3 years ago | Operations
    java.lang.ClassCastException: com.sun.mail.util.QPDecoderStream cannot be cast to java.lang.String
  2. 0

    While attempting to Re-Process an inbound email via the Auditing menu, the reprocessed "inbound" message cannot be processed by JEMH due to object casting issues within JEMH (cannot cast from QPDecoderStream to String). The full stack can be found below: ClassCastException: com.sun.mail.util.QPDecoderStream cannot be cast to java.lang.String: java.lang.ClassCastException: com.sun.mail.util.QPDecoderStream cannot be cast to java.lang.String at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl(EMHMailUtils.java:1125) 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:932) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:275) 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(Auditing.java:136) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source)

    JIRA | 3 years ago | Operations
    java.lang.ClassCastException: com.sun.mail.util.QPDecoderStream cannot be cast to java.lang.String
  3. 0

    Mailbox is not working properly in Youtrack 6.0

    YouTrack | 2 years ago
    java.lang.ClassCastException: com.sun.mail.util.QPDecoderStream cannot be cast to java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String
  6. 0

    Passing ArrayList<String> from ActivityA to ActivityB

    Stack Overflow | 2 months ago | user5425093
    java.lang.RuntimeException: Unable to start activity ComponentInfo{tanav.sharma/tanav.sharma.TanavActivityOrder}: java.lang.ClassCastException: java.lang.String 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

      com.sun.mail.util.QPDecoderStream cannot be cast to java.lang.String

      at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl()
    2. com.javahollic.jira
      Auditing.doReanimate
      1. com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl(EMHMailUtils.java:1125)
      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:932)
      7. com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:275)
      8. com.javahollic.jira.emh.service.reprocessing.AuditHistoryNecromancer.reanimate(AuditHistoryNecromancer.java:85)
      9. com.javahollic.jira.emh.service.DefaultJEMHAuditHistoryReprocessingManager.reanimate(DefaultJEMHAuditHistoryReprocessingManager.java:231)
      10. com.javahollic.jira.emh.rest.api.auditing.Auditing.doReanimate(Auditing.java:136)
      10 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames