This is what you get when you don't have the CJK fonts installed. If you
don't use them you can disregard the stack trace. It's there for information
only but maybe it should be more to the point or even eliminated.

Best Regards,
Paulo Soares

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 25, 2002 20:29
Subject: null-pointer exception


> Hi,
>
> there is a null-pointer exception in this line in your demo:
>
> phrase6.add(new Chunk("Times New Roman",
> FontFactory.getFont(FontFactory.TIMES_NEW_ROMAN, 12)));
>
>
>
> Chapter 2 example 2: Phrases
> java.lang.NullPointerException
> at java.io.Reader.<init>(Reader.java:61)
> at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
> at java.util.Properties.load(Properties.java:189)
> at com.lowagie.text.pdf.CJKFont.<clinit>(CJKFont.java:84)
> at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:356)
> at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:325)
> at com.lowagie.text.FontFactory.getFont(FontFactory.java:220)
> at com.lowagie.text.FontFactory.getFont(FontFactory.java:459)
> at T1.main(T1.java:63)
>
>
> If I uncommend the line, everything is OK. I'm using 1.3/1.4 and Windows
> XP and the current source code.
>
>
>
>   Ulli
>
> /**
>  * @author Christian Ullenboom
>  * @email  [EMAIL PROTECTED]
>  * @url    http://java-tutor.com
>  * @tipp   "Java ist auch eine Insel". ISBN 3898421740
>  */
>
>



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to