使用OpenOffic在线转换文档错误

如果报如下异常可能是服务器没有安装VC++ 2008运行时的原因

[BPM] 2013-11-04 08:40:00 ERROR DocConvertJob  : ***** 异常信息 ***** 方法:switchDocToSwf at switch office to pdf
org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:64)
     at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:101)
     at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:62)
     at com.muduo.core.job.DocConvertJob.execute(DocConvertJob.java:69)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:206)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:548)
Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
     at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
     at java.util.concurrent.FutureTask.get(FutureTask.java:83)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:62)
     ... 5 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:142)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000(ManagedOfficeProcess.java:31)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(ManagedOfficeProcess.java:58)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Cannot run program "C:\dev\main\apache-tomcat-6.0.35\webapps\ROOT\include\OpenOffice\program\soffice.bin": CreateProcess error=14001, ӦÓóÌÐòÎ޷¨Æô¶¯£¬ÒòΪӦÓóÌÐòµIJ¢ÐÐÅäÖò»Õýȷ¡£ÓйØÏêϸÐÅϢ£¬Çë²ÎÔÄӦÓóÌÐòʼþÈÕ־£¬»òʹÓÃÃüÁîÐ
     at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
     at org.artofsolving.jodconverter.office.OfficeProcess.start(OfficeProcess.java:93)
     at org.artofsolving.jodconverter.office.OfficeProcess.start(OfficeProcess.java:60)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:119)
     ... 8 more
Caused by: java.io.IOException: CreateProcess error=14001, ӦÓóÌÐòÎ޷¨Æô¶¯£¬ÒòΪӦÓóÌÐòµIJ¢ÐÐÅäÖò»Õýȷ¡£ÓйØÏêϸÐÅϢ£¬Çë²ÎÔÄӦÓóÌÐòʼþÈÕ־£¬»òʹÓÃÃüÁîÐ
     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:453)
     ... 11 more
[BPM] 2013-11-04 08:40:00 ERROR DocConvertJob  : ***** 异常信息 ***** 方法:DocConvertJob execute
org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.stopAndWait(ManagedOfficeProcess.java:77)
     at org.artofsolving.jodconverter.office.PooledOfficeManager.stop(PooledOfficeManager.java:108)
     at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.stop(ProcessPoolOfficeManager.java:91)
     at com.muduo.core.job.DocConvertJob.execute(DocConvertJob.java:84)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:206)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:548)
Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not terminate process
     at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
     at java.util.concurrent.FutureTask.get(FutureTask.java:83)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.stopAndWait(ManagedOfficeProcess.java:75)
     ... 5 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: could not terminate process
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doTerminateProcess(ManagedOfficeProcess.java:174)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStopProcess(ManagedOfficeProcess.java:154)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$100(ManagedOfficeProcess.java:31)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess$2.run(ManagedOfficeProcess.java:71)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
     at org.artofsolving.jodconverter.process.PureJavaProcessManager.kill(PureJavaProcessManager.java:28)
     at org.artofsolving.jodconverter.office.OfficeProcess.forciblyTerminate(OfficeProcess.java:207)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doTerminateProcess(ManagedOfficeProcess.java:171)
     ... 9 more
[BPM] 2013-11-04 09:51:45 ERROR DocConvertJob  : ***** 异常信息 ***** 方法:switchDocToSwf at switch office to pdf
org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:64)
     at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:101)
     at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:62)
     at com.muduo.core.job.DocConvertJob.execute(DocConvertJob.java:69)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:206)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:548)
Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
     at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
     at java.util.concurrent.FutureTask.get(FutureTask.java:83)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:62)
     ... 5 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:142)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000(ManagedOfficeProcess.java:31)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(ManagedOfficeProcess.java:58)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Cannot run program "C:\dev\main\apache-tomcat-6.0.35\webapps\ROOT\include\OpenOffice\program\soffice.bin": CreateProcess error=14001, ӦÓóÌÐòÎ޷¨Æô¶¯£¬ÒòΪӦÓóÌÐòµIJ¢ÐÐÅäÖò»Õýȷ¡£ÓйØÏêϸÐÅϢ£¬Çë²ÎÔÄӦÓóÌÐòʼþÈÕ־£¬»òʹÓÃÃüÁîÐ
     at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
     at org.artofsolving.jodconverter.office.OfficeProcess.start(OfficeProcess.java:93)
     at org.artofsolving.jodconverter.office.OfficeProcess.start(OfficeProcess.java:60)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:119)
     ... 8 more
Caused by: java.io.IOException: CreateProcess error=14001, ӦÓóÌÐòÎ޷¨Æô¶¯£¬ÒòΪӦÓóÌÐòµIJ¢ÐÐÅäÖò»Õýȷ¡£ÓйØÏêϸÐÅϢ£¬Çë²ÎÔÄӦÓóÌÐòʼþÈÕ־£¬»òʹÓÃÃüÁîÐ
     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:453)
     ... 11 more
[BPM] 2013-11-04 09:51:45 ERROR DocConvertJob  : ***** 异常信息 ***** 方法:DocConvertJob execute
org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.stopAndWait(ManagedOfficeProcess.java:77)
     at org.artofsolving.jodconverter.office.PooledOfficeManager.stop(PooledOfficeManager.java:108)
     at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.stop(ProcessPoolOfficeManager.java:91)
     at com.muduo.core.job.DocConvertJob.execute(DocConvertJob.java:84)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:206)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:548)
Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not terminate process
     at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
     at java.util.concurrent.FutureTask.get(FutureTask.java:83)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.stopAndWait(ManagedOfficeProcess.java:75)
     ... 5 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: could not terminate process
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doTerminateProcess(ManagedOfficeProcess.java:174)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStopProcess(ManagedOfficeProcess.java:154)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$100(ManagedOfficeProcess.java:31)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess$2.run(ManagedOfficeProcess.java:71)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
     at org.artofsolving.jodconverter.process.PureJavaProcessManager.kill(PureJavaProcessManager.java:28)
     at org.artofsolving.jodconverter.office.OfficeProcess.forciblyTerminate(OfficeProcess.java:207)
     at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doTerminateProcess(ManagedOfficeProcess.java:171)
     ... 9 more

你可能感兴趣的:(open)