[
https://issues.apache.org/jira/browse/SM-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gert Vanthienen resolved SM-1847.
---------------------------------
Resolution: Fixed
Assignee: Gert Vanthienen (was: Jean-Baptiste Onofré)
It's been over 2 years since this got raised so it might not be that relevant
any more, but I still committed a fix in
http://svn.apache.org/viewvc?view=revision&revision=1147181
> Executor service silently swallows any Errors being thrown from Runnable task
> -----------------------------------------------------------------------------
>
> Key: SM-1847
> URL: https://issues.apache.org/jira/browse/SM-1847
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-utils
> Affects Versions: 3.2.3, 3.3
> Reporter: Gert Vanthienen
> Assignee: Gert Vanthienen
> Fix For: servicemix-utils-1.5.0
>
>
> When an Error is thrown from within a Runnable submitted to the Executor
> service, the Error is silently ignored and there's even no log message for it.
> An example (i.e. the way I found out about this):
> If you write a custom FTP marshaler that used JAXB 2.1 and then run it on an
> early JDK 1.6 machine will give you a LinkageError. However, the Error is
> thrown from the marshaler operation in the processFile() method, but is never
> caught anywhere in the poller code (catches Exceptions but no Errors). In
> the end, the threadpool executor kills the thread but there's no trace of the
> Error
> I would suggest implementing a generic catch-log-and-rethrow-Throwable in the
> servicemix-utils ExecutorImpl to make sure we at least have some log entry to
> show the exceptions/errors
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira