Websphere 8.5.5.2 +没有对象DCH用于MIME类型application / octet-stream错误

时间:2016-02-01 07:35:06

标签: java websphere axis2 websphere-8

我已在WAS 8.5.5.2中部署了我的应用程序。我有以下错误。来自任何一方的任何输入。应用程序使用AXIS2 1.5.4版本来获取文档渲染器。在肥皂请求到VRS机器期间,我收到此错误。  WAS要求解决相同的任何配置..

WSRenderer    I   Calling getRendererRef(): renderer Type=[OutInRenderer]
WSRenderer    I   Start: 
WSRenderer    E   Unable to perform rendering due to exception (org.apache.axiom.om.OMException: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/octet-stream)
WSRenderer    E   stacktrace=org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:256)
                  org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:209)

代码:

Holder<String> errMsg = new Holder<String>();
ByteArrayInputStream bais = new ByteArrayInputStream(mRendererArgs.getData());
DataHandler idh = new DataHandler(bais, "application/octet-stream");
StringBuilder msg1= new StringBuilder();
renderReq.setInData(idh);
renderReq.setBstrFileName(mRendererArgs.getFileName());
renderReq.setPlBeginPage(plBeginPage.value);
renderReq.setPlEndPage(plEndPage.value);
renderReq.setPbstrImageType(pbstrImageType.value);
renderReq.setPpParams(new String[]{""});
//renderReq.setPpParams(new String[]{"zoomfactor","100","force8bits","0","conversiontype","1","height","800","width","1000","gettotalsubpages","0","quality","50"});
IMDVRSStub.RenderDocumentE renderReqE = new IMDVRSStub.RenderDocumentE();
renderReqE.setRenderDocument(renderReq);
ServiceClient sc = agentStub._getServiceClient();
Options options = sc.getOptions();
options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
sc.setOptions(options);
IMDVRSStub.RenderDocumentResponseE renderRespE = agentStub.renderDocument(renderReqE);
renderResp = renderRespE.getRenderDocumentResponse();

0 个答案:

没有答案