Converting .docx with a few images to .pdf results in a timout exception on Windows 7

776 views
Skip to first unread message

Stephan

unread,
May 24, 2010, 12:52:30 PM5/24/10
to JODConverter
Hello,
I am using the latest JODConverter 3.x build from svn with Open Office
3.2.
Trying to convert a .docx with a few images to a PDF results in a
timeout exception.

Exception in thread "main"
org.artofsolving.jodconverter.office.OfficeException: task did not
complete within timeout
at
org.artofsolving.jodconverter.office.PooledOfficeManager.execute(PooledOfficeManager.java:
89)
at
org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.execute(ProcessPoolOfficeManager.java:
76)
at
org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:
76)
at
org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:
67)
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(PooledOfficeManager.java:
86)
... 4 more

It seems not to be a Open Office problem, becaus it works fine if
converting manualy.

Reducing the images of the sample .docx to 4 "solves" the failure. A
700 page .docx text only document works without problems.

On Centos 5 it works fine, too. Even a .docx with a lot of images. It
seems to be a Windows problem.

I will attach my test.docx file. Perhaps someone can test a conversion
to a PDF on Windows 7 or any other Windows.

Link to test.docx:
http://groups.google.com/group/jodconverter/web/test.docx

Best regards,

Stephan

--
You received this message because you are subscribed to the Google Groups "JODConverter" group.
To post to this group, send email to jodcon...@googlegroups.com.
To unsubscribe from this group, send email to jodconverter...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jodconverter?hl=en.

Marcos Passos

unread,
Jul 7, 2010, 8:52:00 AM7/7/10
to JODConverter
I have same problem, even when I try with the doc too. Someone knows
how to solve?

Filipe Queirós

unread,
Jun 4, 2014, 10:26:42 AM6/4/14
to jodcon...@googlegroups.com
anyone have the anwser? i have same problem.

Kamal C

unread,
Jun 24, 2014, 4:54:39 AM6/24/14
to jodcon...@googlegroups.com
Hi Team,

Iam also getting the similar error related to this issue....

WARNING: connection lost unexpectedly; attempting restart
org.artofsolving.jodconverter.office.OfficeException: task failed
at org.artofsolving.jodconverter.office.PooledOfficeManager.execute(PooledOfficeManager.java:96)
at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.execute(ProcessPoolOfficeManager.java:78)
at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:78)
at com.awpl.jod.use.ConvertDocument.convertAWPLDocument(ConvertDocument.java:245)
at com.awpl.jod.use.ConvertDocument.convertDocumentFrm1Type2OtherType(ConvertDocument.java:124)
at com.awpl.jod.use.ConvertDocument.main(ConvertDocument.java:46)
Caused by: java.util.concurrent.CancellationException
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.artofsolving.jodconverter.office.PooledOfficeManager.execute(PooledOfficeManager.java:85)
... 5 more
Jun 24, 2014 2:22:12 PM org.artofsolving.jodconverter.office.ManagedOfficeProcess doEnsureProcessExited
INFO: process exited with code 0
Exception in thread "main" org.artofsolving.jodconverter.office.OfficeException: task failed
at org.artofsolving.jodconverter.office.PooledOfficeManager.execute(PooledOfficeManager.java:96)
at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.execute(ProcessPoolOfficeManager.java:78)
at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:78)
at com.awpl.jod.use.ConvertDocument.convertAWPLDocument(ConvertDocument.java:245)
at com.awpl.jod.use.ConvertDocument.convertDocumentFrm1Type2OtherType(ConvertDocument.java:124)
at com.awpl.jod.use.ConvertDocument.main(ConvertDocument.java:46)
Caused by: java.util.concurrent.CancellationException
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.artofsolving.jodconverter.office.PooledOfficeManager.execute(PooledOfficeManager.java:85)
... 5 more
Any help will be greatly appreciated.

Thanks
Kamal

chao chen

unread,
Mar 17, 2015, 10:36:14 PM3/17/15
to jodcon...@googlegroups.com
windows 7 / linux, OpenOffice 4, JODConverter 3.x
problem:

task did not complete within timeout

I set executeTimeout to 10min, but failed again.

I open the docx or doc from OpenOffice. And convert the files to pdf manually, it works.
But how to do in my code?
Reply all
Reply to author
Forward
0 new messages