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

can't access font resource


ktrinad

Recommended Posts

By: protifar ipo - protifar

can't access font resource

2004-02-19 18:26

hi,

 

I had a project with a font "kaiu.ttf" build on tomcat. My project will produce an output stream to start Acrobat reader just like that in the "webapp" sample. Sometimes my project works and somtimes the following message pop up

. If I access the project at the first time after the Tomcat startup , there's nothing wrong. If I access that not in the first time, there's a large probability to encounter the exception. Who could help me?

 

ExceptionConverter: java.lang.NullPointerException

at com.lowagie.text.pdf.RandomAccessFileOrArray.read(Unknown Source)

at com.lowagie.text.pdf.RandomAccessFileOrArray.readInt(Unknown Source)

at com.lowagie.text.pdf.TrueTypeFontSubSet.readLoca(Unknown Source)

at com.lowagie.text.pdf.TrueTypeFontSubSet.process(Unknown Source)

at com.lowagie.text.pdf.TrueTypeFontUnicode.writeFont(Unknown Source)

at com.lowagie.text.pdf.FontDetails.writeFont(Unknown Source)

at com.lowagie.text.pdf.PdfWriter.addSharedObjectsToBody(Unknown Source)

at com.lowagie.text.pdf.PdfWriter.close(Unknown Source)

at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)

at com.lowagie.text.Document.close(Unknown Source)

at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:358)

at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:205)

at dori.jasper.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:187)

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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