• Preview issue

  • 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.
 #12763  by viswanadh
 
Hello, I have a problem with preview documents *.doc, *.xls, *.odt etc.
OpenKM 5.1.8

Here is the log when I attempt a preview:
Code: Select all
19:02:49,258 ERROR [ConverterServlet] Error in application/vnd.openxmlformats-officedocument.spreadsheetml.sheet to PDF conversion
com.openkm.core.ConversionException: Error in application/vnd.openxmlformats-officedocument.spreadsheetml.sheet to PDF conversion
at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:311)
at com.openkm.servlet.frontend.ConverterServlet.toPDF(ConverterServlet.java:188)
at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:225)
at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.NullPointerException
at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:78)
at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:69)
at com.openkm.util.DocConverter.convert(DocConverter.java:251)
at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:308)
... 23 more

Notes:
Preview works for pdf (the other types I have tried)
Search for text within doc and docx files work
Preview tab says
"There was a problem with the conversion generation.
please, contact your OpenKM administrator"
 #12764  by jllort
 
I think soffice service is not right configured. can you convert a document to pdf ? or you get some error too ?
Take a look at starting up jboss server, to see if appearing some error while trying to starting openoffice service.
 #12766  by viswanadh
 
well we are running two instances of openkm on the same server...one is openkm5.0 and another is 5.1.8.
For 5.0 preview is working without any error but 5.1.8 is giving the above said error. So I don't think it is an openoffice configuration issue.
I went through the forum and I found a few people having the same issue http://forum.openkm.com/viewtopic.php?t=5326
 #12774  by jllort
 
Confirm convertid .doc to pdf fails ( you can do with UI toolbar button). If it's the case which system.openffice path do you got ?
 #12780  by viswanadh
 
sorry,the path we fix was wrong,
now the problem is fixed.
thank you.

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.