org.apache.fop.fo.ValidationException: First element must be the fo:root formatt ing object. Found (Namespace URI: "", Local Name: "html") instead. Please make s ure you're producing a valid XSL-FO document.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via developpez.net by Unknown author, 1 year ago
First element must be the fo:root formatt ing object. Found (Namespace URI: "", Local Name: "html") instead. Please make s ure you're producing a valid XSL-FO document.
via developpez.net by Unknown author, 1 year ago
First element must be the fo:root formatt ing object. Found (Namespace URI: "", Local Name: "html") instead. Please make s ure you're producing a valid XSL-FO document.
via Stack Overflow by user525146
, 2 years ago
Document is empty (something m ight be wrong with your XSLT stylesheet).
via Stack Overflow by blckprl
, 2 years ago
The column-number or number of cells in the row overflows the number of fo:table-columns specified for the tab le. (See position 2:914)
via Apache Bugzilla by xdury, 4 months ago
Invalid property encountered on "fo:root": xsi:schemaLocation (See position 4:143)
via GitHub by rwinch
, 2 years ago
"fo:block" is not a valid child of "fo:root"! (No context info available)
org.apache.fop.fo.ValidationException: First element must be the fo:root formatt ing object. Found (Namespace URI: "", Local Name: "html") instead. Please make s ure you're producing a valid XSL-FO document.
at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58)
at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175)
at com.sun.proxy.$Proxy0.invalidFORoot(Unknown Source)
at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:259)
at org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:204)
at org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277)
at org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler.java:348)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1315)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
at org.apache.fop.cli.Main.startFOP(Main.java:177)
at org.apache.fop.cli.Main.main(Main.java:208)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
1 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.