The following error [elrond@rivendell archive]$ /usr/local/java/fop1/fop.sh \ -xml admin-faq.xml -xsl \ xsl/fo/docbook.xsl \ -pdf admin-faq.pdf [INFO]: FOP 1.0dev [ERROR]: null is completely meaningless and doesn't help me detect if the problem is with the stylesheet, the document or Fop. Is there anyway to setup a verbose flag or a better and more meaningful error message than just null? I've tried this with both 0.20.2 and 1.0Dev
I agree with you, error reporting must become better. In most of the cases, "Error: null" appears, if there is a problem in xsl transformation. To work around this, let xalan first generate a .fo file: java -cp <your-classpath> org.apache.xalan.xslt.Process \ -in admin-faq.xml -xsl xsl/fo/docbook.xsl -out admin-faq.fo If there is a problem in your xsl, xalan will tell you.
FOP-1.0dev is a development version, not a release. Don't use it, usually it doesn't work.
*** Bug 12398 has been marked as a duplicate of this bug. ***
*** Bug 6539 has been marked as a duplicate of this bug. ***
*** Bug 19914 has been marked as a duplicate of this bug. ***
no FO input file provided; insufficiently specific problem description
Duplicate bug #6539 did provide a complete test case. Still reproducible in FOP 0.20.3 a decade later using JDK 7 (!): java.lang.NullPointerException at org.apache.fop.fo.PropertyManager.getTextDecoration(PropertyManager.java:260) at org.apache.fop.fo.flow.Block.<init>(Block.java:75) at org.apache.fop.fo.flow.Block$Maker.make(Block.java:37) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:261) When updated to use FOP 1.0, a more reasonable error is produced: org.apache.fop.fo.ValidationException: "{http://www.w3.org/1999/XSL/Format}block" is not a valid child of "fo:root"! (See position 1:5275) at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38) at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:54) at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175) at $Proxy0.invalidChild(Unknown Source) at org.apache.fop.fo.FONode.invalidChildError(FONode.java:534) at org.apache.fop.fo.FONode.invalidChildError(FONode.java:517) at org.apache.fop.fo.pagination.Root.validateChildNode(Root.java:133) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:267) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171) So this was fixed somewhere along the line and the fixer just did not know about this bug report.
(In reply to comment #7) > Duplicate bug #6539 did provide a complete test case. Still reproducible in FOP > 0.20.3 a decade later using JDK 7 (!): > So this was fixed somewhere along the line and the fixer just did not know > about this bug report. thanks for additional info!
batch transition resolved+wontfix to closed+wontfix
batch transition resolved+wontfix to closed+wontfix; if you believe this remains a bug and can demonstrate it with appropriate input FO file and output PDF file (as applicable), then you may reopen