[jboss-user] [JBoss Seam] - Seam PDF creation

pdhaigh do-not-reply at jboss.com
Sat Jun 9 07:30:05 EDT 2007


Hi all,

I'm just investigating the Seam PDF generation features.. and have some difficulties:

#1. In FireFox I get:


        This XML file does not appear to have any style information associated with it. The document tree is shown below.
  |       
  | ?
  | 	<html>
  | ?
  | 	<head>
  | <meta http-equiv="Refresh" content="0; URL=seam-doc.seam?docId=1&conversationId=1"/>
  | </head>
  | <body/>
  | </html>

If I cut and paste the URL part (seam-doc.seam?docId=1&conversationId=1), then it displays the Pdf fine.

#2. In I.E the redirect happens fine, but then I get "IE cannot display the webpage" and the following in the log:

12:25:24,760 WARN  [lifecycle] phase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl at ab17f8) threw exception: java.lang.NullPointerException:  
  | org.jboss.seam.pdf.DocumentStorePhaseListener.sendContent(DocumentStorePhaseListener.java:46)
  | org.jboss.seam.pdf.DocumentStorePhaseListener.beforePhase(DocumentStorePhaseListener.java:38)
  | com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
  | com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
  | org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
  | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  | 


any advice greatly appreciated!

cheers

phil

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052789#4052789

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052789



More information about the jboss-user mailing list