Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9364

LinkageError javax/activation/DataHandler

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Won't Fix
    • L3 - Default
    • None
    • 7.10.x
    • commons
    • None

    Description

      I'm testing our application on Wildfly14 with latest Camunda 7.10 Snapshot.

      This error message I got today:

      Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "javax.mail.BodyPart.setDataHandler(Ljavax/activation/DataHandler;)V"
       the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, biz/mbisoftware/fn/ejb/session/core/MailServiceSmtp, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for the method's defining class, javax/mail/Part, have different Class objects for the type javax/activation/DataHandler used in the signature
      

      Searching for occurences of javax/activation/DataHandler.class in the module jars we find

      • camunda-commons-typed-values-1.6.0.jar
      • activation-1.1.1.jar

      Due to this recent change
      https://github.com/camunda/camunda-commons/commit/cd747834ca8daa2ab175c991cea6b126ee255ab0#diff-3fa490f2e4a7ccad2e672a55df617570
      camunda-commons-typed-values-1.6.0.jar includes these classes and leeds to this conflict.

      After removing the javax and com classes from camunda-commons-typed-values-1.6.0.jar the problem did not appear again. Mail sending was succesful.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              langfr Frank Langelage
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce