The contents you find here are totally obsolete so do not use this website to obtain a solution for your issues: the indications you get from here will not be accurate and may lead to data loss or other mayor problems

PDF Preview fails

We tried to make LogicalDOC as intuitive as possible, but an advice is always welcome.

Moderator: car031

dcentrio
Posts: 6
Joined: Wed Aug 24, 2011 2:49 pm

PDF Preview fails

Wed Aug 24, 2011 4:39 pm

Logicaldoc 6.2 (Community Edition - downloaded today, August the 25th 2011):

Error message:

Code: Select all

2011-08-24 17:27:18.648 	ERROR 	com.logicaldoc.web.DocumentPreview 	null
java.lang.NullPointerException
     at com.logicaldoc.web.DocumentPreview.composeCmd(DocumentPreview.java:317)
     at com.logicaldoc.web.DocumentPreview.pdf2swf(DocumentPreview.java:287)
     at com.logicaldoc.web.DocumentPreview.document2swf(DocumentPreview.java:246)
     at com.logicaldoc.web.DocumentPreview.createPreviewResource(DocumentPreview.java:161)
     at com.logicaldoc.web.DocumentPreview.doGet(DocumentPreview.java:104)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at com.logicaldoc.web.CharsetFilter.doFilter(CharsetFilter.java:26)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at com.logicaldoc.web.SessionFilter.doFilter(SessionFilter.java:61)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
     at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
     at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
     at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
     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:233)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
     at java.lang.Thread.run(Thread.java:662) 

Code: Select all

2011-08-24 17:27:18.651 	ERROR 	com.logicaldoc.core.store.FSStorer 	/opt/logicaldoc-6.2/repository/docs/874/doc/1.0-preview.swf (No such file or directory)
True, "no such file or directory" but "pdf2swf=/usr/local/bin/pdf2swf" is set up in the context.properties file and if I simply do a

Code: Select all

/usr/local/bin/pdf2swf -T 10 1.0.pdf -o 1.0-preview.swf
on the command-line from within the proper repository directory, Flexpaper goes ahead and shows the file all fine. For whatever reason (would need more debugging info about the actual conversion process myself) the process to convert that file itself fails miserably - it's not about the actual presentation.

Any help!?
mmeschieri
Posts: 242
Joined: Mon Apr 19, 2010 3:40 pm

Re: PDF Preview fails

Mon Sep 05, 2011 9:54 am

Seems that you don't have all the external command configured.
Open your context.properties file and check the configuration of the following parameters:

command.convert=convert
command.pdf2swf=pdf2swf
command.gs=gs

Regards

Return to “Usage”

Who is online

Users browsing this forum: No registered users and 46 guests

× Attention! This forum has been dismissed and will be soon removed. The contents you find here are totally obsolete so do not use this website to obtain a solution for your issues: the indications you get from here will not be accurate and may lead to data loss or other mayor problems.