Making JODConverter more robust/reliable

412 views
Skip to first unread message

Zhivko

unread,
Feb 19, 2010, 8:11:57 AM2/19/10
to JODConverter
Is it possible to configure jodconverter in a way that it would hold
two open office instances - to allow that whole solution will be more
reliable?
When first instance would restart (because of maxTasksPerProcess)
second one will still be responsive.

Mirko Nasato

unread,
Feb 20, 2010, 9:19:58 AM2/20/10
to JODConverter
Yes:

OfficeManager officeManager = new
DefaultOfficeManagerConfiguration()
.setPortNumbers(2002, 2003)
.buildOfficeManager();

Kind regards

Mirko

Zhivko

unread,
Feb 22, 2010, 4:46:11 AM2/22/10
to JODConverter
Thanks Mirko, I tried that option and it works well when I have only
one client doing one request after another.

If I have more clients let's say 3 of them I sometimes get:
"could not store document: tempPdf_284.pdf; errorCode: 1287"
But as you already mentioned somewhere (maybe in FAQ) it is the issue
of open office.

Did you ever get similar response? Do you have some idea how to
resolve this bug? I can see that other users also got similar problem:

http://user.services.openoffice.org/en/forum/viewtopic.php?f=20&t=25308&p=126715#p126715

Tested on:
Ubuntu 9.10
Apache Tomcat Version 6.0.20
java-6-sun-1.6.0.15

Mirko Nasato

unread,
Feb 23, 2010, 5:48:31 PM2/23/10
to JODConverter
No errorCode: 1287 in my server logs, just a few occurrences of
errorCode: 2074 (usually due to bad input).

Kind regards

Mirko

On Feb 22, 10:46 am, Zhivko <klemenzivko...@gmail.com> wrote:
> Thanks Mirko, I tried that option and it works well when I have only
> one client doing one request after another.
>
> If I have more clients let's say 3 of them I sometimes get:
> "could not store document: tempPdf_284.pdf; errorCode: 1287"
> But as you already mentioned somewhere (maybe in FAQ) it is the issue
> of open office.
>
> Did you ever get similar response? Do you have some idea how to
> resolve this bug? I can see that other users also got similar problem:
>

> http://user.services.openoffice.org/en/forum/viewtopic.php?f=20&t=253...

Zhivko

unread,
Jan 30, 2013, 5:48:28 AM1/30/13
to jodcon...@googlegroups.com
Hi everybody,

took me long time to fix this - error was caused by using same filename in two different converting threads - when I add random number in converted pdf filename - no errorCode: 1287 from openoffice anymore.

Thanks Mirko GREAT product - I am using 10 openoffice threads on centos 64 bit within single apache tomcat instance.

Zhivko

Dne torek, 23. februar 2010 23:48:31 UTC+1 je oseba Mirko Nasato napisala:
Reply all
Reply to author
Forward
0 new messages