当前位置: 代码迷 >> JBoss >> jboss+openkm 不能预览解决方案
  详细解决方案

jboss+openkm 不能预览解决方案

热度:10967   发布时间:2013-02-26 00:00:00.0
jboss+openkm 不能预览
openkm 预览异常,我的配置文件:
system.ocr=C:\\jboss-4.2.3.GA\\moremodules\\Tesseract-OCR
system.openoffice.path=C:\\jboss-4.2.3.GA\\moremodules\\OpenOffice.org 3
system.openoffice.tasks=5
system.openoffice.port=2222
system.imagemagick.convert=C:\\jboss-4.2.3.GA\\moremodules\\ImageMagick-6.7.2-Q16\\convert.exe
system.swftools.pdf2swf=C:\\jboss-4.2.3.GA\\moremodules\\SWFTools\\pdf2swf.exe
现在(.doc,.png,.xls)等文件转换成的pdf文件损坏,然后pdf就不能转为swf
异常信息:

com.openkm.core.ConversionException: IO exception executing command: C:\jboss-4.2.3.GA\moremodules\SWFTools -T 9 C:\jboss-4.2.3.GA\cache\pdf\7ed4dff6-0219-4812-bf3a-3e4f5e6b6947.pdf -o C:\jboss-4.2.3.GA\cache\swf\7ed4dff6-0219-4812-bf3a-3e4f5e6b6947.swf
at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:536)
at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:222)
at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Cannot run program "C:\jboss-4.2.3.GA\moremodules\SWFTools": CreateProcess error=5, ???·?
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at com.openkm.util.ExecutionUtils.runCmdImpl(ExecutionUtils.java:192)
at com.openkm.util.ExecutionUtils.runCmd(ExecutionUtils.java:171)
at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:526)
... 22 more
Caused by: java.io.IOException: CreateProcess error=5, ???·?
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 25 more

请大侠帮帮忙,谢谢!
------解决方案--------------------------------------------------------
检查你的system.swftools.pdf2swf配置,应该是C:\jboss-4.2.3.GA\moremodules\SWFTools\pdf2swf.exe
  相关解决方案