manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONNECTORS-1421) Email Job is Down Because of an Error
Date Sat, 29 Apr 2017 00:48:04 GMT

    [ https://issues.apache.org/jira/browse/CONNECTORS-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15989658#comment-15989658
] 

Karl Wright commented on CONNECTORS-1421:
-----------------------------------------

The code in question is as follows:

{code}
  /** Handle Messaging exceptions in a consistent global manner */
  protected static void handleMessagingException(MessagingException e, String context)
    throws ManifoldCFException, ServiceInterruption
  {
    Logging.connectors.error("Email: Error "+context+": "+e.getMessage(),e);
    throw new ManifoldCFException("Error "+context+": "+e.getMessage(),e);
  }
{code}

This will need to be modified to throw a ServiceInterruption instead when the above condition
arises.


> Email Job is Down Because of an Error
> -------------------------------------
>
>                 Key: CONNECTORS-1421
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1421
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Email connector
>    Affects Versions: ManifoldCF 2.7
>            Reporter: Cihad Guzel
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 2.8
>
>
> I have created an email job that runs continuously.  I have an error downing my job for
a reason. Because it is a job that needs to be continuously run, errors should be handled
 and the job shouldn't be downed.
> My error as follow:
> {noformat}
> ERROR 2017-04-25T14:25:44,475 (Seeding thread) - Exception tossed: Error finding emails:
* BYE JavaMail Exception: java.io.IOException: Connection dropped by server?
> org.apache.manifoldcf.core.interfaces.ManifoldCFException: Error finding emails: * BYE
JavaMail Exception: java.io.IOException: Connection dropped by server?
> 	at org.apache.manifoldcf.crawler.connectors.email.EmailConnector.handleMessagingException(EmailConnector.java:1721)
~[?:?]
> 	at org.apache.manifoldcf.crawler.connectors.email.EmailConnector.addSeedDocuments(EmailConnector.java:335)
~[?:?]
> 	at org.apache.manifoldcf.crawler.system.SeedingThread.run(SeedingThread.java:150) [classes/:?]
> Caused by: javax.mail.MessagingException: * BYE JavaMail Exception: java.io.IOException:
Connection dropped by server?
> 	at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:961) ~[mail-1.4.5.jar:1.4.5]
> 	at org.apache.manifoldcf.crawler.connectors.email.EmailSession.openFolder(EmailSession.java:99)
~[?:?]
> 	at org.apache.manifoldcf.crawler.connectors.email.EmailConnector$OpenFolderThread.run(EmailConnector.java:1981)
~[?:?]
> Caused by: com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: java.io.IOException:
Connection dropped by server?
> 	at com.sun.mail.iap.Protocol.handleResult(Protocol.java:356) ~[mail-1.4.5.jar:1.4.5]
> 	at com.sun.mail.imap.protocol.IMAPProtocol.examine(IMAPProtocol.java:886) ~[mail-1.4.5.jar:1.4.5]
> 	at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:925) ~[mail-1.4.5.jar:1.4.5]
> 	at org.apache.manifoldcf.crawler.connectors.email.EmailSession.openFolder(EmailSession.java:99)
~[?:?]
> 	at org.apache.manifoldcf.crawler.connectors.email.EmailConnector$OpenFolderThread.run(EmailConnector.java:1981)
~[?:?]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message