The template file is huge, it involves around 30 tables(many complicated tables), and the error message does not indicate line numbers in the template (could this be improved so we can have clue?), so it is very hard to guess which table is causing problem, also it may well not be the cause of the problem since the file could be generated successfully next time using same template and same data. Another guess I have is that the template and data are out of sync at that moment for some reason-timing, cache, whatever, just wild imagination.
Thanks. Zemin From: Peter Hancock [mailto:[email protected]] Sent: Friday, January 22, 2010 12:15 PM To: [email protected] Subject: Re: Create damaged PDF file Hi Zemin, Are you able to extract a snippet of the fo that is supposedly missing this child element? If you can show that the fo is indeed well formed it would support the argument that the problem is in FOP. Thanks, Pete On Fri, Jan 22, 2010 at 5:05 PM, Hu, Zemin <[email protected]<mailto:[email protected]>> wrote: 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 ---------------------------------------------------------------------- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected]<mailto:[email protected]> For additional commands, e-mail: [email protected]<mailto:[email protected]>
