• Docx Preview Problem on Windows

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #53338  by shahmiteshk
 
Have installed openoffice below is the setting done and the log error i am getting. Need help in resolving the same.

system.openoffice.program String C:/Program Files (x86)/OpenOffice 4/program/

Error:
Code: Select all
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_321]
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.5.34]
	at java.lang.Thread.run(Thread.java:750) [na:1.8.0_321]
Caused by: com.openkm.core.ConversionException: IO exception executing command: C:/Program Files (x86)/OpenOffice 4/program/ --headless --convert-to pdf --outdir C:\tomcat-8.5.34\temp\okm608728827132462550.tmp C:\tomcat-8.5.34\temp\okm647763833799564289.docx
	at com.openkm.util.DocConverter.convert(DocConverter.java:832) ~[classes/:6.3.11]
	at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:210) ~[classes/:6.3.11]
	... 52 common frames omitted
Caused by: java.io.IOException: Cannot run program "C:/Program": CreateProcess error=2, The system cannot find the file specified
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ~[na:1.8.0_321]
	at com.openkm.util.ExecutionUtils.runCmdImpl(ExecutionUtils.java:251) ~[classes/:6.3.11]
	at com.openkm.util.ExecutionUtils.runCmd(ExecutionUtils.java:231) ~[classes/:6.3.11]
	at com.openkm.util.DocConverter.convert(DocConverter.java:818) ~[classes/:6.3.11]
	... 53 common frames omitted
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
	at java.lang.ProcessImpl.create(Native Method) ~[na:1.8.0_321]
	at java.lang.ProcessImpl.<init>(ProcessImpl.java:453) ~[na:1.8.0_321]
	at java.lang.ProcessImpl.start(ProcessImpl.java:140) ~[na:1.8.0_321]
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.8.0_321]
	... 56 common frames omitted
 #53340  by shahmiteshk
 
I did some reading with paths now it showing the preview windows with a message
"There was a problem with the conversion generation.Please, contact your OpenKM administrator."

The error log now shows
Code: Select all
Caused by: com.openkm.core.ConversionException: IO exception executing command: C:\tomcat-8.5.34\extras\LibreOffice --headless --convert-to pdf --outdir C:\tomcat-8.5.34\temp\okm379703429450962352.tmp C:\tomcat-8.5.34\temp\okm7208101451246476191.xlsx
	at com.openkm.util.DocConverter.convert(DocConverter.java:832) ~[classes/:6.3.11]
	at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:210) ~[classes/:6.3.11]
	... 52 common frames omitted
Caused by: java.io.IOException: Cannot run program "C:\tomcat-8.5.34\extras\LibreOffice": CreateProcess error=5, Access is denied
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ~[na:1.8.0_321]
	at com.openkm.util.ExecutionUtils.runCmdImpl(ExecutionUtils.java:251) ~[classes/:6.3.11]
	at com.openkm.util.ExecutionUtils.runCmd(ExecutionUtils.java:231) ~[classes/:6.3.11]
	at com.openkm.util.DocConverter.convert(DocConverter.java:818) ~[classes/:6.3.11]
	... 53 common frames omitted
Caused by: java.io.IOException: CreateProcess error=5, Access is denied
	at java.lang.ProcessImpl.create(Native Method) ~[na:1.8.0_321]
	at java.lang.ProcessImpl.<init>(ProcessImpl.java:453) ~[na:1.8.0_321]
	at java.lang.ProcessImpl.start(ProcessImpl.java:140) ~[na:1.8.0_321]
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.8.0_321]
	... 56 common frames omitted
 #53346  by jllort
 
The "Access is denied" seems a security problem. Usually the OpenKM service is executed by the user "Local Service" try to propagate security in the tomcat home and childs ( full grant ) to this user. Do the change with OpenKM stopped, then start openkm and check again.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.