What version of Fuse do you use? And what product, eg Fuse ESB I would assume. Or Fuse ESB Enterprise.
I am using Fuse ESB (7.0.0.fuse-061)
I think this has been fixed for the upcoming 7.0.1 release.
As a fix on your 7.0.0 release you can try to modify the etc/jre.properties file. And comment out the javax.activation package, eg
And then delete the data directory. And restart the ESB.
The solution works!
However after I deleted the data folder and modified the properties file, fuseesb would not restart, fuseesb.bat would hang with messages like these:
osgi.framework.BundleException: Unresolved constraint in bundle org.apache.karaf
>=0.10.0)(!(version>=1.0.0))) [caused by: Unable to resolve 19.0: missing requir
org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.k
sion>=0.10.0)(!(version>=1.0.0))) [caused by: Unable to resolve 19.0: missing re
I had to reinstall the entire Fuse system, redo the two steps, and email attachment works.
Has the issue been fixed? I have the same error on Fuse ESB 7.1.0.
I've tried the suggested solution, but I received the following error:
Caused by: java.lang.LinkageError: loader constraint violation: when resolving interface method "org.apache.camel.Message.addAttachment(Ljava/lang/String;Ljavax/activation/DataHandler;)V" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, MyBean, and the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for resolved class, org/apache/camel/Message, have different Class objects for the type javax/activation/DataHandler used in the signature
By the way, my bundle has worked perfectly on Fuse ESB/ServiceMix 4.4.1.
I've added javax.activation;version=1.1 to Import-Package and now it finally works.