-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoSuchMethodError: ...Document.setGlyphSubstitutionEnabled #350
Comments
You need to add this repository to your pom.xml files: I hope this helps. |
The release 6.20.4 was published to put back mandatory OpenPDF dependency in pom.xml. |
With jasperreports:6.20.4 & openpdf:1.3.30 I still get the same NoSuchMethodError Exception. Plz reopen. |
Is there any particular reason for which you insist on using OpenPDF 1.3.30 instead the one I mentioned you in my first reply above? |
Sorry, I forgot to mention that we can't use the 1.3.30.jaspersoft.2 because the buildprocess of our application gets the dependencies from mvnrepository: com.github.librepdfhttps://mvnrepository.com/artifact/com.github.librepdf/openpdf and 1.3.30 is the latest official version. |
The upcoming JasperReports release (6.20.5) will work with the standard/unpatched OpenPDF 1.3.30. Note that if you also have Apache FOP on your application's classpath you'll have to explicitly set the Once LibrePDF/OpenPDF#765 and LibrePDF/OpenPDF#904 are accepted by OpenPDF we'll no longer need to patch OpenPDF. Regards, |
Hi, with the change to jasperreports:6.20.1 and openpdf:1.3.30 instead of itext:2.1.7 we hat no problems so far.
Today we tried jasperreports:6.20.3 an got the following Exception:
java.lang.NoSuchMethodError: 'void com.lowagie.text.Document.setGlyphSubstitutionEnabled(boolean)'
at net.sf.jasperreports.export.pdf.classic.ClassicPdfProducer.createDocument(ClassicPdfProducer.java:128)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:835)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:685)
at net.sf.jasperreports.engine.JasperExportManager.exportToPdfStream(JasperExportManager.java:196)
at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfStream(JasperExportManager.java:533)
We use springboot 2.7.10 with Java 17 and XML as Datasource.
Thanks in advance
Andreas
The text was updated successfully, but these errors were encountered: