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
- Search the Internet for similar the same NPE.
- Switch your XML parser (even if you just use another version of the
- 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.
> [EMAIL PROTECTED] fop-0.20.3]# ./ -d -fo -pdf
> test.pdf
> [DEBUG]: Input mode:
> [DEBUG]: fo input file:
> [DEBUG]: Output mode:
> [DEBUG]: pdf
> [DEBUG]: output file: test.pdf
> [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(
>         at
>         at org.apache.fop.apps.Fop.main(
> ---------
> java.lang.NullPointerException
>         at
> org.apache.xerces.parsers.AbstractSAXParser.parse(
>         at org.apache.fop.apps.Driver.render(
>         at
>         at org.apache.fop.apps.Fop.main(
> Patrick Lanphier
> The Artemis Group
> phone: 814-235-0444
>   fax: 800-582-9710

Jeremias Maerki

Reply via email to