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(); :