xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: Java Result: 2 Why?
Date Sat, 06 May 2006 07:28:25 GMT

On 05.05.2006 14:17:26 David wrote:
> Jeremias Maerki,
>   Concerning to the ant task I am directly invoking java, do you think gain something
invoking it via ant?

The ability to set the log level and Ant not having to spawn another JVM
to process the file.

>   Greate, the -d option gives a little more details, thanks, but no so much from the
user point of view. I get the following output:

Yes, but I can give you a tip where to go looking.

>   Buildfile: P:\LRA\build.xml
>   check-build-doc:
>   doc2pdf:
>   [echo] INFO(lra): Generating intermediate file...
>   [docbook] Making portrait pages on A4 paper (210mmx297mm)
>   [echo] INFO(lra): Generating pdf file...
>   [docbook] [DEBUG] Input mode:
>   [docbook] [INFO] [23]
>   [docbook] [INFO] Parsing of document complete, stopping renderer
>   [docbook] [DEBUG] Initial heap size: 747Kb
>   [docbook] [DEBUG] Current heap size: 9181Kb
>   [docbook] [DEBUG] Total memory used: 8434Kb
>   [docbook] [DEBUG] Memory use is indicative; no GC was performed
>   [docbook] [DEBUG] These figures should not be used comparatively
>   [docbook] [DEBUG] Total time used: 2422ms
>   [docbook] [DEBUG] Pages rendered: 26
>   [docbook] [DEBUG] Avg render time: 93ms/page
>   [docbook] [ERROR] null
>   [docbook] org.apache.fop.apps.FOPException
>   [docbook] at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111)
>   [docbook] at org.apache.fop.apps.Fop.main(Fop.java:62)
>   [docbook] ---------
>   [docbook] java.lang.NullPointerException
>   [docbook] at org.apache.fop.layout.LineArea.addText(LineArea.java:855)
>   [docbook] at org.apache.fop.fo.FOText.addRealText(FOText.java:278)
>   [docbook] at org.apache.fop.fo.FOText.addText(FOText.java:252)
>   [docbook] at org.apache.fop.fo.FOText.layout(FOText.java:161)
>   [docbook] at org.apache.fop.fo.FObjMixed.layout(FObjMixed.java:139)
>   [docbook] at org.apache.fop.fo.flow.ListItemBody.layout(ListItemBody.java:118)

Must be something about text inside a list-item-body. The line number in
LineArea.java indicates that there may be something wrong with
hyphenation. You could try to switch off hyphenation to see if there's
any difference.

>   [docbook] Java Result: 2
>   Total time: 9 seconds
> so, if you look into generated output, it seems I get a
> NullPointerException during the line area computation, like I guess it
> is a problem with the area but not with any particular docbook syntax.


>   Please let me know if you have any suggestion, 

I'd say this is a bug in FOP 0.20.5. But since we don't do any bugfixing
anymore on this version, you might want to consider upgrading to the
latest release, 0.92beta. 

Jeremias Maerki

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message