Unpatched iText

Hello guys ! I am getting this avertissement : "Unpatched iText found, cannot use glyph rendering" when i am trying to generate a Jasper report. I have a Table and a photo in my report, i have succeeded to generate the report but my table with the data doesn't show up. Please anyone has a suggestion to solve this Error.
hic.daewoo's picture
Joined: Oct 23 2016 - 12:13pm
Last seen: 6 years 5 months ago

Actually ! This is what i get on my Eclipse console :

  • oct. 23, 2016 11:28:55 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  • INFOS: Loading XML bean definitions from URL [jar:file:/Applications/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/994/0/.cp/lib/jasperreports-chart-themes-6.3.1.jar!/net/sf/jasperreports/chartthemes/spring/beans/chartThemesBeans.xml]
  • oct. 23, 2016 11:28:56 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  • INFOS: Loading XML bean definitions from URL [jar:file:/Applications/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/994/0/.cp/lib/jasperreports-chart-themes-6.3.1.jar!/net/sf/jasperreports/chartthemes/spring/beans/chartConstantsBean.xml]
  • oct. 23, 2016 11:28:56 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  • INFOS: Loading XML bean definitions from URL [jar:file:/Applications/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/994/0/.cp/lib/jasperreports-chart-themes-6.3.1.jar!/net/sf/jasperreports/chartthemes/spring/beans/defaultChartPropertiesBean.xml]
  • oct. 23, 2016 11:28:56 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  • INFOS: Loading XML bean definitions from URL [jar:file:/Applications/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/994/0/.cp/lib/jasperreports-chart-themes-6.3.1.jar!/net/sf/jasperreports/chartthemes/spring/beans/eyeCandySixtiesChartPropertiesBean.xml]
  • oct. 23, 2016 11:28:56 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  • INFOS: Loading XML bean definitions from URL [jar:file:/Applications/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/994/0/.cp/lib/jasperreports-chart-themes-6.3.1.jar!/net/sf/jasperreports/chartthemes/spring/beans/aegeanChartPropertiesBean.xml]
  • oct. 23, 2016 11:28:58 PM net.sf.jasperreports.engine.export.PdfGlyphRenderer determinePatchedItext
  • AVERTISSEMENT: Unpatched iText found, cannot use glyph rendering
  • File Generated

I attached enclosed the Jasper design on Eclipse but when i get the generated pdf file, only the image remain. I get no data on my table

hic.daewoo - 6 years 5 months ago

I have the same problem. Could you solve it?

ealvarez_3 - 6 years 2 months ago

I also have this problem when running the reports. But this warnning info don't impact the report generation.

For my feature, I need to update the jasperreport.jar from 2.0.4 version to 6.3.1 version. And update the itext.jar from 1.3.1 version to 2.1.7 version.

After I replaced the new JR library and to run the report, it will display this warnning info. Do I need to update the DTD in XML file(In our project, we use the XML file instead of the JRXML to generate PDF reports) ?  Could you help to solve it?  Thanks a lot.

jiazhiwei121 - 6 years 1 month ago
show 1 more...

I also have this problem when running the reports. But this warnning info don't impact the report generation.

For my feature, I need to update the jasperreport.jar from 2.0.4 version to 6.3.1 version. And update the itext.jar from 1.3.1 version to 2.1.7 version.

After I replaced the new JR library and to run the report, it will display this warnning info. Do I need to update the DTD in XML file(In our project, we use the XML file instead of the JRXML to generate PDF reports) ?  Could you help to solve it?  Thanks a lot.

jiazhiwei121 - 6 years 1 month ago

10 Answers:

I don't  Know why no one post the answer ?

 

It's easy, Jasper uses a special version of iText:

Correct version can be downloaded : here

https://jaspersoft.jfrog.io/ui/native/third-party-ce-artifacts/com/lowag...

(itext-2.1.7.js6.jar work for me)

josejavabge's picture
Joined: Jan 19 2022 - 3:00pm
Last seen: 1 year 2 months ago

Which version of JasperReports are you using because I don't get the message. Try using JasperReports 6.3.1

hozawa's picture
171305
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 9 months ago

Please take a look on my updated question ! Thank you for your reply. Otherwise that is what i am using. The Jaspersoft Studio version 6.3.1.

hic.daewoo's picture
Joined: Oct 23 2016 - 12:13pm
Last seen: 6 years 5 months ago

I also got same error, I'm using JasperReports 6.3.1 version

pavangulhane15's picture
Joined: Feb 20 2017 - 9:15pm
Last seen: 6 years 1 month ago

I also got same error, I'm using JasperReports 6.3.1 version.

These are de jars I am using:

jasperreports-6.3.1.jar

commons-logging-1.2.jar

commons-beanutils-1.9.3.jar

org.apache.commons.collections.jar

commons-digester-1.7.jar

itext-4.2.0.jar

 

felipeforerog's picture
Joined: Feb 2 2016 - 7:15am
Last seen: 5 years 10 months ago

I also got de same error. Are you found the solution?

jiltonbarbosa's picture
Joined: Jun 28 2016 - 5:56am
Last seen: 2 years 8 months ago

I also got de same error. help?

dagson's picture
100
Joined: May 29 2018 - 5:45am
Last seen: 4 years 7 months ago

i create a very simple template by iReport-5.6.0.exe and use java to generate pdf, but blank PDF is generated ,anyone can help , thanks!

 

here is the core code:

  public String exportFile(String sourcePath, String targetPath,
                             boolean isEmbeddingImages) throws Exception {

        if (sourcePath == null) {
            throw new IllegalArgumentException(sourcePath + " should be provided");
        }
        File printFile = new File(sourcePath);
        if (!printFile.exists()) {
            throw new IllegalArgumentException(sourcePath + " file is invalid");
        }
        File destFile = new File(targetPath);
        if (destFile.exists()) {
           // log.warn("the file ${distFile.absolutePath} will be overwrited!");
        }
        
        JasperExportManager.exportReportToPdfFile(sourcePath, targetPath);
        
        return targetPath;
    }

keler.wu_1's picture
Joined: Oct 19 2018 - 12:23am
Last seen: 3 years 2 weeks ago

I have the same error:

ene. 27, 2021 5:07:58 P. M. net.sf.jasperreports.engine.export.PdfGlyphRenderer determinePatchedItext
WARNING: Unpatched iText found, cannot use glyph rendering

 

Still no answer for this?

 

juanpe69's picture
236
Joined: Jan 26 2021 - 3:53am
Last seen: 2 years 2 months ago

2021-08-16T11:35:01.371+0300|Warning: Unpatched iText found, cannot use glyph rendering
itext 2.1.7
 jasperreports 6.15.0

Still no answer for this?

Tino Ajato's picture
Joined: Feb 4 2018 - 10:24pm
Last seen: 11 months 2 days ago
Feedback