documentcloud / docsplit

Break Apart Documents into Images, Text, Pages and PDFs
http://documentcloud.github.io/docsplit/
Other
831 stars 214 forks source link

Docsplit on fedora x86_64 #9

Closed silkmoth closed 13 years ago

silkmoth commented 13 years ago

I installed docsplit on fedora with the instructions in the documentation page http://documentcloud.github.com/docsplit . I created a symbolic link:

ln -s /usr/lib64/openoffice.org3 /usr/lib/openoffice

but after that, docsplit works well except when i want to use the funtionalities of openoffice: for example docsplit text my_file.odt . Here is the error message:

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(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
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(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
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

I have tested the installation on ubuntu 10.10 and everything works. On Fedora there is no package/rpm for openoffice.org-java-common so i have unpacked a openoffice.org-java-comon.deb and added the missing files on the fedora system but i still have the same issue. Furthermore the version of Open Office is 3.2 on Ubuntu and 3.3 on Fedora. Is it related with the openoffice version ?

Please don't tell me to only use ubuntu.

Thanks (Sorry for my english)

silkmoth commented 13 years ago

After another tests it seems that docsplit is unable to launch the openoffice headless. if i launch

docsplit text my_file.odt

and while it is running launch this command:

soffice.bin -headless -accept="socket,host=127.0.0.1,port=2002;urp;"

the docsplit command work.

Have you got any ideas?

jashkenas commented 13 years ago

I'm afraid I don't have any ideas -- sorry about that. You might want to try debugging it by using JODConverter alone?