2 Replies Latest reply on Jul 25, 2007 8:37 AM by dslimmon

    System Error When Attempting a PDF Export

      Hi,

      When I try to do a pdf export of a document that was created using the editor, I receive the following (long) stacktrace (Clearspace version 1.3.0). Any ideas?

       

      org.xml.sax.SAXParseException: Premature end of file.

           at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

           at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)

           at com.jivesoftware.community.util.XMLUtils.runFop(XMLUtils.java:93)

           at com.jivesoftware.community.util.XMLUtils.generatePDF(XMLUtils.java:53)

           at com.jivesoftware.community.impl.DbDocument.asPDF(DbDocument.java:361)

           at com.jivesoftware.community.proxy.DocumentProxy.asPDF(DocumentProxy.java:790)

           at com.jivesoftware.community.action.DocumentPDFAction.execute(DocumentPDFAction.java:26)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

           at java.lang.reflect.Method.invoke(Method.java:585)

           at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:364)

           at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:216)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)

           at com.jivesoftware.community.web.webwork.FlashInterceptor.intercept(FlashInterceptor.java:40)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)

           at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)

           at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.jivesoftware.community.web.webwork.JiveObjectLoaderInterceptor.intercept(JiveObjectLoaderInterceptor.java:55)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:171)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.jivesoftware.community.action.LocaleInterceptor.intercept(LocaleInterceptor.java:71)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.jivesoftware.community.web.webwork.JiveIOCInterceptor.intercept(JiveIOCInterceptor.java:694)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.jivesoftware.community.web.webwork.AuthInterceptor.intercept(AuthInterceptor.java:60)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:186)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.jivesoftware.community.web.webwork.ModuleCheckInterceptor.intercept(ModuleCheckInterceptor.java:49)

           at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

           at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)

           at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:225)

           at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)

           at com.jivesoftware.community.web.webwork.JiveFilterDispatcher.doFilter(JiveFilterDispatcher.java:53)

           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

           at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)

           at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

           at com.jivesoftware.community.web.JiveActionContextCleanUp.doFilter(JiveActionContextCleanUp.java:46)

           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

           at com.jivesoftware.community.web.filter.PresenceFilter.doFilter(PresenceFilter.java:106)

           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

           at org.directwebremoting.servlet.DwrWebContextFilter.doFilter(DwrWebContextFilter.java:91)

           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

           at com.jivesoftware.community.upgrade.UpgradeFilter.doFilter(UpgradeFilter.java:43)

           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

           at com.jivesoftware.base.plugin.PluginFilter.doFilter(PluginFilter.java:71)

           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

           at com.jivesoftware.base.database.dao.DAOContextCleanUpFilter.doFilter(DAOContextCleanUpFilter.java:32)

           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

           at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

           at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

           at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

           at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

           at java.lang.Thread.run(Thread.java:595)

       

      Message was edited by: mwhitecybs

        • Re: System Error When Attempting a PDF Export

          Hi,

           

          I have a few questions, since I cannot make out the problem simply from the stacktrace.  Which application server are you using? What database? Is there anything particular about the message you are trying to view as PDF? Can you view any docs as PDF?

           

          -Will

            • Re: System Error When Attempting a PDF Export

              Hi mwhitecybs...

               

              Might be comparing apples and oranges here since we are running a customized version of Clearspace External 1.1.1.  But we had system errors when generating PDF files from Wiki docs and it was because our distribution of the clearspace-1.1.1.jar was missing an fo-template.xml file.  As soon as it was dropped in, PDF generation worked perfectly for us.

               

              Again, might be apples and oranges but I thought I'd mention it.

               

              Cheers,

              Dave