Jod Converter Web应用程序

时间:2014-06-17 13:37:06

标签: java web-applications pdf-generation websphere jodconverter

我有一个带有jodConverter的java应用程序。我可以将所有类型的扩展转换为PDF并且它运行良好但是当我将其作为Web应用程序时,在转换大文档时会发生超时。同一台计算机具有Web应用程序和正常应用程序。

普通应用程序,转换所有文档。 Web应用程序,不会转换大文档,最终会发生超时。

我使用websphere portal 7作为服务器。

有人对这个问题有所了解吗?

编辑:我尝试安装wildfly并且应用程序运行良好,所以问题可能出在websphere服务器上。

我有这个例外:

    org.artofsolving.jodconverter.office.OfficeException: task did not complete within timeout
 org.artofsolving.jodconverter.office.PooledOfficeManager.execute(PooledOfficeManager.java:88)
 org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.execute(ProcessPoolOfficeManager.java:78)
org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:78)
servlets.ConversorToPdf.converteFiles(ConversorToPdf.java:125)
 servlets.ConversorToPdf.processa(ConversorToPdf.java:71)
 servlets.ConversorToPdf.doGet(ConversorToPdf.java:55)
javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:937)
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
 com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
 com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
 com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
 com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
 com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
 com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
 com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
 com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)


Caused by: java.util.concurrent.TimeoutException
 java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:240)
java.util.concurrent.FutureTask.get(FutureTask.java:103)
org.artofsolving.jodconverter.office.PooledOfficeManager.execute(PooledOfficeManager.java:85)

0 个答案:

没有答案