RE: Memory Leak issue -- FOP
Hi, Craig is right, it's it's not a "memory leak", but rather memory kept active too long, i.e. after processing is done. I saw the same thing when I integrated FOP into an application over here. It is basically caused by the SAX implementation that you use as it caches the SAX-Handler, where the FOP-SAX-Handler keeps references to a lot of internal stuff. In my case it did this in a ThreadLocal, so with different threads using FOP I ended up having this memory kept in every thread, which accumulated to quite an amount of memory depending on the usage pattern. I tried various different ways to solve this, when using SAX/XML provided as part of Sun JDK 1.6 the following was removing this memory bloat: Result result = new SAXResult(fop.getDefaultHandler()); SAXSource source = new SAXSource(inputSource); // set our own XMLReader to prevent Sun XML from caching stuff in ThreadLocals which keeps FOP in memory // we want to free up any FOP resources when not reporting and for this ThreadLocals is very bad, especially // as we are called in different threads via REST and Scheduling thread pools! source.setXMLReader(XMLReaderFactory.createXMLReader()); transformer.transform(source, result); if (logger.isLoggable(Level.FINE) && fop.getResults() != null) { logger.info("Processing resulted in " + fop.getResults().getPageCount() + " pages."); //$NON-NLS-1$ //$NON-NLS-2$ } } Maybe a similar thing solves this for you as well. Dominik. -Original Message- From: Craig Ringer [mailto:cr...@postnewspapers.com.au] Sent: Donnerstag, 26. August 2010 02:35 To: fop-users@xmlgraphics.apache.org Cc: Hamed Mohammed Subject: Re: Memory Leak issue -- FOP On 26/08/2010 3:39 AM, Hamed Mohammed wrote: > Hello Users: > Any idea on how to solve the FOP memory leak issue. Below snap shots are > taken from Eclipse Memory Analyzer of a IBM portable heap dump. What makes you think that's a memory leak? It's a large amount of memory consumption, sure. But is there any evidence it's growing over time? Or growing whenever a new document is processed, without shinking again when the document is finished? How do you know it's not your own code keeping references to the fop instances around? Can you produce a small, self-contained program that demonstrates the leak? If your real question is "why is FOP using so much memory" ... well, to answer that it'd be necessary to know more about your XSL-FO input and the associated resources like graphics. -- Craig Ringer Tech-related writing at http://soapyfrogs.blogspot.com/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Greek text in the HelloWorld example causes Severe Exception
Ah, ignore my last, I see this has already been suggested and fixed. Regarding glyph selection, you need to ensure that the font contains a CMAP entry for the required characters, namely: Νίκος I just ran this on FOP 1.0 on Mac OS X 10.6 using both Arial and Times New Roman, and both render successfully. G. On Mon, Aug 30, 2010 at 9:06 AM, Glenn Adams wrote: > Have you checked that you are using UTF-8 encoding in your FO file? If you > read the exception below, it is complaining about the coding in the input > file. > > G. > >
Re: Greek text in the HelloWorld example causes Severe Exception
Have you checked that you are using UTF-8 encoding in your FO file? If you read the exception below, it is complaining about the coding in the input file. G. On Mon, Aug 30, 2010 at 12:35 AM, Nikolaos Paraschou wrote: > Hello, > > This is the first time I am using Apache FOP. I started with the quick > start guide and the Hello World example which worked just fine (with > Latin characters). I decided to replace "Frank" with a name in Greek > characters, lets say "Νίκος". > > I copied "fop.xonf" to "userconfig.xml" and edited the tag to > look like this: > > > > C:\Users\nikos\MyFonts > > > Then I copied arial.ttf from C:\Windows\Fonts to > C:\Users\nikos\MyFonts. I opened arial.ttf with the Windows program > Character Map to inspect it and make sure it contains Greek glyphs. It > does contain Greek glyphs. > > When I ran the command: > > fop -c userconfig.xml -xml name.xml -xsl name2fo.xsl -pdf name.pdf > > I got back the following severe exception: > > C:\Users\nikos\Desktop>fop -c myconfig.xml -xml name.xml -xsl name2fo.xsl > -pdf n > ame.pdf > 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.apps.FopFactoryConfigurator configure > INFO: Default page-height set to: 11in > 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.apps.FopFactoryConfigurator configure > INFO: Default page-width set to: 8.26in > 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.cli.Main startFOP > SEVERE: Exception > javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 > sequenc > e. >at > org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302) >at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) >at org.apache.fop.cli.Main.startFOP(Main.java:174) >at org.apache.fop.cli.Main.main(Main.java:205) > Caused by: javax.xml.transform.TransformerException: Invalid byte 2 of > 2-byte UT > F-8 sequence. >at > org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm > pl.java:780) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:756) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1284) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1262) >at > org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) >... 3 more > > - > > ; SystemID: file:/C:/Users/nikos/Desktop/name.xml; Line#: 1; Column#: 7 > javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 > sequenc > e. >at > org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm > pl.java:780) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:756) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1284) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1262) >at > org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) >at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) >at org.apache.fop.cli.Main.startFOP(Main.java:174) >at org.apache.fop.cli.Main.main(Main.java:205) > > > I am using FOP version 1.0 in Windows 7 x64 and java version "1.6.0_21". > > Thank you, > Nikos > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > >
Re: Greek text in the HelloWorld example causes Severe Exception
We made some progress I think. I converted "name.xml", "name2fo.xsl" and "myconfig2.xml" from ANSI to UTF-8 (all three files begin with ) and then ran the command: fop -c myconfig2.xml -xml name.xml -xsl name2fo.xsl -pdf name.pdf which produced the following output: C:\Users\nikos\Desktop>fop -c myconfig2.xml -xml name.xml -xsl name2fo.xsl -pdf name.pdf 30 +Ϋή 2010 12:37:38 ΏΉ org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "-" (0x3af, iotatonos) not available in font "Symbol". The word inside "name.xml" is "Νίκος". After the conversion the pdf displays "Hello, Ν#κος!" (with the name aligned a bit lower than Hello,). Obviously, FOP isn't looking for iotatonos inside Arial.ttf or Freesans.ttf (I've tried it with both fonts), but instead it is trying to find iotatonos inside font "Symbol". Why is this happening? I opened Arial.ttf and FreeSans.ttf with Character Map. The description these two fonts have for the character " ί " is: "U+03AF: Greek Small Letter Iota With Tonos" So, FOP is looking for " ί " in Arial and FreeSans as "iotatonos" but it's not there with that descritpion. Maybe that's why it's looking in font "Symbol" later on (correct me if I am wrong). How could this problem be solved? Thank you again, Nikos 2010/8/30 Spyros Papantoniou : > The "Invalid byte 2 of 2-byte UTF-8 se" points to not proper UTF encoding > somewhere. > I tested FOP 0.95 and it works with Greek! > Do not use FreeSans, as it does include Greek glyphs [I found out the hard > way..] > I use Arial.ttf on the Mac with success. > > > Are all your files UTF8 and their header UTF-8? like: > > > > Spyros Papantoniou, PhD > > > > > > > On 30 Αυγ 2010, at 12:10 π.μ., Nikolaos Paraschou wrote: > >> First of all, thank you for your reply Spyros. >> >> I created myconfig2.xml with exactly the following code: >> >> >> >> >> >> >> >> >> >> >> >> >> >> and then I run the command: >> >> fop -c myconfig2.xml -xml name.xml -xsl name2fo.xsl -pdf name.pdf >> >> which produced again a severe exception: >> >> C:\Users\nikos\Desktop>fop -c myconfig2.xml -xml name.xml -xsl name2fo.xsl >> -pdf >> name.pdf >> 29 +Ϋή 2010 11:57:59 ΉΉ org.apache.fop.cli.Main startFOP >> SEVERE: Exception >> javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 >> sequenc >> e. >> at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302) >> at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) >> at org.apache.fop.cli.Main.startFOP(Main.java:174) >> at org.apache.fop.cli.Main.main(Main.java:205) >> Caused by: javax.xml.transform.TransformerException: Invalid byte 2 of >> 2-byte UT >> F-8 sequence. >> at >> org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm >> pl.java:780) >> at >> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp >> l.java:756) >> at >> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp >> l.java:1284) >> at >> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp >> l.java:1262) >> at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) >> ... 3 more >> >> - >> >> ; SystemID: file:/C:/Users/nikos/Desktop/name.xml; Line#: 1; Column#: 7 >> javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 >> sequenc >> e. >> at >> org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm >> pl.java:780) >> at >> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp >> l.java:756) >> at >> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp >> l.java:1284) >> at >> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp >> l.java:1262) >> at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) >> at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) >> at org.apache.fop.cli.Main.startFOP(Main.java:174) >> at org.apache.fop.cli.Main.main(Main.java:205) >> >> >> Obviously I am missing something here. Any idea what might that be? >> >> Thank you, >> Nikos >> >> >> >> >> 2010/8/29 Spyros Papantoniou : >>> Better use something like: >>> >>> >>> >>> >>> >>> >> embed-url="file:///Users/sjp/Triboni8090/ginkgo/fopFonts/FreeSans.ttf"> >>> >>> >>> >>> >>> >>> >>> >>> I think you missed the actual filename in the declaration. >>> Greek works after 0.94 version though. >>> No Greek with 0.20! >>> >>> Spyros Papantoniou, PhD >>> SIP Ltd >>> Software Integration & Processes >>> Ag. Konstantinou 40 >>> GR-15124 Marousi >>> Tel: +30 210 6178270 >>> >>> >>> On 29 Αυγ 2010, at 7:35 μ.μ., Nikolaos Paraschou wrote: >>> >>> Hello, >>> >>> This is the first time I am using Apache FOP. I started with the quick >>> start guide and the Hello World example which worked just f
Re: Greek text in the HelloWorld example causes Severe Exception
Nikolaos Paraschou wrote: > This is the first time I am using Apache FOP. I started with the quick > start guide and the Hello World example which worked just fine (with > Latin characters). I decided to replace "Frank" with a name in Greek > characters, lets say "Νίκος". > > ; SystemID: file:/C:/Users/nikos/Desktop/name.xml; Line#: 1; Column#: 7 > javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 > sequenc > e. I suspect you have a bad second byte of a 2-byte UTF-8 sequence on line 1 of name.xml. (-: This is not a FOP question; the problem is happening when the XML parser tries to read your input XML file. I suspect that the editor you used to edit the XML file used ISO 8859-7 instead of UTF-8, but that you did not give an appropriate encoding declaration. The easiest way to avoid these problems is to instruct your editor to always save as UTF-8, which is one of the default encodings for XML, and needs no declaration. ~Chris -- Chris Maden, text nerd http://crism.maden.org/ > “I like being free, and that makes me an idiot, I suppose.” — Stan Rogers, “The Idiot” GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319 - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Greek text in the HelloWorld example causes Severe Exception
The "Invalid byte 2 of 2-byte UTF-8 se" points to not proper UTF encoding somewhere. I tested FOP 0.95 and it works with Greek! Do not use FreeSans, as it does include Greek glyphs [I found out the hard way..] I use Arial.ttf on the Mac with success. Are all your files UTF8 and their header UTF-8? like: Spyros Papantoniou, PhD On 30 Αυγ 2010, at 12:10 π.μ., Nikolaos Paraschou wrote: > First of all, thank you for your reply Spyros. > > I created myconfig2.xml with exactly the following code: > > > > > > > > > > > > > > and then I run the command: > > fop -c myconfig2.xml -xml name.xml -xsl name2fo.xsl -pdf name.pdf > > which produced again a severe exception: > > C:\Users\nikos\Desktop>fop -c myconfig2.xml -xml name.xml -xsl name2fo.xsl > -pdf > name.pdf > 29 +Ϋή 2010 11:57:59 ΉΉ org.apache.fop.cli.Main startFOP > SEVERE: Exception > javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 > sequenc > e. >at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302) >at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) >at org.apache.fop.cli.Main.startFOP(Main.java:174) >at org.apache.fop.cli.Main.main(Main.java:205) > Caused by: javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte > UT > F-8 sequence. >at > org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm > pl.java:780) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:756) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1284) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1262) >at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) >... 3 more > > - > > ; SystemID: file:/C:/Users/nikos/Desktop/name.xml; Line#: 1; Column#: 7 > javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 > sequenc > e. >at > org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm > pl.java:780) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:756) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1284) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1262) >at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) >at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) >at org.apache.fop.cli.Main.startFOP(Main.java:174) >at org.apache.fop.cli.Main.main(Main.java:205) > > > Obviously I am missing something here. Any idea what might that be? > > Thank you, > Nikos > > > > > 2010/8/29 Spyros Papantoniou : >> Better use something like: >> >> >> >> >> >> > embed-url="file:///Users/sjp/Triboni8090/ginkgo/fopFonts/FreeSans.ttf"> >> >> >> >> >> >> >> >> I think you missed the actual filename in the declaration. >> Greek works after 0.94 version though. >> No Greek with 0.20! >> >> Spyros Papantoniou, PhD >> SIP Ltd >> Software Integration & Processes >> Ag. Konstantinou 40 >> GR-15124 Marousi >> Tel: +30 210 6178270 >> >> >> On 29 Αυγ 2010, at 7:35 μ.μ., Nikolaos Paraschou wrote: >> >> Hello, >> >> This is the first time I am using Apache FOP. I started with the quick >> start guide and the Hello World example which worked just fine (with >> Latin characters). I decided to replace "Frank" with a name in Greek >> characters, lets say "Νίκος". >> >> I copied "fop.xonf" to "userconfig.xml" and edited the tag to >> look like this: >> >> >> >> C:\Users\nikos\MyFonts >> >> >> Then I copied arial.ttf from C:\Windows\Fonts to >> C:\Users\nikos\MyFonts. I opened arial.ttf with the Windows program >> Character Map to inspect it and make sure it contains Greek glyphs. It >> does contain Greek glyphs. >> >> When I ran the command: >> >> fop -c userconfig.xml -xml name.xml -xsl name2fo.xsl -pdf name.pdf >> >> I got back the following severe exception: >> >> C:\Users\nikos\Desktop>fop -c myconfig.xml -xml name.xml -xsl name2fo.xsl >> -pdf n >> ame.pdf >> 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.apps.FopFactoryConfigurator configure >> INFO: Default page-height set to: 11in >> 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.apps.FopFactoryConfigurator configure >> INFO: Default page-width set to: 8.26in >> 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.cli.Main startFOP >> SEVERE: Exception >> javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 >> sequenc >> e. >>at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302) >>at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) >>at org.apache.fop.cli.Main.startFOP(Main.java:174) >>at org.apache.fop.cli.Main.main(Mai
Re: Greek text in the HelloWorld example causes Severe Exception
First of all, thank you for your reply Spyros. I created myconfig2.xml with exactly the following code: and then I run the command: fop -c myconfig2.xml -xml name.xml -xsl name2fo.xsl -pdf name.pdf which produced again a severe exception: C:\Users\nikos\Desktop>fop -c myconfig2.xml -xml name.xml -xsl name2fo.xsl -pdf name.pdf 29 +Ϋή 2010 11:57:59 ΉΉ org.apache.fop.cli.Main startFOP SEVERE: Exception javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 sequenc e. at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) at org.apache.fop.cli.Main.startFOP(Main.java:174) at org.apache.fop.cli.Main.main(Main.java:205) Caused by: javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UT F-8 sequence. at org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm pl.java:780) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:756) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:1284) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:1262) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) ... 3 more - ; SystemID: file:/C:/Users/nikos/Desktop/name.xml; Line#: 1; Column#: 7 javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 sequenc e. at org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm pl.java:780) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:756) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:1284) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:1262) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) at org.apache.fop.cli.Main.startFOP(Main.java:174) at org.apache.fop.cli.Main.main(Main.java:205) Obviously I am missing something here. Any idea what might that be? Thank you, Nikos 2010/8/29 Spyros Papantoniou : > Better use something like: > > > > > > > > > > > > > > I think you missed the actual filename in the declaration. > Greek works after 0.94 version though. > No Greek with 0.20! > > Spyros Papantoniou, PhD > SIP Ltd > Software Integration & Processes > Ag. Konstantinou 40 > GR-15124 Marousi > Tel: +30 210 6178270 > > > On 29 Αυγ 2010, at 7:35 μ.μ., Nikolaos Paraschou wrote: > > Hello, > > This is the first time I am using Apache FOP. I started with the quick > start guide and the Hello World example which worked just fine (with > Latin characters). I decided to replace "Frank" with a name in Greek > characters, lets say "Νίκος". > > I copied "fop.xonf" to "userconfig.xml" and edited the tag to > look like this: > > > > C:\Users\nikos\MyFonts > > > Then I copied arial.ttf from C:\Windows\Fonts to > C:\Users\nikos\MyFonts. I opened arial.ttf with the Windows program > Character Map to inspect it and make sure it contains Greek glyphs. It > does contain Greek glyphs. > > When I ran the command: > > fop -c userconfig.xml -xml name.xml -xsl name2fo.xsl -pdf name.pdf > > I got back the following severe exception: > > C:\Users\nikos\Desktop>fop -c myconfig.xml -xml name.xml -xsl name2fo.xsl > -pdf n > ame.pdf > 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.apps.FopFactoryConfigurator configure > INFO: Default page-height set to: 11in > 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.apps.FopFactoryConfigurator configure > INFO: Default page-width set to: 8.26in > 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.cli.Main startFOP > SEVERE: Exception > javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 > sequenc > e. > at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302) > at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) > at org.apache.fop.cli.Main.startFOP(Main.java:174) > at org.apache.fop.cli.Main.main(Main.java:205) > Caused by: javax.xml.transform.TransformerException: Invalid byte 2 of > 2-byte UT > F-8 sequence. > at > org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm > pl.java:780) > at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:756) > at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1284) > at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1262) > at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) > ... 3 more > > - > > ; SystemID: file:/C:/Users/nikos/Desktop/name.xml; Line#: 1; Column#: 7 > javax.xml.trans
Xmlgraphics-commons-1.4 and fop-1.0 deployed to Maven central
I am pleased to inform you that for the benefit of our Maven users, xmlgraphics-commons-1.4 and fop-1.0, the recent releases of these two projects, have now been successfully deployed to Maven central. Simon -- Simon Pepping home page: http://www.leverkruid.eu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Greek text in the HelloWorld example causes Severe Exception
Better use something like: I think you missed the actual filename in the declaration. Greek works after 0.94 version though. No Greek with 0.20! Spyros Papantoniou, PhD SIP Ltd Software Integration & Processes Ag. Konstantinou 40 GR-15124 Marousi Tel: +30 210 6178270 On 29 Αυγ 2010, at 7:35 μ.μ., Nikolaos Paraschou wrote: > Hello, > > This is the first time I am using Apache FOP. I started with the quick > start guide and the Hello World example which worked just fine (with > Latin characters). I decided to replace "Frank" with a name in Greek > characters, lets say "Νίκος". > > I copied "fop.xonf" to "userconfig.xml" and edited the tag to > look like this: > > > > C:\Users\nikos\MyFonts > > > Then I copied arial.ttf from C:\Windows\Fonts to > C:\Users\nikos\MyFonts. I opened arial.ttf with the Windows program > Character Map to inspect it and make sure it contains Greek glyphs. It > does contain Greek glyphs. > > When I ran the command: > > fop -c userconfig.xml -xml name.xml -xsl name2fo.xsl -pdf name.pdf > > I got back the following severe exception: > > C:\Users\nikos\Desktop>fop -c myconfig.xml -xml name.xml -xsl name2fo.xsl > -pdf n > ame.pdf > 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.apps.FopFactoryConfigurator configure > INFO: Default page-height set to: 11in > 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.apps.FopFactoryConfigurator configure > INFO: Default page-width set to: 8.26in > 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.cli.Main startFOP > SEVERE: Exception > javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 > sequenc > e. >at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302) >at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) >at org.apache.fop.cli.Main.startFOP(Main.java:174) >at org.apache.fop.cli.Main.main(Main.java:205) > Caused by: javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte > UT > F-8 sequence. >at > org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm > pl.java:780) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:756) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1284) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1262) >at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) >... 3 more > > - > > ; SystemID: file:/C:/Users/nikos/Desktop/name.xml; Line#: 1; Column#: 7 > javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 > sequenc > e. >at > org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm > pl.java:780) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:756) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1284) >at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp > l.java:1262) >at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) >at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) >at org.apache.fop.cli.Main.startFOP(Main.java:174) >at org.apache.fop.cli.Main.main(Main.java:205) > > > I am using FOP version 1.0 in Windows 7 x64 and java version "1.6.0_21". > > Thank you, > Nikos > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org >
Greek text in the HelloWorld example causes Severe Exception
Hello, This is the first time I am using Apache FOP. I started with the quick start guide and the Hello World example which worked just fine (with Latin characters). I decided to replace "Frank" with a name in Greek characters, lets say "Νίκος". I copied "fop.xonf" to "userconfig.xml" and edited the tag to look like this: C:\Users\nikos\MyFonts Then I copied arial.ttf from C:\Windows\Fonts to C:\Users\nikos\MyFonts. I opened arial.ttf with the Windows program Character Map to inspect it and make sure it contains Greek glyphs. It does contain Greek glyphs. When I ran the command: fop -c userconfig.xml -xml name.xml -xsl name2fo.xsl -pdf name.pdf I got back the following severe exception: C:\Users\nikos\Desktop>fop -c myconfig.xml -xml name.xml -xsl name2fo.xsl -pdf n ame.pdf 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.apps.FopFactoryConfigurator configure INFO: Default page-height set to: 11in 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.apps.FopFactoryConfigurator configure INFO: Default page-width set to: 8.26in 29 ┴Ϋή 2010 7:17:22 ΉΉ org.apache.fop.cli.Main startFOP SEVERE: Exception javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 sequenc e. at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) at org.apache.fop.cli.Main.startFOP(Main.java:174) at org.apache.fop.cli.Main.main(Main.java:205) Caused by: javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UT F-8 sequence. at org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm pl.java:780) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:756) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:1284) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:1262) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) ... 3 more - ; SystemID: file:/C:/Users/nikos/Desktop/name.xml; Line#: 1; Column#: 7 javax.xml.transform.TransformerException: Invalid byte 2 of 2-byte UTF-8 sequenc e. at org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerIm pl.java:780) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:756) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:1284) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp l.java:1262) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) at org.apache.fop.cli.Main.startFOP(Main.java:174) at org.apache.fop.cli.Main.main(Main.java:205) I am using FOP version 1.0 in Windows 7 x64 and java version "1.6.0_21". Thank you, Nikos - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org