这是我们在 4 个并行流(和 4 个 Libreoffice 实例,在 docker 容器上运行)中使用 jodconverter 将 docx 转换为 pdf 时遇到的问题,并且在一些迭代后处理失败。错误是:
java.lang.NullPointerException: Could not open document: tempfile_39.docx
at org.apache.commons.lang3.Validate.notNull(Validate.java:225)
at org.jodconverter.local.task.AbstractLocalOfficeTask.loadDocument(AbstractLocalOfficeTask.java:118)
at org.jodconverter.local.task.LocalConversionTask.execute(LocalConversionTask.java:117)
at org.jodconverter.local.office.OfficeProcessManagerPoolEntry.doExecute(OfficeProcessManagerPoolEntry.java:187)
at org.jodconverter.core.office.AbstractOfficeManagerPoolEntry.lambda$execute$0(AbstractOfficeManagerPoolEntry.java:83)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
找不到与此相关的任何内容,因此创建了一个问题。