【发布时间】:2015-01-06 06:40:42
【问题描述】:
我正在尝试如下设置附件:
<set-attachment attachmentName="abc" value="#[contents]" contentType="#[fileType]" doc:name="Attachment"/>
contentType 恰好是 application/pdf。对于 .pdf 和 .doc 文件,我收到以下错误。 text/plain 文件可以通过。
- 没有 MIME 类型应用程序/pdf 的对象 DCH (javax.activation.UnsupportedDataTypeException) javax.activation.ObjectDataContentHandler:891 (http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/activation/UnsupportedDataTypeException.html)
- 无法写入附件。 (org.apache.cxf.interceptor.Fault) org.apache.cxf.interceptor.AttachmentOutInterceptor$AttachmentOutEndingInterceptor:105 (null)
知道如何允许应用程序/pdf 和/或 .doc 文件吗?非常感谢您的帮助。
【问题讨论】:
-
您呈现了一个不完整的流程。很难判断您对邮件及其附件做了什么。
标签: mule attachment mime