Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Issue with Open Office
Hi all.
I am facing an issue with Open Office and Liferay 7.1 and I am lost with it.I have a pdf document in Document Library, and when I try to previsualize it, it fails and show this on the logs:
It works fine for other documents.
Can anyone help me? Any idea would be very appreciated.
Thanks so much in advance.
Regards
I am facing an issue with Open Office and Liferay 7.1 and I am lost with it.I have a pdf document in Document Library, and when I try to previsualize it, it fails and show this on the logs:
WARN [liferay/document_library_pdf_processor-1][BaseProcessorMessageListener:40] Unable to process file version 52793736
com.liferay.petra.process.ProcessException: java.io.IOException: Cannot run program "java": error=2, No such file or directory
at com.liferay.petra.process.local.LocalProcessExecutor.execute(LocalProcessExecutor.java:122)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl._generateImagesPB(PDFProcessorImpl.java:706)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl._generateImages(PDFProcessorImpl.java:400)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl._generateImages(PDFProcessorImpl.java:429)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl.generateImages(PDFProcessorImpl.java:109)
at com.liferay.document.library.kernel.util.PDFProcessorUtil.generateImages(PDFProcessorUtil.java:34)
at com.liferay.portlet.documentlibrary.messaging.PDFProcessorMessageListener.generate(PDFProcessorMessageListener.java:30)
at com.liferay.portlet.documentlibrary.messaging.BaseProcessorMessageListener.doReceive(BaseProcessorMessageListener.java:36)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:752)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.IOException: Cannot run program "java": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.liferay.petra.process.local.LocalProcessExecutor.execute(LocalProcessExecutor.java:85)
... 13 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 15 more
2019-08-09 12:23:49.061 WARN [liferay/document_library_pdf_processor-1][BaseProcessorMessageListener:40] Unable to process file version 52793736
com.liferay.petra.process.ProcessException: java.io.IOException: Cannot run program "java": error=2, No such file or directory
at com.liferay.petra.process.local.LocalProcessExecutor.execute(LocalProcessExecutor.java:122)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl._generateImagesPB(PDFProcessorImpl.java:706)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl._generateImages(PDFProcessorImpl.java:400)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl._generateImages(PDFProcessorImpl.java:429)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl.generateImages(PDFProcessorImpl.java:109)
at com.liferay.document.library.kernel.util.PDFProcessorUtil.generateImages(PDFProcessorUtil.java:34)
at com.liferay.portlet.documentlibrary.messaging.PDFProcessorMessageListener.generate(PDFProcessorMessageListener.java:30)
at com.liferay.portlet.documentlibrary.messaging.BaseProcessorMessageListener.doReceive(BaseProcessorMessageListener.java:36)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:752)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.IOException: Cannot run program "java": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.liferay.petra.process.local.LocalProcessExecutor.execute(LocalProcessExecutor.java:85)
... 13 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 15 more
2019-08-09 12:24:29.351 WARN [liferay/document_library_pdf_processor-1][BaseProcessorMessageListener:40] Unable to process file version 52793736
com.liferay.petra.process.ProcessException: java.io.IOException: Cannot run program "java": error=2, No such file or directory
at com.liferay.petra.process.local.LocalProcessExecutor.execute(LocalProcessExecutor.java:122)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl._generateImagesPB(PDFProcessorImpl.java:706)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl._generateImages(PDFProcessorImpl.java:400)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl._generateImages(PDFProcessorImpl.java:429)
at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl.generateImages(PDFProcessorImpl.java:109)
at com.liferay.document.library.kernel.util.PDFProcessorUtil.generateImages(PDFProcessorUtil.java:34)
at com.liferay.portlet.documentlibrary.messaging.PDFProcessorMessageListener.generate(PDFProcessorMessageListener.java:30)
at com.liferay.portlet.documentlibrary.messaging.BaseProcessorMessageListener.doReceive(BaseProcessorMessageListener.java:36)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:752)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.IOException: Cannot run program "java": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.liferay.petra.process.local.LocalProcessExecutor.execute(LocalProcessExecutor.java:85)
... 13 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 15 more
</init></init></init>
It works fine for other documents.
Can anyone help me? Any idea would be very appreciated.
Thanks so much in advance.
Regards
Daniel G:
Hi all.
I am facing an issue with Open Office and Liferay 7.1 and I am lost with it.I have a pdf document in Document Library, and when I try to previsualize it, it fails and show this on the logs:It works fine for other documents.... Caused by: java.io.IOException: Cannot run program "java": error=2, No such file or directory ...
Does it work fine on other PDF documents?
Obviously, Java can't run - it should be on the path for the service or daemon you're running (Windows? Linux?)
I believe that OpenOffice isn't used for PDF previews, but I might be wrong. If DOC files work correctly, and PDF doesn't, that's a hint. If other PDF files work, but this one doesn't: That'd be unexpected
Hi.First of all, thanks for your answer. Preview is not working for pdf files or docx, with the same error. So i think it shoud be due to a bad configuration of Java and Open Office, but I am not sure where the error can be.I will continue investigating it.Regards.
Hi.I've been able to solve this issue, it is due to a bad configuration of java. Using linux, I have an script for stopping and starting the portal, and path was configured in the wrong way. Once I did it fine, it works as expected.
Regards.
Regards.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™