pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkühler (JIRA) <j...@apache.org>
Subject [jira] Resolved: (PDFBOX-174) NullPointerException in Invoke.process
Date Mon, 02 Feb 2009 09:17:59 GMT

     [ https://issues.apache.org/jira/browse/PDFBOX-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Lehmkühler resolved PDFBOX-174.
---------------------------------------

    Resolution: Invalid

I guess it was a classpath issue. Obviously the fontbox classes were missing. 

> NullPointerException in Invoke.process
> --------------------------------------
>
>                 Key: PDFBOX-174
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-174
>             Project: PDFBox
>          Issue Type: Bug
>            Priority: Minor
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1503206
> Originally submitted by braine on 2006-06-08 15:45.
> Using PDFBox version: PDFBox-0.7.2
> For the attached file: BenefitsTable.pdf
> I'm getting a NullPointerException:
> at
> org.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:84)
> at
> org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:494)
> at
> org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:207)
> at
> org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:160)
> at
> org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:97)
> at
> org.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:658)
> at DisplayPDF.displayFile(DisplayPDF.java:152)
>     :
>     :
>     :
> -----------------------------------------------------
> I get a different exception with the daily builds for
> "08-Jun-2006 01:08 12.0M" and "23-May-2006 20:07 11.8M".
> Both versions die for all PDF files with the following:
> Exception in thread "AWT-EventQueue-0"
> java.lang.NoClassDefFoundError: org/fontbox/afm/AFMParser
> at org.pdfbox.pdmodel.font.PDFont.getAFM(PDFont.java:347)
> at
> org.pdfbox.pdmodel.font.PDFont.getAverageFontWidthFromAFMFile(PDFont.java:310)
> at
> org.pdfbox.pdmodel.font.PDSimpleFont.getAverageFontWidth(PDSimpleFont.java:231)
> at
> org.pdfbox.util.PDFStreamEngine.showString(PDFStreamEngine.java:265)
> at
> org.pdfbox.util.operator.ShowText.process(ShowText.java:64)
> at
> org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:441)
> at
> org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:204)
> at
> org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:163)
> at
> org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:104)
> at
> org.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:657)
> at DisplayPDF.displayFile(DisplayPDF.java:152)
>     :
>     :
>     :
> -----------------------------------------------------
> Any help for version 0.7.2 would be greatly appreciated.  
> I assume the current problem with the daily builds is
> temporary and will eventually be resolved.  Although if
> I need to do something to fix that problem as well, I'd
> be glad to hear about it.
> Bob Braine
> [comment on SourceForge]
> Originally sent by stefan222.
> Logged In: YES 
> user_id=1116775
> Got the same exceptionin 0.7.3 RELEASE:
> C:\Temp\PDFBox-0.7.3\lib>java -classpath PDFBox-0.7.3.jar
> org.pdfbox.PDFReader
> Exception in thread "AWT-EventQueue-0"
> java.lang.NoClassDefFoundError: org/fontbox/afm/FontMetric
>         at
> org.pdfbox.pdmodel.font.PDFont.getAFM(PDFont.java:334)
>         at
> org.pdfbox.pdmodel.font.PDSimpleFont.getFontHeight(PDSimpleFont.java:
> 104)
>         at
> org.pdfbox.util.PDFStreamEngine.showString(PDFStreamEngine.java:336)
>         at
> org.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:80)
>         at
> org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:
> 452)
>         at
> org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java
> :215)
>         at
> org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:17
> 4)
>         at
> org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:104)
>         at
> org.pdfbox.pdfviewer.PDFPagePanel.paint(PDFPagePanel.java:95)
>         at javax.swing.JComponent.paintChildren(Unknown Source)
>         at javax.swing.JComponent.paint(Unknown Source)
>         at javax.swing.JComponent.paintChildren(Unknown Source)
>         at javax.swing.JComponent.paint(Unknown Source)
>         at javax.swing.JComponent.paintChildren(Unknown Source)
>         at javax.swing.JComponent.paint(Unknown Source)
>         at javax.swing.JViewport.paint(Unknown Source)
>         at javax.swing.JComponent.paintChildren(Unknown Source)
>         at javax.swing.JComponent.paint(Unknown Source)
>         at javax.swing.JComponent.paintChildren(Unknown Source)
>         at javax.swing.JComponent.paint(Unknown Source)
>         at javax.swing.JComponent.paintChildren(Unknown Source)
>         at javax.swing.JComponent.paint(Unknown Source)
>         at javax.swing.JLayeredPane.paint(Unknown Source)
>         at javax.swing.JComponent.paintChildren(Unknown Source)
>         at javax.swing.JComponent.paint(Unknown Source)
>         at
> javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
>         at
> javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
>         at javax.swing.JComponent._paintImmediately(Unknown
> Source)
>         at javax.swing.JComponent.paintImmediately(Unknown
> Source)
>         at
> javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
>         at
> javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
> n Source)
>         at java.awt.event.InvocationEvent.dispatch(Unknown
> Source)
>         at java.awt.EventQueue.dispatchEvent(Unknown Source)
>         at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
> Source)
>         at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
> Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown
> Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown
> Source)
>         at java.awt.EventDispatchThread.run(Unknown Source)
> Kind regards,
> Stefan

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message