RE: Why is FO(P) a superior model than what most proprietary tool s propose
I would agree with the last statement about a high performance commercial all Java FO-PDF. However, there is really no need. Would anybody be interested in working on FOP with payment leaving the licensing as is? This way everybody can benefit. Anybody with experience interested? Patrick Lanphier The Artemis Group http://www.artemisgroup.com phone: 814-235-0444 fax: 800-582-9710 On Tue, 30 Apr 2002, Savino, Matt C wrote: We're using FOP in a production environment to render some management reports and a very complicated lab report. We've had to limit the management reports to about 2000 rows (~50 page PDF) because of FOP's memory issues w/large PDFs. Also I worry about serious slowdown if we ever get 3 or 4 users on the same instance of the app server all running a decent sized PDF at once. Does anyone know if wrapping FOP in a session bean would allow me to distribute processing around to unused servers or otherwise handle the java.lang.outOfMemoryError better? (We're on Weblogic 6.1) I compared FOP to RenderX from XEP. RenderX was the only solution that really mathces FOP's profile (XSL:FO based, java-based or at least platform neutral, no extra servers to run or programs to install - if there are any more out there, please post). For the report I was running, FOP was about 10 times faster than RenderX. But from most accounts performance between the two should similar. I figure there must be something particular about my stylesheet that RenderX didn't like. So I called XEP to see what kind of support my interest in purchasing their $5k/cpu product might garner. They weren't very helpful but did say they were insanely busy. I have a feeling if you could come up with a high-performing commerical all Java FO-PDF engine, you'd be very rich very quick. Matt Savino
RE: Why is FO(P) a superior model than what most proprietary tool s propose
From: Bob Leif To: Matt Savino et al. I believe that, good Ada app-server, is covered by the following abbreviated version of a posting from Pascal Obry, which I received from Team-Ada. Since JGNAT is an Ada compiler that produces J codes, you may not need a translator. Parenthetically, I have nothing against J codes. I believe that the translators from Java to Ada do exist and suggest that you post to Team-Ada to obtain more information. However if I remember correctly, direct translation from Java to Ada produces code that has a large number of pointers, which are not normally present in Ada code. Since Quest Diagnostics produces medical software, you will find the high level of safety associated with a validated Ada compiler to be suitable for a regulated industry. I will gladly send you some of my publications that are in PDF form. --- Pascal Obry [EMAIL PROTECTED]; Team Ada: Ada Advocacy Issues (83 95) [EMAIL PROTECTED] A W S - Ada Web Server 1.2 release / SOAP 0.9 Authors: Dmitriy Anisimkov Pascal Obry April 29th, 2002, Dmitriy Anisimkov and I are very happy to announce the availability of the AWS 1.2 release. The API could change slightly at this stage but should be fairly stable now. AWS stand for Ada Web Server. It is not a real Web Server like Apache. It is a small yet powerful HTTP component to embedded in any applications. It means that you can communicate with your application using a standard Web browser and this without the need for a Web Server. AWS is fully developed in Ada with GNAT. AWS support SOAP, Server Push, HTTPS/SSL, client HTTP, hotplug modules... We have worked very hard to make this release as stable as possible. Note that Hotplug modules are very nice but have a potentially security hole as it is implemented today. A new secure implementation will be proposed in a future version. The SOAP implementation has been validated on http://validator.soapware.org/. Pointers: - AWS User's Mailing List: http://lists.act-europe.fr/mailman/listinfo/aws AWS Home Page (sources and documentation): http://libre.act-europe.fr/ Templates_Parser sources: Templates_Parser module (sources and documentation) is provided with AWS distribution. Latest version of this module and the documentation can be found at: http://perso.wanadoo.fr/pascal.obry/contrib.html http://perso.wanadoo.fr/pascal.obry/templates_parser.html Templates_Parser is a very useful add-on for AWS. You should have a look at it if you plan to develop a Web service. Templates_Parser permits to completely separate the HTML design from the Ada code. Some other Templates engine are WebMacro, FreeMarker, PHP, ASP, JSP and Velocity. All of them are based on explicit iterators (#foreach with a variable) where Templates_Parser is based on implicit ones (you use a more intuitive table iterator). Be sure to check the documentation. Only the Velocity project has the goal to support complete separation of HTML design and code. GNU/Ada - GNAT You need at least version 3.14 to use AWS 1.2. ftp://cs.nyu.edu/pub/gnat/ XMLada (optional): You need this library only if you want to use AWS SOAP feature. You need at least XMLada 0.7.1. http://libre.act-europe.fr/ Socket binding: Since AWS 1.2 you need at least version 1.0 of the Socket binding. for Win32: http://perso.wanadoo.fr/pascal.obry/contrib.html http://vagul.tripod.com/adasockets.tgz for UNIX: http://www.rfc1149.net/devel/adasockets POSIX Binding (optional) :..(Truncated) --- -Original Message- From: Savino, Matt C [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 2:39 PM To: '[EMAIL PROTECTED]' Subject: RE: Why is FO(P) a superior model than what most proprietary tool s propose From: Matt Savino To: Bob Leif Sounds great. Tell me where I can get a good Ada app-server and a Java-Ada translator for all the existing code--and I'll run it by the corporate brass. Matt Savino -Original Message- From: Robert C. Leif [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 2:35 PM To: [EMAIL PROTECTED] Subject: RE: Why is FO(P) a superior model than what most proprietary tool s propose From: Bob Leif To: Matt Savino It sounds like you need the performance of an efficient compiled language that performs wherever possible its inheritance at compile rather than run time. Ada is an ISO standard which is available as a GNU compiler, GNAT. It should be noted that Java is a proprietary language owned by SUN. -Original Message- From: Savino, Matt C [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 2:01 PM To: '[EMAIL PROTECTED]' Subject: RE: Why is FO(P) a superior model than what most proprietary tool
Re: Why is FO(P) a superior model than what most proprietary tool s propose
Patrick, If I read you right, I think the answer to that would be a resounding cry of Yes all round. You will certainly get one from me. What did you have in mind? Peter Patrick Lanphier wrote: I would agree with the last statement about a high performance commercial all Java FO-PDF. However, there is really no need. Would anybody be interested in working on FOP with payment leaving the licensing as is? This way everybody can benefit. Anybody with experience interested?
RE: Why is FO(P) a superior model than what most proprietary tools propose
That's a big yes from me as well. Cheers Tim -Original Message- From: Peter B. West [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 May 2002 15:50 To: [EMAIL PROTECTED] Subject: Re: Why is FO(P) a superior model than what most proprietary tools propose Patrick, If I read you right, I think the answer to that would be a resounding cry of Yes all round. You will certainly get one from me. What did you have in mind? Peter Patrick Lanphier wrote: I would agree with the last statement about a high performance commercial all Java FO-PDF. However, there is really no need. Would anybody be interested in working on FOP with payment leaving the licensing as is? This way everybody can benefit. Anybody with experience interested? The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network.
[xsl] XSLTInputHandler error
Hi Gurus, I have been struggling with the convertion to PDF using FOP. It was working well for the past few weeks and all of a sudden I am getting this exception error and I have tried everything I could think of. Now, I am seeking for your help The exception error occurs on the call to XMLReader p=ih.getParser(); I have tried both the fop versions 0.20.3 and 0.20.1. both are producing the same error. Please help me get going! Thank you Oliver __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Anything for a non-programmer to do?
(B (B (BHi: (B (BIs there anything that a non-programmer (Bcan do to help the FOP project? I'm a technical writer. Is there anything (Binvolving documentation that needs to be done? (B (BMatthew
Re: FOP: Page Orientation in Postscript
I've had similar experiences within GhostView, but I haven't found out yet what's missing. Maybe it's the missing BoundingBox DSC comment, although adding that manually didn't help. It's likely that a setpagedevice command might solve that, but I haven't investigated yet. Please tell me if you find anything. I was just mucking around with Ghostscript to see what it could do, and used it to turn a FOP-produced postscript file into PDF. It came out in portrait when it should have been landscape, and I can't work out how to stop this happening. If I make the PDF using FOP it comes out as it should. Manually editing the .ps file produced by FOP has so far only given me both my page and my page contents rotated 90 degrees - not much use. Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Tel. +41 41 317 2020 - Fax +41 41 317 2029 Internet http://www.outline.ch
Re: fonts
This means the Java VM can't load the class in the error message. The clue is to supply the necessary jar files in the classpath. This involves the -cp parameter. I suggest that if you plan to use Java in the future that you at least read about some basics on launching the Java VM. The documentation about the TTFReader is not 100% correct, because the -cp parameter has been left out. For a Java programmer this becomes clear in a second. :-) Just use the same -cp parameter as shown above on that particular page for the Type 1 fonts. You may have to adjust the filenames because the jars often have version numbers in their name and the documentation is not updated every time. I hope this helps. I'm trying to create a few font metrics files. Here's the command I'm using: C:\Program Files\FOP\fop-0.20.3java org.apache.fop.fonts.apps.TTFReader -ttcname HGRM C:\Windows\Fonts\HGRM.TTC hgrm.xml And this is the error message I get: Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/fonts/apps/TTFReader I don't know s**t about Java programming but I guess this means that my command wasn't good or I'm missing something. How do I fix this? Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Tel. +41 41 317 2020 - Fax +41 41 317 2029 Internet http://www.outline.ch
RE: FOP: Page Orientation in Postscript
Hello Jeremias, It looks like it could be a bit more complicated than some missing commands. The reason I was doing this was that I wanted uncompressed PDF as a template: FOP's great but a bit slow for 200-odd near-identical documents. In the end what I did was make the PDF in FOP and use Ghostscript to make an uncompressed version. It seems to have worked fine. So then I used Ghostscript to make a postscript version of the ok PDF and compared it to FOP version that had all the problems, but there was no difference in the commands that I could recognise, although there were plenty of differences amongst the gobbledegook below them - not very helpful I'm afraid. If anything turns up I will let you know, Regards, Tom Weissmann -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: 01 May 2002 12:41 To: [EMAIL PROTECTED] Subject: Re: FOP: Page Orientation in Postscript I've had similar experiences within GhostView, but I haven't found out yet what's missing. Maybe it's the missing BoundingBox DSC comment, although adding that manually didn't help. It's likely that a setpagedevice command might solve that, but I haven't investigated yet. Please tell me if you find anything.
Re: FOP: Page Orientation in Postscript
You can have that a lot simpler! Edit the config.xml in the conf directory and remove all entries in list für the stream-filter-list. You then have to rebuild FOP. That way, you get an uncompressed PDF directly. It looks like it could be a bit more complicated than some missing commands. The reason I was doing this was that I wanted uncompressed PDF as a template: FOP's great but a bit slow for 200-odd near-identical documents. In the end what I did was make the PDF in FOP and use Ghostscript to make an uncompressed version. It seems to have worked fine. So then I used Ghostscript to make a postscript version of the ok PDF and compared it to FOP version that had all the problems, but there was no difference in the commands that I could recognise, although there were plenty of differences amongst the gobbledegook below them - not very helpful I'm afraid. Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Tel. +41 41 317 2020 - Fax +41 41 317 2029 Internet http://www.outline.ch
Re: Why is FO(P) a superior model than what most proprietary tool s propose
I just keep track of it myself. Declare a member variable of type int and increment it everytime a request comes in and decrement it after the request is serviced (in a finally{} block, watch out for exceptions messing up your counter). Make sure you synchronize access to it and it should work just fine. private synchronized int addThreadCount(int add) { return (count += add); } ... doGet(...) { int reportsRunning = addThreadCount(1); if (reportsRunning MAX_THREADS) { // Sleep thread until ready } try { // generate report } catch (Exception e) { // handle exception } finally { addThreadCount(-1); } } HTH, Scott - Original Message - From: Carter, Will [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 5:50 PM Subject: RE: Why is FO(P) a superior model than what most proprietary tool s propose this is interesting... can the servlet report how many threads it has at any given time? Do you know of any code examples of how this is done? thanks for the good idea... will
Adding Fonts - Must I use absolute paths in fopconfig.xml?
I've got my own servlet with FOP which reads a fopconfig.xml file that I deploy with the servlet. So far, so good. However, when I added fonts to fopconfig.xml, I had a bunch of problems until I hardcoded the path to the font under my servlet. Obviously, this is a problem because my servlet (supposedly) can be deployed anywhere and I need to use a relative path for the font files. I set the baseDir beforehand, but that doesn't seem to help. This works: font metrics-file=C:\tomcat\webapps\reportserver\Conf\arial.xml kerning=yes embed-file=C:\tomcat\webapps\reportserver\Conf\arial.ttf This doesn't: font metrics-file=Conf/arial.xml kerning=yes embed-file=Conf/arial.ttf Am I doing something wrong, or is this a bug? Thanks for any help, Scott
Trying to resolve memory exception through correct use of page se quencing
Hi, I'm having a problem rendering a large file (500 plus pages) using FOP. Fop eventually causes my machine to run out of memory even though I'm allocating it 300mb. I think the problem is caused by me having a page sequence called detail page, into which my 500 pages worth of data is placed with a page break before each page full. BUT, this is all within the one page sequence which I think FOP is trying to render all at once. Ideally for each page full I would like to start a new page sequence and thus allow FOP only render one page at a time. Does this sound to anybody like the right way to go about this? My page sequence master is as follows: fo:page-sequence-master master-name=reportDetails fo:repeatable-page-master-reference master-name=detailPage/ /fo:page-sequence-master I then start my page using: fo:page-sequence master-reference=reportDetails initial-page-number=2 Then when rendering FOP throws the following exception: - java.lang.NullPointerException at org.apache.fop.fo.pagination.PageSequence.getNextPageMaster(PageSequence.jav a:526) at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:334) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:268) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182) at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403) at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator .java:1550) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM LDocumentScanner.java:1204) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.apache.fop.apps.Driver.render(Driver.java:481) at org.apache.fop.apps.Driver.run(Driver.java:554) Apologies for the length of this message but can anybody advise me? Best Regards, John Bourke *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Cedar Plc takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Cedar Plc grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused.
Re: Why is FO(P) a superior model than what most proprietary tool s propose
On Tuesday 30 April 2002 09:08 pm, you wrote: I would agree with the last statement about a high performance commercial all Java FO-PDF. However, there is really no need. Would anybody be interested in working on FOP with payment leaving the licensing as is? This way everybody can benefit. Anybody with experience interested? Patrick Lanphier Count me in. Rich Dunn Arkona, Inc.
FOP memory consumption
Hi, I'm new to FOP and followed the discussions on this list for the last few days since I'm currently trying to use XSL:FO to produce the PDF documentation for a project database which is in XML format. While I'm very satisfied with the resulting output, I have strong doubts about the usability of FOP in our environent due to its huge memory requirements. Although I currently only included about 50% of the contents of the database, FOP requires around 250MB of memory for the 110-page output PDF, so I would estimate the memory requirements for the total contents to ~512MB and since this is not a server-based environment, this memory would have to be available on every box. From what I've read on the list, I'm sure this is due to excessive usage of forward references and large (partly nested) tables spanning multiple pages. However, this is an absolute requirement for our documentation. So, I have two questions/suggestions: 1) Wouldn't it be possible to let FOP create the output in two steps like for instance (La)TeX does. Doing a dry run first only to calculate the page references, store them somewhere, and then produce the actual output in a second run. 2) Are there plans to port FOP to C/C++ sometime? I guess that at least part of the memory consumption is to be blamed on Java and IIRC the underlying Xerces and Xalan are already available as C++ versions, so why not FOP? Regards, Bernd
Re: I get a mysterious NoClassDefFoundError
Devon- I think you're missing a jar in there. My call to FOP includes the following -cp parameter: -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar I didn't see the path to the jimi-1.0,jar in your classpaths, and I'm not sure what ant.jar is. I guess including the path to jimi.jar would be my first attempt. Just out of curiosity, why aren't you using the fop.bat that comes in the downloadable package? -Jeff L'eau [EMAIL PROTECTED]To: [EMAIL PROTECTED] o.com cc: Subject: I get a mysterious NoClassDefFoundError 05/01/2002 10:43 AM Please respond to fop-user Hi, I'm new to the list. I don't have any clue why this is happening to me. I've spent the past 4 hours trying to figure this out. I stumbled onto a similar error message in the archives here, and it helped me realize I needed to add the classpaths, but I'm still having the error. I'm using the latest version of FOP, with J2SDK 1.4. C:\xsl\buildjava -cp c:\xsl\libs\ant.jar;c:\xsl\libs\avalon-framework-4.0.jar;c: \xsl\lib\batik.jar;c:\xsl\lib\logkit-1.0.jar;c:\xsl\lib\xalan-2.0.0.jar;c: \xsl\lib\xerces-1.2.3.jar;c:\xsl\build\fop.jar -jar fop.jar -xml xmlfoRef.xml -xsl xml2pdf.xsl -pdf output.pdf Exception in thread main java.lang.NoClassDefFoundError: org/apache/log/format/Formatter at org.apache.fop.apps.Fop.main(Fop.java:16) I just don't get it, and I'm on the verge of going postal. Thanx in advance for all help, guidance, or suggestions. BTW, who do I send a message to about the FOP website and documentation seriously needing to give workable examples of how to run the program? It quite misled me and I nearly gave up on it (but couldn't find another free XSL-FO renderer as an alternative so I had to return to this stressful thing). Devon __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com
Re: I get a mysterious NoClassDefFoundError
Hi Jeff, Now I'm confused. I downloaded FOP from http://xml.apache.org/dist/fop/ , just this morning. It didn't include a jimi.jar and it didn't include any .bat files either. I included ever .jar file that was in my lib directory, in the classpath. Is there another place that I can download from? I'm using Windows ME, but I don't think that would matter would it (since it's all java)? Devon --- [EMAIL PROTECTED] wrote: Devon- I think you're missing a jar in there. My call to FOP includes the following -cp parameter: -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar I didn't see the path to the jimi-1.0,jar in your classpaths, and I'm not sure what ant.jar is. I guess including the path to jimi.jar would be my first attempt. Just out of curiosity, why aren't you using the fop.bat that comes in the downloadable package? -Jeff __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com
stress test FOP in a servlet?
What is the best way to stress test fop in a servlet find out how many users it would take to produce out of memory errors? is there an easy way to send multiple concurrent requests to a servlet? thanks, will
RE: stress test FOP in a servlet?
Just make a frameset that loads as many identical pages as you want. You'll get near concurrent loading. Or you can shell out $30k for loadrunner. Matt Savino -Original Message- From: Carter, Will [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 01, 2002 8:58 AM To: '[EMAIL PROTECTED]' Subject: stress test FOP in a servlet? What is the best way to stress test fop in a servlet find out how many users it would take to produce out of memory errors? is there an easy way to send multiple concurrent requests to a servlet? thanks, will
RE: stress test FOP in a servlet?
You can use Loadrunner by Mercuryinteractive to do stress test. http://www-heva.mercuryinteractive.com/products/loadrunner/ -Original Message- From: Carter, Will [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 01, 2002 11:58 AM To: '[EMAIL PROTECTED]' Subject: stress test FOP in a servlet? What is the best way to stress test fop in a servlet find out how many users it would take to produce out of memory errors? is there an easy way to send multiple concurrent requests to a servlet? thanks, will
Re: Trying to resolve memory exception through correct use of page se quencing
John, Yes, minimising page-sequence length will reduce memory consumption. Peter John Bourke wrote: Ideally for each page full I would like to start a new page sequence and thus allow FOP only render one page at a time. Does this sound to anybody like the right way to go about this?
Re: I get a mysterious NoClassDefFoundError
There should be two files: fop.sh (for Unix) and fop.bat (for windows) If they are not there, I would download fop again Carlos On 05/01/02 8:40, L'eau [EMAIL PROTECTED] wrote: Hi Jeff, Now I'm confused. I downloaded FOP from http://xml.apache.org/dist/fop/ , just this morning. It didn't include a jimi.jar and it didn't include any .bat files either. I included ever .jar file that was in my lib directory, in the classpath. Is there another place that I can download from? I'm using Windows ME, but I don't think that would matter would it (since it's all java)? Devon --- [EMAIL PROTECTED] wrote: Devon- I think you're missing a jar in there. My call to FOP includes the following -cp parameter: -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalo n-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar I didn't see the path to the jimi-1.0,jar in your classpaths, and I'm not sure what ant.jar is. I guess including the path to jimi.jar would be my first attempt. Just out of curiosity, why aren't you using the fop.bat that comes in the downloadable package? -Jeff __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- Carlos E. Araya ---+ WebCT Administrator/Trainer P | California Virtual Campus - | C/O De Anza College G | 21250 Stevens Creek Blvd ---+ Cupertino, CA 95014 email [EMAIL PROTECTED] web http://www.cvc1.org/ (work) http://www.silverwolf-net.net (personal) phone 408 257 0420 (work) PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756 If there is artificial intelligence, doesn't that imply there is also artificial stupidity!
struggling with fop
Hi Gurus, I have been struggling with the convertion to PDF using FOP. It was working well for the past few weeks and all of a sudden I am getting this exception error and I have tried everything I could think of. Now, I am seeking for your help The exception error occurs on the call to I have tried both the fop versions 0.20.3 and 0.20.1. both are producing the same error. Please help me get going! Thank you Oliver xml to pdf code * Driver dr=new Driver(); dr.setRenderer(Driver.RENDER_PDF); InputHandler ih=new XSLTInputHandler(xmlFile,xslFile); XMLReader p=ih.getParser(); dr.setOutputStream(new FileOutputStream(pdfFile)); dr.render(p,ih.getInputSource()); ** my classpath ** C:\Fop-0.20.1\build\fop.jar;c:\inetpub\classes\sax2.jar;C:\Fop-0.20.1\lib\jimi-1.0;C:\Fop-0.20.1\lib\xalan-2.0.0.jar;C:\Fop-0.20.1\lib\xerces-1.2.3.jar;c:\inetpub\classes\jaxp.jar;C:\inetpub\classes\xml4j.jar;C:\inetpub\classes\xt.jar;C:\Fop-0.20.1\lib\batik.jar;C:\Fop-0.20.1\lib\ant.jar; --- ** Exception error ** Exception in thread main org.apache.fop.apps.FOPException at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java: 110) at test1.main(test1.java:118) - java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java: 103) at test1.main(test1.java:118) Caused by: org.apache.fop.apps.FOPException: javax.xml.transform.TransformerExce ption: org.xml.sax.SAXParseException: The string -- is not permitted within co mments. at org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.ja va:106) ... 6 more - org.apache.fop.apps.FOPException: javax.xml.transform.TransformerException: org. xml.sax.SAXParseException: The string -- is not permitted within comments. at org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.ja va:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java: 103) at test1.main(test1.java:118) __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Re: Trying to resolve memory exception through correct use of page se quencing
John Bourke wrote: I think the problem is caused by me having a page sequence called detail page, into which my 500 pages worth of data is placed with a page break before each page full. BUT, this is all within the one page sequence which I think FOP is trying to render all at once. FOP tries to render page by page, however, ending a page sequence will usually free additional memory (perhaps a lot of additional memory, according to the stories on the list). Then when rendering FOP throws the following exception: - java.lang.NullPointerException at org.apache.fop.fo.pagination.PageSequence.getNextPageMaster(PageSequence.jav a:526) This has nothing to do with a memory problem. You probably have referenced a page master which doesn't exist, or hit another FOP bug. Can you post your layout-master-set? J.Pietschmann
FOP justifying problem
Hello. I just started using FOP and I really like it so far. However I'm running into a problem and noticed it mentioned in this lists archives, so I joined. I have a DocBook XML that I've converted to FO via XSLTproc. I've rendered it using both RenderX (the eval) and FOP. The diffrence is that areas of the document that should no apply to normal justifying rules (namely screen and programlisting) are being justified. As mentioned by someone on this list eariler, I modified my docbook-xsl-0.50/fo/param.xsl alignment parameter to left instead of justify, which fixes the problem, but isn't all that pretty. I'm bothered by this because when I take the same FO file and run it through RenderX and FOP, the RenderX PDF looks perfect. It has everything nicely justified throughout to fill the page with the exception of the programlisting and screen sections which are aligned from the left as they should be, since they don't apply to the standard justification rules. When I run this same FO through FOP I get a doc where everything is justified the same, whether or not it's in a screen, so my sample output (from commands and stuff) is almost unreadable since the columns don't line up. Because of this, I can't seem to blame the XSL as earlier mentioned and can only assume that this is a problem with FOP. Can someone please comment on this? I may or may not be right, and these are my observations. Thank You. benr
Re: FOP memory consumption
Bernd Brandstetter wrote: memory would have to be available on every box. From what I've read on the list, I'm sure this is due to excessive usage of forward references and large (partly nested) tables spanning multiple pages. However, this is an absolute requirement for our documentation. From my experience, absolute requirements often vanish in smoke after you told how much it will cost. There are a few cases where page X of Y is required, for example for certain legal documents, more often than not it is required just because people got used to it. Also, a TOC often can be put at the end of the PDF, people can shuffle the paper by themself if they need. For people reading on screen, a TOC is almost always of much less use than bookmarks anyway. Of course, there are the hard cases of see page X, where there is no way to avoid forward references. Even fairly big tables usually aren't nearly as much of a problem than forward references (particularly those the last page), however, the bulk of the data necessary for rendering the table will be freed only after the page where the table ends has been rendered. That's the rationale behind avoid tables spanning pages. In reports, where the rows are fairly regular, you could try to implement your own pagination at the XSLT level. So, I have two questions/suggestions: 1) Wouldn't it be possible to let FOP create the output in two steps like for instance (La)TeX does. Doing a dry run first only to calculate the page references, store them somewhere, and then produce the actual output in a second run. Yes, this has already been discussed a few times. You could implement an extension element which writes the current page in an XML file and use this whereever you have elements reffered to, for example replace fo:block id=img-21... by fo:blockfox:writepage id=img-21/... and then refer to this file using document() in the second XSLT pass for putting page numbers into the result, for example instead of xsl:template match=xref xsl:textSee page /xsl:text fo:page-number-citation ref-id=[EMAIL PROTECTED]/ /xsl:template use xsl:template match=xref xsl:textSee page /xsl:text xsl:value-of select=document('pgnum.xml')/*/page[id=current()/@refid/ /xsl:template 2) Are there plans to port FOP to C/C++ sometime? I guess that at least part of the memory consumption is to be blamed on Java and IIRC the underlying Xerces and Xalan are already available as C++ versions, so why not FOP? There is a lot of potential for optimisations still in Java. Currently the efford is concentrated on making FOP conformant to the spec and implement all necessary stuff, streamlining will mainly be deferred until later. Bear in mind that C/C++ is not necessarily better with regard to memory consumption than Java, and can be significantly harder to debug. And no amout of optimisation will fix memory problems if you refer to the last page on the first. Even the expensive commercial FO processors suffer from this. Hope this clarifies some matters. J.Pietschmann
Re: Passing page numbers to an external servlet
Kevin Pearcey wrote: This won't work as it attempts to place the fo:page-number as an attribute of fo:external-graphic. This is the problem I have and as far as I can tell there is no way of solving it. It seems like xsl:fo just doesn't have the power to do much page conditional things without separate page masters. This is correct. Note that fo:page-number does not return the page number for use elsewhere, there is no such concept in XSLFO. It isn't some sort of macro language where fo:page-number is replaced by the actual page number either. The fo:page-number element *renders* the page number. You can implement a FOP extension element to do what you want. J.Pietschmann
RE: Why is FO(P) a superior model than what most proprietary tool s propose
how do you get the server to queue other requests? will -Original Message- From: Scott Moore [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 4:29 PM To: '[EMAIL PROTECTED]' Subject: RE: Why is FO(P) a superior model than what most proprietary tool s propose The short answer is you can't expect a large number of users to ask for reports at the same time and not run into memory problems. Believe me, I've stress tested my report server and hit this wall quickly. However, if you write your server to only run X number of reports at once and queue any other requests until other reports are finished, you can avoid those problems and achieve a robust and stable FOP server. At that point, adding more servers can get you better scalability. So far, this has worked well for me. -Original Message- From: Carter, Will [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 5:29 PM To: '[EMAIL PROTECTED]' Subject: RE: Why is FO(P) a superior model than what most proprietary tool s propose This one has got me scared... I am in the process of working out an embedded (servlet) FOP solution for some financial reporting. The generated pdfs are probably around 20 pages.. does anyone have any info about memory requirements or problems I will run into with multiple concurrent users?