-
1. Re: Send email with attachment
davsclaus Jul 21, 2012 3:19 AM (in response to alexcmak)What version of Fuse do you use? And what product, eg Fuse ESB I would assume. Or Fuse ESB Enterprise.
-
2. Re: Send email with attachment
alexcmak Jul 21, 2012 8:58 AM (in response to davsclaus)I am using Fuse ESB (7.0.0.fuse-061)
-
3. Re: Send email with attachment
davsclaus Jul 22, 2012 9:16 AM (in response to alexcmak)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
#javax.activation;version="1.1", \
And then delete the data directory. And restart the ESB.
-
4. Re: Send email with attachment
alexcmak Jul 23, 2012 11:48 AM (in response to davsclaus)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:
ERROR: Bundle org.apache.karaf.diagnostic.command Error starting mvn:org.ap
ache.karaf.diagnostic/org.apache.karaf.diagnostic.command/2.2.5.fuse-7-061 (org.
osgi.framework.BundleException: Unresolved constraint in bundle org.apache.karaf
.diagnostic.command : Unable to resolve 37.0: missing requirement osg
i.wiring.package; (&(osgi.wiring.package=org.apache.felix.gogo.commands)(version
>=0.10.0)(!(version>=1.0.0))) [caused by: Unable to resolve 19.0: missing requir
ement osgi.wiring.package; (osgi.wiring.package=javax.security.auth)])
org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.k
araf.diagnostic.command : Unable to resolve 37.0: missing requirement
osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.gogo.commands)(ver
sion>=0.10.0)(!(version>=1.0.0))) [caused by: Unable to resolve 19.0: missing re
quirement osgi.wiring.package; (osgi.wiring.package=javax.security.auth)]
...
I had to reinstall the entire Fuse system, redo the two steps, and email attachment works.
-
5. Re: Send email with attachment
alexander.durnev Feb 6, 2013 8:25 AM (in response to alexcmak)Has the issue been fixed? I have the same error on Fuse ESB 7.1.0.
-
6. Re: Send email with attachment
alexander.durnev Feb 6, 2013 9:03 AM (in response to alexander.durnev)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.
-
7. Re: Send email with attachment
alexander.durnev Feb 7, 2013 1:02 AM (in response to alexander.durnev)I've added javax.activation;version=1.1 to Import-Package and now it finally works.