MIME类型为application/pdf的无对象DCH [英] Mule no object DCH for MIME type application/pdf

查看:117
本文介绍了MIME类型为application/pdf的无对象DCH的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试如下设置附件:

I am trying to Set an Attachment as below:

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

contentType恰好是application/pdf. .pdf和.doc文件出现以下错误.文本/普通文件通过ok.

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

  1. MIME类型为application/pdf的对象无DCH(javax.activation.UnsupportedDataTypeException) javax.activation.ObjectDataContentHandler:891( http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/activation/UnsupportedDataTypeException.html )
  2. 无法编写附件. (org.apache.cxf.interceptor.Fault) org.apache.cxf.interceptor.AttachmentOutInterceptor $ AttachmentOutEndingInterceptor:105(空)
  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)

有什么想法要允许应用程序/pdf和/或.doc文件吗?帮助将不胜感激.

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

推荐答案

这是某些依赖项的问题,我刚刚尝试使用3.5.2,它对于application/pdf来说工作正常. 请尝试下载最新和最好的版本.

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.

这篇关于MIME类型为application/pdf的无对象DCH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆