pkatkar Posted April 24, 2015 Share Posted April 24, 2015 Hi ,We are generating the PDF using Vietnam Font in a Vietnamese application developed in javaJARS Used:jasperreports-5.0.1.jaritextpdf-5.1.0.jar,com.lowagie.text_2.1.7.v201004222200.jar .otf Vietnamese Fonts loaded from external filesjrxml files are located outside folders.The PDF generation fails some times without throwing any Exception message and this is not reproducible error. This error is coming randomly and once this error is occurred then the Server restart is required to generate the PDF.After the restart we are able to generate the PDF.Please see below the Error file logSystemErr R java.lang.NullPointerExceptionSystemErr R at com.lowagie.text.pdf.CFFFontSubset.BuildNewLGSubrs(Unknown Source)SystemErr R at com.lowagie.text.pdf.CFFFontSubset.Process(Unknown Source)SystemErr R at com.lowagie.text.pdf.TrueTypeFontUnicode.writeFont(Unknown Source)SystemErr R at com.lowagie.text.pdf.FontDetails.writeFont(Unknown Source)SystemErr R at com.lowagie.text.pdf.PdfWriter.addSharedObjectsToBody(Unknown Source)SystemErr R at com.lowagie.text.pdf.PdfWriter.close(Unknown Source)SystemErr R at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)SystemErr R at com.lowagie.text.Document.close(Unknown Source)SystemErr R at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:707)SystemErr R at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:396)Any solution or pointer to resolve this issue will be highly appreciated Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now