Mule no object DCH for MIME type application/pdf

那年仲夏 提交于 2019-12-14 03:58:07

问题


I am trying to Set an Attachment as below:

<set-attachment attachmentName="abc" value="#[contents]" contentType="#[fileType]" doc:name="Attachment"/>

The contentType happens to be application/pdf. I get the following error for .pdf and .doc files. text/plain files go through ok.

  1. no object DCH for MIME type application/pdf (javax.activation.UnsupportedDataTypeException) javax.activation.ObjectDataContentHandler:891 (http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/activation/UnsupportedDataTypeException.html)
  2. Could not write attachments. (org.apache.cxf.interceptor.Fault) org.apache.cxf.interceptor.AttachmentOutInterceptor$AttachmentOutEndingInterceptor:105 (null)

Any idea how to allow for application/pdf and/or .doc files for that matter? Help would be greatly appreciated.


回答1:


This was a problem with some of the dependencies, I have just tried with 3.5.2 and it works fine for application/pdf. Please try downloading the lastest and greatest version.



来源:https://stackoverflow.com/questions/26835693/mule-no-object-dch-for-mime-type-application-pdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!