Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2220

DIH: ClassCastException in MailEntityProcessor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.4, 1.4.1
    • None
    • None

    Description

      I hit ClassCastException in MailEntityProcessor, but it ignored due to the following catch block:

      private Map<String, Object> getDocumentFromMail(Message mail) {
        Map<String, Object> row = new HashMap<String, Object>();
        try {
          addPartToDocument(mail, row, true);
          return row;
        } catch (Exception e) {
          return null;
        }
      }
      

      The exception is "com.sun.mail.imap.IMAPInputStream cannot be cast to javax.mail.Multipart" in addPartToDocument() method:

      if (part.isMimeType("multipart/*")) {
        Multipart mp = (Multipart) part.getContent();
          :
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            koji Koji Sekiguchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: