Doc to PDF not working suddenly

OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
Post Reply
mkwong98
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: Thu Aug 27, 2015 6:21 am

Doc to PDF not working suddenly

Post by mkwong98 »

Hi, I installed OpenKM 6.3.0 on a windows server and has the preview working for files. But suddenly I can not preview them or download them as PDF. I can preview PDF and jpg files in the folder without problem. Thanks.

My config:

Code: Select all

('system.antivir', 'string', '');
('system.apache.request.header.fix', 'boolean', 'false');
('system.catdoc.xls2csv', 'string', '');
('system.document.name.mismatch.check', 'boolean', 'true');
('system.execution.timeout', 'integer', '5');
('system.ghostscript.ps2pdf', 'string', '');
('system.imagemagick.convert', 'string', 'c:\imagemagick\convert.exe');
('system.keyword.lowercase', 'boolean', 'false');
('system.login.lowercase', 'boolean', 'false');
('system.maintenance', 'boolean', 'false');
('system.ocr', 'string', '');
('system.ocr.rotate', 'string', '');
('system.openoffice.dictionary', 'string', '');
('system.openoffice.path', 'string', 'C:\OpenOffice');
('system.openoffice.port', 'integer', '2002');
('system.openoffice.server', 'string', '');
('system.openoffice.tasks', 'integer', '200');
('system.pdf.force.ocr', 'boolean', 'false');
('system.previewer', 'select', '{"options":[{"name":"flexpaper","value":"flexpaper","selected":true},{"name":"zviewer","value":"zviewer","selected":false}]}');
('system.profiling', 'boolean', 'false');
('system.readonly', 'boolean', 'false');
('system.swftools.pdf2swf', 'string', 'C:\SWFTools\pdf2swf.exe -f -T 9 -t -s storeallcharacters ${fileIn} -o ${fileOut}');
('system.webdav.fix', 'boolean', 'false');
('system.webdav.server', 'boolean', 'false');
This is the log:

Code: Select all

2015-08-27 14:31:53,702 [http-bio-0.0.0.0-8080-exec-9] ERROR com.openkm.servlet.frontend.ConverterServlet- Error in application/msword to PDF conversion
com.openkm.core.ConversionException: Error in application/msword to PDF conversion
	at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:330)
	at com.openkm.servlet.frontend.ConverterServlet.toPDF(ConverterServlet.java:246)
	at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:134)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: this OfficeManager is currently stopped
	at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.execute(ProcessPoolOfficeManager.java:70)
	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:273)
	at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:327)
	... 45 more

mkwong98
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: Thu Aug 27, 2015 6:21 am

Re: Doc to PDF not working suddenly

Post by mkwong98 »

It is working again after rebooting the server. Thanks.

jllort
Moderator
Moderator
Posts: 11204
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Doc to PDF not working suddenly

Post by jllort »

The soffice service is started automically during the openkm startup. Is one of the parameters - few - that need restart service to take effect. I suppose that has been your problem.

Post Reply