Page 2 of 2
Re: Preview issues (new I think)
PostPosted:Thu Oct 23, 2014 4:34 pm
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 allhttp://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 allhttp://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.
Re: Preview issues (new I think)
PostPosted:Mon Oct 27, 2014 12:08 pm
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.
Re: Preview issues (new I think)
PostPosted:Tue Oct 28, 2014 3:12 pm
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.
Re: Preview issues (new I think)
PostPosted:Tue Oct 28, 2014 3:26 pm
by opensourced
And here's the log entry for the failure:
Code: Select all2014-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
Re: Preview issues (new I think)
PostPosted:Tue Oct 28, 2014 3:29 pm
by pavila
I got it. This:
Should be:
Because you're on Windows.
Re: Preview issues (new I think)
PostPosted:Tue Oct 28, 2014 5:45 pm
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.
Re: Preview issues (new I think)
PostPosted:Tue Oct 28, 2014 8:49 pm
by pavila
This explains why I was unable to reproduce the issue
