问题与OpenOffice,JOD转换器,CentOS上的Docsplit

时间:2010-10-11 19:04:00

标签: java linux centos openoffice.org centos5

我已按照指示从此处安装Docsplit(当然考虑到CentOS的差异):http://documentcloud.github.com/docsplit

我想我已安装了所有必需的软件包,但是当我运行“docsplit pdf”将Word文档转换为PDF时,我收到此错误:

Exception in thread "main" org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
 at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:61)
 at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:102)
 at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:59)
 at org.artofsolving.jodconverter.cli.Convert.main(Convert.java:98)
Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
 at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
 at java.util.concurrent.FutureTask.get(FutureTask.java:111)
 at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:59)
 ... 3 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
 at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:123)
 at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000(ManagedOfficeProcess.java:31)
 at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(ManagedOfficeProcess.java:55)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:636)
Caused by: org.artofsolving.jodconverter.office.RetryTimeoutException: java.net.ConnectException: connection failed: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'; java.net.ConnectException: Connection refused
 at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:48)
 at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:31)
 at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:113)
 ... 8 more
Caused by: java.net.ConnectException: connection failed: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'; java.net.ConnectException: Connection refused
 at org.artofsolving.jodconverter.office.OfficeConnection.connect(OfficeConnection.java:101)
 at org.artofsolving.jodconverter.office.ManagedOfficeProcess$6.attempt(ManagedOfficeProcess.java:116)
 at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:41)
 ... 10 more

对于它的价值,我在OS X和我设置的Ubuntu VM中都能完美地工作。但是CentOS让我对这些东西感到非常悲痛。我该如何解决?

2 个答案:

答案 0 :(得分:1)

我在red hat中遇到同样的问题,我安装了openoffice.org-headless- * .rpm包,一切都好。

答案 1 :(得分:-1)

您可以尝试使用Docmosis或JODConverter来提供帮助。他们都坐在openoffice上来制作文件。