Re: FOP Servlet Performance Problem
On Nov 28, 2007, at 16:46, Noya Paolo wrote: Hi Sorry for the late reply. As Jeremias already indicated, profiling is one option. There are various tools and there is lots of documentation available on the internet concerning profiling of the JVM. Just Google around for 'java profiling' and that should help you on your way. Other than that, I see one possible cause for your issue: snip / Source src = new StreamSource(new StringReader(theXML)); While there is nothing inherently wrong about the above, depending on the implementation of StreamSource it is possible that this causes underlying calls to StringReader.read() instead of StringReader.read (char[], int, int), which means that your source XML gets read in one character at a time, which in turn would cause a noticeable slowdown... No idea if it would help here, but maybe one of my first tries would be: Source src = new StreamSource(new BufferedReader(new StringReader (theXML))); HTH! Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP creates only blank pages
On Nov 30, 2007, at 11:45, Michael Siepmann wrote: Hi we have a content management system, which can create FO and with the help of FOP PDF. The system uses an Apache Tomcat 5 and we have used FOP 0.20. This combination works. But now, I've switched to FOP 0.94 and changed the code which creates the PDF. At this moment, FOP only creates white pages without any text. The number of pages is correct, for example when I create a FO with 2 pages, 2 pages will be in the PDF, but all are white. The FO-Code is still ok, which can be demonstrated by copying the FO-Code to a special test-program. Even the new code, which is copied to this test-program. But I don't see the problem, why the same code doesn't work inside the Tomcat. snip / Very long shot, but could it have something to do with the encryption? Can you try commenting out the following line: userAgent.getRendererOptions().put(encryption-params, new PDFEncryptionParams(null, null, true, false, false, false)); Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]