Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1150

NullPointerException using PDFTextStripper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • 1.6.0
    • None
    • PDModel
    • Linux

    Description

      WARN 2011-1027 14:57:10.207 [redcondor.spam.PdfTextExtractor] unexpected exception while extracting text from PDF
      java.lang.NullPointerException
      at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:100)
      at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:75)
      at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:115)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:243)
      at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
      at org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:442)
      at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:366)
      at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:322)
      at org.apache.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:242)
      at redcondor.spam.PdfTextExtractor.extractText(PdfTextExtractor.java:63)
      at redcondor.spam.ParsedMailMessage$Part.parse(ParsedMailMessage.java:1000)
      at redcondor.spam.ParsedMailMessage$Part.<init>(ParsedMailMessage.java:782)
      at redcondor.spam.ParsedMailMessage.<init>(ParsedMailMessage.java:168)
      at model.rules.filtering.filterable.FilterableFile.newRuleContext(FilterableFile.java:301)
      at model.rules.filtering.filterable.FilterableFile.getRuleContext(FilterableFile.java:295)
      at model.rules.filtering.filterable.FilterableFile.getSize(FilterableFile.java:341)
      at model.rules.filtering.filters.AbstractFilter.getSize(AbstractFilter.java:260)
      at redcondor.conditions.SizeCondition.evaluate(SizeCondition.java:118)
      at redcondor.conditions.SizeCondition.evaluate(SizeCondition.java:21)
      at core.conditions.AllCondition.evaluate(AllCondition.java:102)
      at model.rules.engine.CompiledRule.evaluate(CompiledRule.java:200)
      at model.rules.engine.providers.RuleEngineProvider.match(RuleEngineProvider.java:353)
      at run.antispam.services.AntiSpamServiceProvider.match(AntiSpamServiceProvider.java:532)
      at model.rules.filtering.filters.rule.RuleFilter.getRule(RuleFilter.java:81)
      at model.rules.filtering.filters.rule.RuleFilter.getCachedRule(RuleFilter.java:88)
      at model.rules.filtering.filters.rule.RuleFilter.getResponse(RuleFilter.java:122)
      at model.rules.filtering.filters.AbstractFilteringService$InstrumentedFilter.getResponse(AbstractFilteringService.java:220)
      at model.rules.filtering.services.stacks.DefaultFilteringTask.execute(DefaultFilteringTask.java:157)
      at model.rules.filtering.services.stacks.AbstractFilterStackService.execute(AbstractFilterStackService.java:123)
      at model.rules.filtering.services.stacks.AbstractFilterStackService.filter(AbstractFilterStackService.java:227)
      at model.rules.filtering.services.stacks.inbound.InboundFilterStackService.filter(InboundFilterStackService.java:254)
      at run.smtp.services.spoolers.inbox.InboxService.notifyMessageReady(InboxService.java:425)
      at redcondor.net.smtp.spooler.AbstractSpooler.notifyObjectReceived(AbstractSpooler.java:546)
      at redcondor.net.smtp.spooler.AbstractSpooler.notifyObjectReceived(AbstractSpooler.java:62)
      at redcondor.services.threaded.WorkerThread.pumpObject(WorkerThread.java:291)
      at redcondor.services.threaded.WorkerThread.pumpObject(WorkerThread.java:244)
      at redcondor.services.threaded.WorkerPool.notifyWorking(WorkerPool.java:209)
      at redcondor.services.threaded.WorkerPool$Worker.run(WorkerPool.java:451)

      (Source PDF is not available.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeffrey.aguilera@me.com Jeffrey Aguilera
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: