Jump to content
We've recently updated our Privacy Statement, available here ×

Upgrading Jasper Reports Engine from 6.3.1 to 6.20.3, getting this error java.lang.NoSuchMethodError: com.lowagie.text.Document.setGlyphSubstitutionEnabled. Any Suggestion to correct this?


rahulreddy1249

Recommended Posts

  • rahulreddy1249 changed the title to Upgrading Jasper Reports Engine from 6.3.1 to 6.20.3, getting this error java.lang.NoSuchMethodError: com.lowagie.text.Document.setGlyphSubstitutionEnabled. Any Suggestion to correct this?

I was encountering the same problem.  

The code issue was thrown within the Jasper:

jasperreports-6.20.6.jar!/net/sf/jasperreports/export/pdf/classic/ClassicPdfProducer.class:405

java.lang.NoSuchMethodException: com.lowagie.text.Document.setGlyphSubstitutionEnabled(boolean)

 

Found that openpdf-1.3.30.jaspersoft.3.jar had the necessary method, but was still not getting recognized.  

Identified that iText-2.1.7.jar also has a similar file structure - but not the method:

com\lowagie\text\Document.

Removed the conflicting iText-2.1.7 jar file.  And the code worked.  Hope this helps.

Edited by parimalam.viswanath
  • Like 2
Link to comment
Share on other sites

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...