lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi (JIRA)" <j...@apache.org>
Subject [jira] Created: (SOLR-2220) DIH: ClassCastException in MailEntityProcessor
Date Sat, 06 Nov 2010 04:48:42 GMT
DIH: ClassCastException in MailEntityProcessor
----------------------------------------------

                 Key: SOLR-2220
                 URL: https://issues.apache.org/jira/browse/SOLR-2220
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
    Affects Versions: 1.4.1, 1.4
            Reporter: Koji Sekiguchi


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

{code}
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;
  }
}
{code}

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

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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message