Page 1 of 1

Lost SWF file

PostPosted:Wed Jan 12, 2011 2:27 pm
by flekschas
Hi,
sometimes it happens that when I try to preview a PDF file I'm getting the following error:
Code: Select all
There was a problem with the preview generation...
When looking at the logs it seems as if a previously cached SWF file is being lost.
Code: Select all
2011-01-12 15:14:02,684 ERROR [com.openkm.frontend.server.OKMDownloadServlet] /srv/openkm5/cache/swf/b0227d78-fad2-4e18-a61b-7f6665b10bbf.swf (No such file or directory)
java.io.FileNotFoundException: /srv/openkm5/cache/swf/b0227d78-fad2-4e18-a61b-7f6665b10bbf.swf (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at com.openkm.frontend.server.OKMDownloadServlet.service(OKMDownloadServlet.java:171)
	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:432)
	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:619)
Any ideas how I could solve this problem?

Re: Lost SWF file

PostPosted:Thu Jan 13, 2011 7:41 am
by jllort
Which OpenKM version are you using ? The problem is that document ( in theory converted to pdf ) has not been converted for some reason to swf and it has not been created under cache/swf folder

Re: Lost SWF file

PostPosted:Thu Jan 20, 2011 6:43 pm
by pavila
This error is due to a failure in the pdf2swf conversion. The SWF has not been generated and throws this error. May be we don't try to get that file if was a problem in the conversion method. I will revise the logic.