You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2018/11/02 07:26:00 UTC

[jira] [Resolved] (KARAF-5989) Error while sending email because of javax.activation

     [ https://issues.apache.org/jira/browse/KARAF-5989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved KARAF-5989.
---------------------------------
    Resolution: Fixed

> Error while sending email because of javax.activation
> -----------------------------------------------------
>
>                 Key: KARAF-5989
>                 URL: https://issues.apache.org/jira/browse/KARAF-5989
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.1
>            Reporter: Nicolas Dutertry
>            Assignee: Freeman Fang
>            Priority: Major
>             Fix For: 4.2.2
>
>
> It is not possible to send email in Karaf 4.2 with javax.mail API. When an email is sent, this exception is raised:
> {code:java}
> javax.mail.MessagingException: IOException while sending message;
>   nested exception is:
>      javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;{code}
> I’ve found that it is because the Activation Framework (javax.activation) is not OSGI compliant. In the previous Karaf version (4.1) a servicemix implementation of the Activation Framework was included but it is not the case anymore. 
> The solution to have a working Activation Framework is to remove javax.activation references in jre.properties and to install the bundle org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0.
> For the future Karaf 4.2.2 can you please:
>  * Remove javax.activation from jre.properties
>  * Remove activation-1.1.1.jar from directory lib/boot
>  * Let the user install org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0 if needed



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)