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.
> 
> [EMAIL PROTECTED] 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

Reply via email to