Unable to process conversion by multiple user at same time JOD converter + libraoffice

89 views
Skip to first unread message

bhagvati k

unread,
May 9, 2023, 2:09:17 PM5/9/23
to JODConverter
I'm trying to convert document to PDF using JOD converter + libraoffice. it seem to be working fine while it tested. but while 2 user trying to use it at same time it seems to be throwing the error.

Exception: \"InvokerInvocationException\", Message: \"org.jodconverter.core.office.OfficeException: Task
was cancelled: LocalConversionTask

   LocalOfficeManager officeManager = LocalOfficeManager.builder()
    .portNumbers(2002, 2003, 2004, 2005)
    .officeHome("//opt//libreoffice7.5")
    .maxTasksPerProcess(200)
    .existingProcessAction(ExistingProcessAction.CONNECT)
    .install()
    .build();

do i need to check is my port open? bcoz i just copied the code of port from one of the website.

Please help me out. 
Reply all
Reply to author
Forward
0 new messages