[
https://issues.apache.org/jira/browse/CAMEL-8339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang resolved CAMEL-8339.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.15.0
2.14.2
Applied the patch into camel master and camel-2.14.x branches with thanks to
Thomas.
> Usage of camel-mail depends on TCCL
> -----------------------------------
>
> Key: CAMEL-8339
> URL: https://issues.apache.org/jira/browse/CAMEL-8339
> Project: Camel
> Issue Type: Bug
> Components: camel-mail
> Affects Versions: 2.14.1
> Reporter: Thomas Diesler
> Assignee: Willem Jiang
> Fix For: 2.14.2, 2.15.0
>
>
> javax.mail.Session uses TCCL to load resources
> {code}
> Thread.getContextClassLoader() line: 1432 [local variables unavailable]
> Session$3.run() line: 1199
> AccessController.doPrivileged(PrivilegedAction<T>) line: not available
> [native method]
> Session.getContextClassLoader() line: 1194
> Session.loadAllResources(String, Class, StreamLoader) line: 1137
> Session.loadProviders(Class) line: 917
> Session.<init>(Properties, Authenticator) line: 216
> Session.getInstance(Properties, Authenticator) line: 242
> MailConfiguration.createJavaMailSender() line: 175
> MailEndpoint.createProducer() line: 71
> {code}
> Both MailConfiguration & MailProducer seem to rely on this
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)