timolee / jodconverter

Automatically exported from code.google.com/p/jodconverter
0 stars 0 forks source link

taskExecutionTimeout is too short #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I used the following command:
/opt/java/bin/java -client -Doffice.home="/usr/lib/openoffice" -jar
../lib/jodconverter-core-3.0-beta-3.jar doc/full-V1.doc pdf/full-V1-4.pdf
2. Try to convert from .Doc to .Pdf the document attached in less than 2
minutes, using JodConverter 3.0.

What is the expected output? What do you see instead?

Well, I knew that the attached document was long to convert. However, I
thought the expression Timeout involved, in a loop, the period during which
the same statement had not been invoked two time. Maybe I identified with
the principle of Watchdog, and 2 min is enough for a watchdog. So, what i
can see is theses logs:

12 janv. 2010 16:01:32
org.artofsolving.jodconverter.office.ProcessPoolOfficeManager <init>
INFO: ProcessManager implementation is UnixProcessManager
12 janv. 2010 16:01:32 org.artofsolving.jodconverter.office.OfficeProcess start
INFO: starting process with acceptString
'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir
'/tmp/.jodconverter_socket_host-127.0.0.1_port-2002'
12 janv. 2010 16:01:32 org.artofsolving.jodconverter.office.OfficeProcess start
INFO: started process; pid = 9583
12 janv. 2010 16:01:33
org.artofsolving.jodconverter.office.OfficeConnection connect
INFO: connected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
12 janv. 2010 16:03:33
org.artofsolving.jodconverter.office.ProcessPoolOfficeManager stop
INFO: stopping
12 janv. 2010 16:03:33 org.artofsolving.jodconverter.office.OfficeProcess
forciblyTerminate
INFO: trying to forcibly terminate process:
'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' (pid 9583)
12 janv. 2010 16:03:33
org.artofsolving.jodconverter.office.OfficeConnection$1 disposing
INFO: disconnected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
12 janv. 2010 16:03:33
org.artofsolving.jodconverter.office.ManagedOfficeProcess doTerminateProcess
INFO: process forcibly terminated with code 137
12 janv. 2010 16:03:33 org.artofsolving.jodconverter.office.OfficeProcess
forciblyTerminate
INFO: trying to forcibly terminate process:
'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' (pid 9583)
12 janv. 2010 16:03:33
org.artofsolving.jodconverter.office.ManagedOfficeProcess doTerminateProcess
INFO: process forcibly terminated with code 137
12 janv. 2010 16:03:33
org.artofsolving.jodconverter.office.ManagedOfficeProcess doEnsureProcessExited
INFO: process exited with code 137
12 janv. 2010 16:03:33
org.artofsolving.jodconverter.office.ProcessPoolOfficeManager stop
INFO: stopped
Exception in thread "main"
org.artofsolving.jodconverter.office.OfficeException: task did not complete
within timeout
    at
org.artofsolving.jodconverter.office.PooledOfficeManager.execute(PooledOfficeMan
ager.java:89)
    at
org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.execute(ProcessPoo
lOfficeManager.java:75)
    at
org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConv
erter.java:75)
    at
org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConv
erter.java:66)
    at org.artofsolving.jodconverter.cli.Convert.main(Convert.java:104)
Caused by: java.util.concurrent.TimeoutException
    at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:228)
    at java.util.concurrent.FutureTask.get(FutureTask.java:91)
    at
org.artofsolving.jodconverter.office.PooledOfficeManager.execute(PooledOfficeMan
ager.java:86)
    ... 4 more

What version of the product are you using? On what operating system?

I'm using JodConverter 3.0-beta-3 on Linux 2.6.28-17-server #58-Ubuntu SMP
and OpenOffice 3.0.1 OOO300m15 (Build:9379) installed with Ubuntu-jaunty
packages.

Please provide any additional information below.

I know how to modify source file and build another JAR? but, can we add a
properties file instead of command line parameters, and how to do this ?

Original issue reported on code.google.com by libri...@gmail.com on 12 Jan 2010 at 3:06

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mirko.na...@gmail.com on 15 Jan 2010 at 4:42