Thanks.

Here is the exception when I try to fop the embedding.fo file in the
examples dir:


>java org.apache.fop.apps.Fop -d -fo embedding.fo -pdf out.pdf


[DEBUG] Input mode:
[DEBUG] FO
[DEBUG] fo input file: embedding.fo
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: out.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] base directory: file:/C:/temp/fop205src/fop-0.20.5/examples/fo/svg/
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] null
org.apache.fop.apps.FOPException
        at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111)
        at org.apache.fop.apps.Fop.main(Fop.java:62)

---------

java.lang.NullPointerException
        at
org.apache.batik.dom.AbstractAttr.setNodeValue(AbstractAttr.java:112)

        at
org.apache.batik.dom.AbstractAttr.setValue(AbstractAttr.java:177)
        at
org.apache.batik.dom.svg.AbstractElement$ExtendedNamedNodeHashMap.setUnspecifiedAttribute(AbstractElement.java:238)
        at
org.apache.batik.dom.svg.AbstractElement.setUnspecifiedAttribute(AbstractElement.java:149)
        at
org.apache.batik.dom.svg.AttributeInitializer.resetAttribute(AttributeInitializer.java:94)
        at
org.apache.batik.dom.svg.AttributeInitializer.initializeAttributes(AttributeInitializer.java:70)
        at
org.apache.batik.dom.svg.AbstractElement.initializeAttributes(AbstractElement.java:115)
        at
org.apache.batik.dom.svg.AbstractElement.<init>(AbstractElement.java:59)
        at
org.apache.batik.dom.svg.SVGOMElement.<init>(SVGOMElement.java:72)
        at
org.apache.batik.dom.svg.SVGStylableElement.<init>(SVGStylableElement.java:70)
        at
org.apache.batik.dom.svg.SVGOMSVGElement.<init>(SVGOMSVGElement.java:103)
        at
org.apache.batik.dom.svg.SVGDOMImplementation$SvgElementFactory.create(SVGDOMImplementation.java:1508)
        at
org.apache.batik.dom.svg.SVGDOMImplementation.createElementNS(SVGDOMImplementation.java:255)
        at
org.apache.batik.dom.svg.SVGOMDocument.createElementNS(SVGOMDocument.java:338)
        at
org.apache.batik.dom.svg.SVGDOMImplementation.createDocument(SVGDOMImplementation.java:175)
        at org.apache.fop.svg.SVGElement.init(SVGElement.java:255)
        at org.apache.fop.svg.SVGElement.<init>(SVGElement.java:120)
        at org.apache.fop.svg.SVGElement$Maker.make(SVGElement.java:95)
        at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:352)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
        at org.apache.fop.apps.Driver.render(Driver.java:498)
        at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106)
        at org.apache.fop.apps.Fop.main(Fop.java:62)

There is an existing bug (16156) logged against this, but it looks like the
only workaround is to upgrade to jdk 1.4.  I was wondering if anyone out
there has FOP 20.5 and SVG and jdk 1.3 working?  I'm hoping it is just a
classpath issue.
                                                                            
 Thanks,                                                                    
 Lou                                                                        
                                                                            





                                                                                
                                                                   
                      [EMAIL PROTECTED]                                         
                                                                    
                      iquip.com                To:      
[email protected]                                                
           
                                               cc:                              
                                                                   
                      04/12/2005 13:25         Subject: Re: FOP 20.5 with 
jdk1.3 and SVG                                                           
                      Please respond                                            
                                                                   
                      to fop-users                                              
                                                                   
                                                                                
                                                                   
                                                                                
                                                                   




Lou,

Would like to see the exception you are getting. One thing to try is to
keep batik.jar first in the classpath ahead of other jars. If you are using
a directory, you may have to rename batik.jar to something like abatik.jar.


HTH,

Vishnu.

                                                                           
 [EMAIL PROTECTED]                                                         
                                                                           
                                                                        To 
 04/12/2005 01:22 PM                            [EMAIL PROTECTED] 
                                                he.org                     
                                                                        cc 
         Please respond to                                                 
  [email protected]                                 Subject 
                                                Re: FOP 20.5 with jdk1.3   
                                                and SVG                    
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





What is the exception? Perhaps someone can give you a pointer if they see
the error message.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




[EMAIL PROTECTED]
04/12/2005 12:02 PM
Please respond to
[email protected]


To
[email protected]
cc

Subject
FOP 20.5 with jdk1.3 and SVG






Help...

I am trying to get FOP 0.20.5 working under jdk 1.3, but my SVG docs keep
throwing an exception.  I can get it to work with JDK 1.4 because the 1.4
rt.jar contains a subset of Xalan.  However, my current business
requirements dictate that I stay on jdk 1.3 so I am stuck.  I tried
manipulating different version of batik, Xalan, Xerces, etc., but I am
having no luck.

So, is there anyone out there who is running FOP 0.20.5 under jdk 1.3 and
has SVG embedded in their docs?  If so, could you please post your
classpath (and any specific versions of Xalan, Xerces, etc).

Thanks,
Lou



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to