You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Patrick Lanphier <pm...@artemisgroup.com> on 2002/04/23 21:11:41 UTC

Re: Debugging FOP - XML editor

What's the best free XML editor?

Patrick Lanphier
The Artemis Group
http://www.artemisgroup.com
phone: 814-235-0444
  fax: 800-582-9710

On Tue, 23 Apr 2002, Jeremias Maerki wrote:

> There's obviously something going wrong in the XML parser. Here's a list
> of things that come to my mind:
>
> - Check if the standard FOP examples work correctly. If yes, there might
>   be a problem with your fo file.
> - Open the fo in one or two XML editors to see if it gets parsed
>   correctly.
> - Search the Internet for similar the same NPE.
> - Switch your XML parser (even if you just use another version of the
>   same)
> - Get the source code of the XML parser and try to track down the cause
>   of the exception using the line numbers in the stacktrace.
> - Try to set everything up in your IDE and set an exception breakpoint
>   for java.lang.NullPointerException.
>
> I hope this helps.
>
> On 23.04.2002 06:41:23 Patrick Lanphier wrote:
> > How does one debug this?  Thank much for your help.
> >
> > [root@pa-steclge-u2-c6a-145 fop-0.20.3]# ./fop.sh -d -fo test.fo -pdf
> > test.pdf
> > [DEBUG]: Input mode:
> > [DEBUG]: FO
> > [DEBUG]: fo input file: test.fo
> > [DEBUG]: Output mode:
> > [DEBUG]: pdf
> > [DEBUG]: output file: test.pdf
> > [DEBUG]: OPTIONS
> > [DEBUG]: no user configuration file is used [default]
> > [DEBUG]: debug mode on
> > [DEBUG]: dump configuration
> > [DEBUG]: quiet mode on
> > [DEBUG]: base directory: file:/tmp/fop-0.20.3/
> > [INFO]: FOP 0.20.3
> > [DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser
> > [INFO]: building formatting object tree
> > [DEBUG]: setting up fonts
> > [ERROR]: null
> > org.apache.fop.apps.FOPException
> >         at org.apache.fop.apps.Driver.render(Driver.java:486)
> >         at
> > org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
> >         at org.apache.fop.apps.Fop.main(Fop.java:19)
> >
> > ---------
> >
> > java.lang.NullPointerException
> >         at
> > org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1193)
> >         at org.apache.fop.apps.Driver.render(Driver.java:481)
> >         at
> > org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
> >         at org.apache.fop.apps.Fop.main(Fop.java:19)
> >
> > Patrick Lanphier
> > The Artemis Group
> > http://www.artemisgroup.com
> > phone: 814-235-0444
> >   fax: 800-582-9710
> >
>
>
> Cheers,
> Jeremias Maerki
>



Re: Debugging FOP - XML editor

Posted by Nicola Ken Barozzi <ni...@apache.org>.
From: "Patrick Lanphier" <pm...@artemisgroup.com>

> What's the best free XML editor?

IMHO http://www.xmlcooktop.com/

It can use different xml processing engines and FOP is one of them :-)

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------