Page 1 of 1

No preview with OpenKM 6.3.0 (Windows 2008 R2)

PostPosted:Fri Jul 18, 2014 9:51 am
by tgrauel
Hi,

i'm using OpenKM 6.3.0 with Windows 2008 R2. Everything works great except the preview of Office-files. E.g. for Word-files i get the message "Conversion: Error in application/msword to PDF conversion". Same with other Office-files. Here is a snippet of the log file:
Code: Select all
2014-07-18 11:22:54,266 [http-bio-0.0.0.0-8080-exec-2] 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.toSWF(ConverterServlet.java:300)
	at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:145)
	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.ja
What i tried:

- First i installed Libreoffice, then i tried it with OpenOffice (actually 4.1.0) , the problem occurs with both offices
- i changed the path of system.openoffice.path. First i installed LibreOffice and OpenOffice to "C:\Program files (x86)\...", then i installed it to a directory w/o blanks in the pathname
==> "Check config" says that the path is ok:
Code: Select all
system.swftools.pdf2swf
OK - C:\SWFTools\pdf2swf.exe
system.imagemagick.convert
OK - C:\ImageMagick-6.8.9-Q16\convert.exe
system.ocr
Not configured
system.openoffice.path
OK - C:\OpenOffice4\program\soffice.bin
- i opened the port 2002 on the Windows firewall
- tried it with other ports
- installed a service that runs OpenOffice
- read all the "Error in preview"-topics in the forum, tried all recommended solutions, but none of them works in my system

So now i'm really clueless ... maybe someone can help me out? Please let me know if you need more informatiosn. First of all here are the relevant settings of my OpenKM-configuration:
Code: Select all
system.openoffice.dictionary	String		Edit    Delete
system.openoffice.path	String	C:\OpenOffice4	Edit    Delete
system.openoffice.port	Integer	2002	Edit    Delete
system.openoffice.server	String		Edit    Delete
system.openoffice.tasks	Integer	200	Edit    Delete
system.pdf.force.ocr	Boolean	Inactive	Edit    Delete
system.previewer	Select	flexpaper	Edit    Delete
system.profiling	Boolean	Inactive	Edit    Delete
system.readonly	Boolean	Inactive	Edit    Delete
system.swftools.pdf2swf	String	C:\SWFTools\pdf2swf.exe -f -T 9 -t -s storeallcharacters ${fileIn} -o ${fileOut}	Edit   
Best regards
Thomas

Re: No preview with OpenKM 6.3.0 (Windows 2008 R2)

PostPosted:Sat Jul 19, 2014 8:59 am
by jllort
What openoffice version you got installaded and what word document version type are you trying to convert. If you open directly with openoffice installed in that server can you convert it to pdf ?

Re: No preview with OpenKM 6.3.0 (Windows 2008 R2)

PostPosted:Mon Jul 21, 2014 7:34 am
by tgrauel
Hi,

i'm using OpenOffice 4.1.0 on a Windows 2008 R2-System. The OpenOffice-Build is AOO410m18(Build:9764) - Rev. 1589052 2014-04-22 11:43:54 (Di, 22 Apr 2014).
I tried several office documents, created with different office versions (from .doc-files from Office 97 up to .docx-files from Office 2013), none of them works.
The manual conversion with OpenOffice works, with LibreOffice i also successfully converted PDFs with soffice.exe from the command line.

Re: No preview with OpenKM 6.3.0 (Windows 2008 R2)

PostPosted:Mon Jul 21, 2014 8:03 pm
by AndresGODs
Something similar happened to me in the last couple of days, i ended up installing openoffice 3.30 and it finally worked with that version.

Re: No preview with OpenKM 6.3.0 (Windows 2008 R2)

PostPosted:Tue Jul 22, 2014 8:10 am
by tgrauel
Hi,

great, i installed OpenOffice 3.3.0, restarted OpenKM and it works!
Many Thanks for your help! I checked out almost everything, with LibreOffice, OpenOffice etc., but i haven't checked out an older version of OpenOffice ;)

Thanks again and Best regards
Thomas

Re: No preview with OpenKM 6.3.0 (Windows 2008 R2)

PostPosted:Sat Jul 26, 2014 6:03 pm
by jllort
I would like to see the start up log. Can you stop openkm, delete catalina.log, start openkm ( and when you see server started at log copy the catalina.log and post here ).

Re: No preview with OpenKM 6.3.0 (Windows 2008 R2)

PostPosted:Wed Jul 30, 2014 12:31 pm
by tgrauel
Sure. Here is the log with OpenOffice 3. This configuration is workling fine. Do you also need a log with OpenOffice 4?

Re: No preview with OpenKM 6.3.0 (Windows 2008 R2)

PostPosted:Sun Aug 03, 2014 8:46 am
by jllort
If you want I take a look why openoffice 4.x is not going right in your server, yes, I will need to take a look at starting log.