You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "wentao (JIRA)" <ji...@apache.org> on 2012/08/01 20:29:04 UTC

[jira] [Created] (PDFBOX-1372) NullPointerException with loadDescriptorDictionary

wentao created PDFBOX-1372:
------------------------------

             Summary: NullPointerException with loadDescriptorDictionary
                 Key: PDFBOX-1372
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1372
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
    Affects Versions: 1.7.1
         Environment: Windows 7, WebLogic 10.3.2, jdk160_14_R27.6.5-32.
            Reporter: wentao


I downloaded a ttf from http://www.jtbarton.com/Barcodes/code128.ttf and tried to use this with pdfbox 1.7.1 in my jsp.

it returns below error

<Aug 1, 2012 11:08:50 AM PDT> <Error> <HTTP> <BEA-101020> <[ServletContext@69818
19[app:myPDFBoxWeb module:myPDFBoxWeb path:/myPDFBoxWeb spec-version:2.5]] Servl
et failed with Exception
java.lang.NullPointerException
        at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionar
y(PDTrueTypeFont.java:403)
        at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:198)
        at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:174)
        at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:155)
        at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:142)
        Truncated. see log file for complete stacktrace
>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1372) NullPointerException with loadDescriptorDictionary

Posted by "wentao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

wentao updated PDFBOX-1372:
---------------------------

          Description: 
I downloaded a ttf from http://www.jtbarton.com/Barcodes/code128.ttf and tried to use this with pdfbox 1.6.0 in my jsp.

it returns below error

java.lang.NullPointerException
	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:339)
	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:164)
	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:140)
	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:127)




  was:
I downloaded a ttf from http://www.jtbarton.com/Barcodes/code128.ttf and tried to use this with pdfbox 1.7.1 in my jsp.

it returns below error

<Aug 1, 2012 11:08:50 AM PDT> <Error> <HTTP> <BEA-101020> <[ServletContext@69818
19[app:myPDFBoxWeb module:myPDFBoxWeb path:/myPDFBoxWeb spec-version:2.5]] Servl
et failed with Exception
java.lang.NullPointerException
        at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionar
y(PDTrueTypeFont.java:403)
        at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:198)
        at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:174)
        at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:155)
        at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:142)
        Truncated. see log file for complete stacktrace
>

    Affects Version/s:     (was: 1.7.1)
                       1.6.0

I tried with 1.7.1, but 1.7.1 can't load both of the two TTF files.
                
> NullPointerException with loadDescriptorDictionary
> --------------------------------------------------
>
>                 Key: PDFBOX-1372
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1372
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.6.0
>         Environment: Windows 7, WebLogic 10.3.2, jdk160_14_R27.6.5-32.
>            Reporter: wentao
>         Attachments: CODE128.TTF, FRE3OF9X.TTF, index128.jsp
>
>
> I downloaded a ttf from http://www.jtbarton.com/Barcodes/code128.ttf and tried to use this with pdfbox 1.6.0 in my jsp.
> it returns below error
> java.lang.NullPointerException
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:339)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:164)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:140)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:127)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira