Page 1 of 1

OpenKM 1.5.9 document any type preview doesn't work

PostPosted:Thu Feb 23, 2012 11:55 am
by melal
I'm configuring at the moment OpenKM 1.5.9 on Fedora 16. Everything is OK, OpenKM just a perfect system, but only one issue can't be solved by me. When I'm trying click "Preview" tab for documents of the following types, for example: pdf, png, jpg etc. - I see only "There was a problem with the conversion generation. Please, contact your OpenKM administrator." Of course, there is a problem with LibreOffice, but it's not important fro me now as soon there is a problem at the level of DocConverter initially. Obviosly there exists a bug for LibreOffice at jodconverter but this quietsion will be for another topic, as now I need help for graphics and PDF files only.

My settings:
system.ghostscript.ps2pdf String /usr/bin/ps2pdf
system.imagemagick.convert String /usr/bin/convert
system.ocr String /usr/bin/tesseract
system.openoffice.path String /usr/lib/libreoffice
system.openoffice.port Integer 2002
system.openoffice.tasks Integer 200
system.previewer String zviewer
system.swftools.pdf2swf String /usr/bin/pdf2swf

Installed software:
swftools-0.9.1-5.fc16.i686
ImageMagick-6.7.0.10-4.fc16.i686

Trying acces a graphics file I see in my server.log:
Code: Select all
2012-02-23 15:51:17,112 WARN  [com.openkm.util.ExecutionUtils] Abnormal program termination: 1
2012-02-23 15:51:17,112 WARN  [com.openkm.util.ExecutionUtils] STDERR: 
2012-02-23 15:51:17,112 ERROR [com.openkm.servlet.frontend.ConverterServlet] 
com.openkm.core.ConversionException: 
	at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:528)
	at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:226)
	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.ajp.AjpAprProcessor.process(AjpAprProcessor.java:419)
	at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:378)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
	at java.lang.Thread.run(Thread.java:662)
Please advise, any help will be appreciated sincerely!

Re: OpenKM 1.5.9 document any type preview doesn't work

PostPosted:Thu Feb 23, 2012 4:14 pm
by melal
OK, the problem is solved partially. Just have changed setting for pdf2swf inside admin panel from:
Code: Select all
system.swftools.pdf2swf	String	 /usr/bin/pdf2swf
to
Code: Select all
system.swftools.pdf2swf	String	 /usr/bin/pdf2swf ${fileIn} ${fileOut}
and therefore I can preview PDF files now. But still have problem with another graphics files: jpg, png, etc., server.log gives the following error:
Code: Select all
2012-02-23 20:10:20,001 WARN  [com.openkm.util.ExecutionUtils] Abnormal program termination: 1
2012-02-23 20:10:20,001 WARN  [com.openkm.util.ExecutionUtils] STDERR: Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

2012-02-23 20:10:20,002 ERROR [com.openkm.servlet.frontend.ConverterServlet] Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

com.openkm.core.ConversionException: Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

	at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:528)
	at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:226)
	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.ajp.AjpAprProcessor.process(AjpAprProcessor.java:419)
	at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:378)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
	at java.lang.Thread.run(Thread.java:662)

Re: OpenKM 1.5.9 document any type preview doesn't work

PostPosted:Thu Feb 23, 2012 4:32 pm
by melal
Problem is solved. I have stopped jboss server, purged cache directory manually and started jboss again.

Topic is closed.

Re: OpenKM 1.5.9 document any type preview doesn't work

PostPosted:Sun Apr 30, 2017 10:54 am
by Florentin
Hi
I have the same problem with openkm 6.3.2. Can you say me how can i restart JBOSS?

Thanks in advance!

Re: OpenKM 1.5.9 document any type preview doesn't work

PostPosted:Mon May 01, 2017 7:46 am
by jllort
This kind of error happens when you have complex documents with a lot of layers, take a look here https://docs.openkm.com/kcenter/view/ok ... leshooting

Re: OpenKM 1.5.9 document any type preview doesn't work

PostPosted:Mon May 01, 2017 1:26 pm
by Florentin
Hi!
Thanks for the answer but have you an idea how I can start Jboss server and purge the caches?
Thanks in advance!

Re: OpenKM 1.5.9 document any type preview doesn't work

PostPosted:Wed May 03, 2017 8:29 pm
by jllort
Why are you still running this old OpenKM version 1.5.9 it's very very old, that is totally unsupported. When you are trying to preview a document should be some error, take a look at server.log file and share it with us ( please only the section with log error ).