Hi, as the error message said, you have an empty fo:table-row in the resulting XSL-FO file. I guess you use a XML + XSLT couple to get such file, therefore you should debug your XSLT to produce a clean, valid XSL-FO code.
An alternative is to configure FOP to be more "laxist". See "strict-configuration" option in FOP configuration [1]. [1] http://xmlgraphics.apache.org/fop/0.95/configuration.html#general-elements HTH, Pascal Hu, Zemin a écrit : > I am new here and have a question. > > I am creating PDF on the fly for a web application. A PDF file is supposed to > open when user clicks on a link. Occasionally the created PDF file cannot be > opened and the error message says: "File is damaged and could not be > repaired". > > When I read log file, I can find error message: > SystemErr R (Location of error > unknown)org.apache.fop.fo.ValidationException: Error(Unknown location): > fo:table-row is missing child elements. Required Content Model: (table-cell+) > > The weird thing is that this error only happens at first time or first few > times, then the PDF file generation goes fine. Then if user browses other > pages and comes back, this can happen again. This error is not consistent, > sometimes everything is just fine. This is really frustrating and hard to > debug. > > This never happened in my unit test and local environment. So I am thinking > it might be the cache issue or web server configuration issue. But I have no > clue. This is tough one. > > Any suggestions or solutions? > > Thanks. > > Zemin > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
