Unpatched iText

0
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: 3 years 3 weeks 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 - 3 years 3 weeks ago

I have the same problem. Could you solve it?

ealvarez_3 - 2 years 10 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 - 2 years 9 months 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 - 2 years 9 months ago

7 Answers:

0

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

hozawa's picture
52592
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 1 week ago
0

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: 3 years 3 weeks ago
0

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

pavangulhane15's picture
Joined: Feb 20 2017 - 9:15pm
Last seen: 2 years 8 months ago
0

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: 2 years 6 months ago
0

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

jiltonbarbosa's picture
Joined: Jun 28 2016 - 5:56am
Last seen: 1 year 11 months ago
0

I also got de same error. help?

dagson's picture
2
Joined: May 29 2018 - 5:45am
Last seen: 1 year 2 months ago
0

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: 2 months 3 weeks ago
Feedback