-
Bug Report
-
Resolution: Won't Fix
-
L3 - Default
-
None
-
7.10.x
-
None
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.