You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2009/02/20 05:16:00 UTC

[jira] Commented: (SMX4-224) ServiceMix-Mail is unable to find specific providers for protocols like imaps

    [ https://issues.apache.org/activemq/browse/SMX4-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49806#action_49806 ] 

Freeman Fang commented on SMX4-224:
-----------------------------------

Only shade the needed geronimo mail bundle isn't enough, we need some meta file to 
1. work with OsgiLocator used in javamail-api-1.4 bundle to load protocol provider classes 
2. work with OsgiLocator used in activation-api-1.1 bundle to load DatatypeHandler classes
in osgi evn
that's why we need wrap it like it's done now.

Already explain on irc, but still put here to track this issue

> ServiceMix-Mail is unable to find specific providers for protocols like imaps
> -----------------------------------------------------------------------------
>
>                 Key: SMX4-224
>                 URL: https://issues.apache.org/activemq/browse/SMX4-224
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.0-m1, 4.0-m2
>         Environment: ServiceMix 4
>            Reporter: Lars Heinemann
>            Assignee: Lars Heinemann
>            Priority: Critical
>             Fix For: 4.0-m2
>
>
> {noformat}
> 16:19:17,606 | ERROR | ix-mail-thread-3 | MailComponent                    | common.endpoints.PollingEndpoint  222 | Caught exception while polling: javax.mail.NoSuchProviderException: Unable to locate provider for protocol: imaps
> javax.mail.NoSuchProviderException: Unable to locate provider for protocol: imaps
>         at javax.mail.Session.getProvider(Session.java:241)
>         at javax.mail.Session.getStore(Session.java:282)
>         at org.apache.servicemix.mail.MailPollerEndpoint.poll(MailPollerEndpoint.java:191)
>         at org.apache.servicemix.common.endpoints.PollingEndpoint$PollSchedulerTask$1.run(PollingEndpoint.java:202)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> {noformat}
> Installing the bundle :
> {noformat}
> <groupId>org.apache.servicemix.bundles</groupId>
> <artifactId>org.apache.servicemix.bundles.geronimo-javamail_1.4_provider</a$
> <version>1.6_2-SNAPSHOT</version>
> {noformat}
> has also no effects.
> The needed bundle(s) should be added to the "servicemix-mail" feature to avoid such errors in future.

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