"Katiyar, Bhawana" <[EMAIL PROTECTED]> wrote:
> I have the following code :
>               Document docFo ;      //contains a valid fo document
...
> java.lang.NullPointerException
>       at 
>org.apache.fop.layoutmgr.PageLayoutManager.makeNewPage(PageLayoutManager.java:141)
>       at 
>org.apache.fop.layoutmgr.PageLayoutManager.getParentArea(PageLayoutManager.java:176)

The most likely reason is that your FO document is *not* valid,
for example missing a fo:table-body around the rows of a table
body. There may be any number of other explanations.

Get a serialized version of your FO stuff and check it with
the FOP command line application. If you seen an [ERROR]:null
message, the problem is in your document, or you have hit a real
FOP bug. In this case narrow down the error location by cutting
as much stuff from the document until the error disappears, if
you still can't spot the reason ask again on this or better the
fop-user list.
If the command line version produces a PDF, the problem is either
in the DOM implementation you use or in the FOP configuration.
You'll have to supply more information about them if you want to
get more help.

HTH
J.Pietschmann

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

Reply via email to