如何增加在Adobe的LiveCycle服务器事务超时?长期服务调用失败,超时异常
题
我们正在将使用Adobe的LiveCycle ConvertPDF服务大PDF文件。
这工作正常较小的PDF文件,但是当我们尝试转换一个大的PDF文件失败(150MB左右 - 不问)
。它看起来像Adobe设置约14(?)分钟事务超时。至于处理时间为我们庞大的PDF超过这个时间,手术中止。 我们试图多个PDF,所以这是不可能由损坏输入文件而引起的。
下面是例外产生输出:
com.adobe.livecycle.convertpdfservice.exception.ConvertPdfException: ALC-DSC-000-000: com.adobe.idp.dsc.DSCException: Internal error.
at com.adobe.convertpdf.docservice.ConvertPdfServiceImpl.toPS2WithSMT(ConvertPdfServiceImpl.java:117)
at com.adobe.convertpdf.docservice.ConvertPdfServiceImpl.toPS2(ConvertPdfServiceImpl.java:93)
[...]
Caused by: ALC-DSC-000-000: com.adobe.idp.dsc.DSCException: Internal error.
at com.adobe.convertpdf.docservice.ConvertPdfServiceImpl$1.doInTransaction(ConvertPdfServiceImpl.java:110)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew(EjbTransactionBMTAdapterBean.java:218)
[...]
Caused by: com.adobe.livecycle.convertpdfservice.exception.ConvertPdfException: Cannot convert PDF file to PostScript.
Exception: "Transaction timed out: Couldn't connect to Datamanager Service"
at com.adobe.convertpdf.ConvertPdfBmcWrapper.convertPdftoPs(ConvertPdfBmcWrapper.java:207)
at com.adobe.convertpdf.ConvertPdfServer.convertPdftoPs(ConvertPdfServer.java:121)
at com.adobe.convertpdf.docservice.ConvertPdfServiceImpl.toPS2InTxn(ConvertPdfServiceImpl.java:129)
[...]
到目前为止 - 似乎是合乎逻辑
然而,我无法找到其中事务长度配置。我想,如果我们增加了超时像30分钟后,我们的问题就会消失。 (同样的问题会消失,如果我们有调用这个操作没有任何交易的方式......)
比方说,我们只运行这样的:
ServiceClientFactory factory = com.adobe.idp.dsc.clientsdk.ServiceClientFactory.createInstance(connectionProps);
ConvertPdfServiceClient convertPDFClient = new com.adobe.livecycle.convertpdfservice.client.ConvertPdfServiceClient(factory);
// ... set-up details skipped ...
com.adobe.idp.Document result_postscript = convertPDFClient.toPS2(inPdf,options);
result_postscript.copyToFile(new File("c:/Adobe/output.ps"))
然而,无论是我们没有正确设置ServiceClientFactory,或许不是正确读取JBoss的配置,我们无法找到办法,使交易更长寿。 (在事务的生存时间真正的问题?)
解决方案
在的LiveCycle管理控制台简单地去 首页>服务>应用和服务>服务管理> ConvertPdfService
在服务超时可以有改变。
当与转换PDF(用Itext生成)测试包含39K页面(13初始,每个克隆的3000倍,大小为15兆字节〜)-Final输出PostScript文件为〜1,25Gb。整个工作历时约2小时。但它的工作,没有任何问题。
(我想这个答案让这个问题不编程相关的,但嘿。)
其他提示
在的LiveCycle产品博客此项目也可能有帮助: http://blogs.adobe.com/livecycle/2008/10/livecycle_processing_big_docum。 HTML
不隶属于 StackOverflow