aspose file tools
The moose likes Other Open Source Projects and the fly likes itext-1.4.8   java.lang.NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "itext-1.4.8   java.lang.NullPointerException" Watch "itext-1.4.8   java.lang.NullPointerException" New topic
Author

itext-1.4.8 java.lang.NullPointerException

amandeep pahwa
Greenhorn

Joined: Apr 05, 2012
Posts: 1
Hi,

We are using itext-1.4.8 jar in our project . For the below line of code-

FontFactory.register(this.fontPath + "MSGOTHIC.ttc");

We are getting exception

java.lang.NullPointerException
at com.lowagie.text.FontFactoryImp.registerFamily(FontFactoryImp.java:484)
at com.lowagie.text.FontFactoryImp.register(FontFactoryImp.java:547)
at com.lowagie.text.FontFactoryImp.register(FontFactoryImp.java:502)
at com.lowagie.text.FontFactoryImp.register(FontFactoryImp.java:559)
at com.lowagie.text.FontFactory.register(FontFactory.java:347)
at com.lowagie.text.FontFactory.register(FontFactory.java:336)

This exception is quite random and is not replicable in all cases.Sometime the pdf is generated fine.
Would really appreciate if somebody has faced siimilar issue and can guide us on this.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: itext-1.4.8 java.lang.NullPointerException
 
Similar Threads
error while using Rtfwriter by iText version 2.1.3
T- Shirt Quotes
Best way to create reports with FOP
Unable to get the home of ejb after certain requests
Create a "virtual file"