You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Jörn Kottmann (JIRA)" <ji...@apache.org> on 2010/01/07 12:16:20 UTC

[jira] Commented: (CAMEL-2339) ScheduledPollConsumer.run swallows Errors

    [ https://issues.apache.org/activemq/browse/CAMEL-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56802#action_56802 ] 

Jörn Kottmann commented on CAMEL-2339:
--------------------------------------

In the current trunk version 893138 the Runnable ScheduledPollConsumer is executed by a ScheduledExecutorService. In the case that an Error is thrown from the run method the ScheduledExecutorService stops executing the run method and the ScheduledPollConsumer silently stops polling without any notification.

Errors can usually not be handled, but they should be at least be printed to the console and logged.

> ScheduledPollConsumer.run swallows Errors
> -----------------------------------------
>
>                 Key: CAMEL-2339
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2339
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Jörn Kottmann
>
> We have a camel route which uses the mail component
> and polls from an IMAP mail server.
> Through a deployment mistake the javax.activation.DataSource
> class was not available and resulted in an
> java.lang.NoClassDefFoundError Error which was swallowed
> and not logged.
> This resulted in a silent failure of the mail component. 

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