Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5989

Error while sending email because of javax.activation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.1
    • 4.2.2
    • karaf
    • None

    Description

      It is not possible to send email in Karaf 4.2 with javax.mail API. When an email is sent, this exception is raised:

      javax.mail.MessagingException: IOException while sending message;
        nested exception is:
           javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;

      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

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            nicolas.dutertry Nicolas Dutertry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: