You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bryan Hansen <me...@xmission.com> on 2001/03/20 17:45:11 UTC

Problem Rendering PDF

I am trying to run one of the samples, that came with the download,   
from the command line. I am getting a null pointer exception and am   
wondering if I am trying to run the sample incorrectly or if I have it
configured wrong? I have included the stack trace.                    
                                                                      
Win 2000                                                              
Cocoon 1.8.2                                                          
Java 1.3 (Sun)                                                        
                                                                      
Thanks for any help you could provide!                                
                                                                      
                                                                      
Stack Trace:                                                          
C:\cocoon-1.8.2\bin>java -classpath                                   
%classpath%;./cocoon.jar;C:\cocoon-1.8.2\lib\org.apache.cocoon.Cocoon 
-p C:\cocoon-1.8.2\conf\cocoon.properties                             
C:\cocoon-1.8.2\samples\fo\test-fo.xml ./output.pdf                   
                                                                      
FOP_VERSION = FOP 0.15                                                
FOP_VERSION_NO = 0.15                                                 
using renderer org.apache.fop.render.pdf.PDFRenderer                  
using element mapping org.apache.fop.fo.StandardElementMapping        
using element mapping org.apache.fop.svg.SVGElementMapping            
using property list mapping                                           
org.apache.fop.fo.StandardPropertyListMapping                         
using property list mapping org.apache.fop.svg.SVGPropertyListMapping 
building formatting object tree                                       
WARNING: property 'page-master-name' ignored                          
WARNING: Unknown formatting object                                    
http://www.w3.org/1999/XSL/Format^sequence-specificatio               
n                                                                     
WARNING: Unknown formatting object                                    
http://www.w3.org/1999/XSL/Format^sequence-specifier-re               
peating                                                               
WARNING: A 'flow-name' is required for fo:flow. This constraint will  
be enforced in future                                                 
 versions of FOP                                                      
WARNING: Unknown value for property 'text-align': centered            
WARNING: Unknown value for property 'text-align': justified           
WARNING: Unknown value for property 'text-align': justified           
WARNING: Unknown value for property 'text-align': justified           
WARNING: Unknown value for property 'text-align': justified           
WARNING: Unknown value for property 'text-align': justified           
WARNING: Unknown value for property 'text-align': justified           
WARNING: Unknown value for property 'text-align': justified           
WARNING: Unknown value for property 'text-align': centered            
WARNING: Unknown value for property 'text-align': justified           
setting up fonts                                                      
formatting FOs into areas                                             
 [1]                                                                  
rendering areas to PDF                                                
writing out PDF                                                       
Exception in thread "main" java.lang.NullPointerException             
        at org.apache.cocoon.Engine.handle(Engine.java:484)           
        at                                                            
org.apache.cocoon.EngineWrapper.handle(EngineWrapper.java:87)         
        at org.apache.cocoon.Cocoon.main(Cocoon.java:311)             

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>