• Preview issues (new I think)

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #30340  by opensourced
 
I did - and watched the explorer window as first the good file is created from 'download as pdf", and then it's replaced by the 4kb file upon clicking the preview tab.

I have even opened up the Chrome console. If I run the URL called to download as pdf (with a clean cache):
Code: Select all
http://myserver:8085/OpenKM/frontend/Converter?inline=false&toPdf=true&uuid=1ac2596f-55a3-4709-ba32-f631629376a2
It works fine. Now if I replace that with the URL that's called as part of preview:
Code: Select all
http://myserver:8085/OpenKM/frontend/Converter?inline=true&toSwf=true&uuid=1ac2596f-55a3-4709-ba32-f631629376a2
Then the same thing happens. Maybe that's not surprising. The removal/overwriting of the good pdf happens almost immediately on clicking the preview tab. I have also just tried other browsers as well just in case.

Thank you for your assistance so far.
 #30353  by pavila
 
I've fixed an issue which prevents to remove an already made conversion. Please, try tonight night build and if the problem persist, tell me your configuration for these properties:

- system.swftools.pdf2swf
- system.openoffice.path

Regards.
 #30361  by opensourced
 
Updated to 8174 (cleared browser cache, cache folder, and deleted folders) - no problem. Problem is unchanged.

c:\openkm\tomcat\bin\pdf2swf -f -T 9 -t -s storeallcharacters ${fileIn} -o ${fileOut}
C:\Program Files (x86)\LibreOffice 4


Many thanks.
 #30362  by opensourced
 
And here's the log entry for the failure:
Code: Select all
2014-10-28 11:22:24,542 [http-bio-0.0.0.0-8085-exec-2] ERROR com.openkm.servlet.frontend.ConverterServlet- IO exception executing command: c:\openkm\tomcat\bin\pdf2swf -f -T 9 -t -s storeallcharacters C:\openkm\tomcat\temp\okm8627003788939154266.pdf -o C:\openkm\tomcat\repository\cache\swf\8c6e927b-fe6b-4458-bb01-47dbef0ad8fc.swf
com.openkm.core.ConversionException: IO exception executing command: c:\openkm\tomcat\bin\pdf2swf -f -T 9 -t -s storeallcharacters C:\openkm\tomcat\temp\okm8627003788939154266.pdf -o C:\openkm\tomcat\repository\cache\swf\8c6e927b-fe6b-4458-bb01-47dbef0ad8fc.swf
	at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:692)
	at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:299)
	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.io.IOException: Cannot run program "c:\openkm\tomcat\bin\pdf2swf": CreateProcess error=193, %1 is not a valid Win32 application
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
	at com.openkm.util.ExecutionUtils.runCmdImpl(ExecutionUtils.java:257)
	at com.openkm.util.ExecutionUtils.runCmd(ExecutionUtils.java:237)
	at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:682)
	... 45 more
Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application
	at java.lang.ProcessImpl.create(Native Method)
	at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)
	at java.lang.ProcessImpl.start(ProcessImpl.java:136)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
	... 48 more
 #30365  by opensourced
 
Wow. After all of that, it was something that simple - that replacement of the file was what took me off on that track. Many thanks to everyone that helped out - I'm sorry that I didn't start out with that config string.

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.