Hi, in one of my itext webapps i'm generating pdffiles from xml and
everything works fine for awhile but then after a random time i get the
following exception.

***********
java.lang.NullPointerException
        at com.lowagie.text.FontFactoryImp.getFont(Unknown Source)
        at com.lowagie.text.FontFactoryImp.getFont(Unknown Source)
        at com.lowagie.text.FontFactory.getFont(Unknown Source)
        at com.lowagie.text.Paragraph.<init>(Unknown Source)
        at com.lowagie.text.xml.SAXiTextHandler.handleStartingTags(Unknown 
Source)
        at com.lowagie.text.xml.SAXmyHandler.startElement(Unknown Source)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:878)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:255)
        at se.kgm.sh102.pdf.xml.XmlPdfBuilder.build(XmlPdfBuilder.java:86)
        at se.kgm.sh102.pdf.PdfBuilder.run(PdfBuilder.java:98)
        at java.lang.Thread.run(Thread.java:595)
***********

Since everything works fine at first i don't know where to start to look
for the problem. Anyone got any idea?

Thanks in advance

Amir


_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to