Jump to content

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?


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?
Posted (edited)

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
Posted

Hello parimalam.viswanath,

Thanks for the reply, i added openpdf-1.3.30.jaspersoft.3.jar to the WEB-INF/lib folder and removed the iText-2.1.7.jar, still getting the same error.
Do i need to do anything after adding the JAR.

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...