java.awt.geom.IllegalPathStateException: missing initial moveto in path definition

pdfbox-dev | Andreas Lehmkühler (JIRA) | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [jira] Resolved: (PDFBOX-706) CFFParser.readCharset java.lang.IllegalArgumentException

    pdfbox-dev | 6 years ago | Andreas Lehmkühler (JIRA)
    java.awt.geom.IllegalPathStateException: missing initial moveto in path definition

    Root Cause Analysis

    1. java.awt.geom.IllegalPathStateException

      missing initial moveto in path definition

      at java.awt.geom.Path2D$Float.needRoom()
    2. Java RT
      Path2D$Float.lineTo
      1. java.awt.geom.Path2D$Float.needRoom(Path2D.java:263)
      2. java.awt.geom.Path2D$Float.lineTo(Path2D.java:354)
      2 frames
    3. Apache FontBox
      AFMFormatter.format
      1. org.apache.fontbox.cff.CharStringRenderer.rlineTo(CharStringRenderer.java:140)
      2. org.apache.fontbox.cff.CharStringRenderer.handleCommand(CharStringRenderer.java:69)
      3. org.apache.fontbox.cff.CharStringHandler.handleSequence(CharStringHandler.java:46)
      4. org.apache.fontbox.cff.CharStringRenderer.render(CharStringRenderer.java:48)
      5. org.apache.fontbox.cff.AFMFormatter.renderFont(AFMFormatter.java:126)
      6. org.apache.fontbox.cff.AFMFormatter.printFontMetrics(AFMFormatter.java:64)
      7. org.apache.fontbox.cff.AFMFormatter.printFont(AFMFormatter.java:57)
      8. org.apache.fontbox.cff.AFMFormatter.format(AFMFormatter.java:50)
      8 frames
    4. Apache PDFBox
      PDFTextStripper.getText
      1. org.apache.pdfbox.pdmodel.font.PDType1CFont.prepareFontMetric(PDType1CFont.java:505)
      2. org.apache.pdfbox.pdmodel.font.PDType1CFont.load(PDType1CFont.java:382)
      3. org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>(PDType1CFont.java:107)
      4. org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:124)
      5. org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:76)
      6. org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:115)
      7. org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:225)
      8. org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:207)
      9. org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:367)
      10. org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:291)
      11. org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:247)
      12. org.apache.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:180)
      12 frames
    5. Apache Tika parsers
      PDFParser.parse
      1. org.apache.tika.parser.pdf.PDF2XHTML.process(PDF2XHTML.java:56)
      2. org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:81)
      2 frames
    6. Apache Tika core
      AutoDetectParser.parse
      1. org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:121)
      2. org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:104)
      3. org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:117)
      3 frames
    7. ibi.search.lucene
      LuceneFastXmlFeedServlet.doPost
      1. ibi.search.lucene.feed.LuceneFastFeed.parseFeedContent(LuceneFastFeed.java:2566)
      2. ibi.search.lucene.feed.LuceneFastFeed.parseFeed(LuceneFastFeed.java:1445)
      3. ibi.search.lucene.feed.LuceneFastFeed.<init>(LuceneFastFeed.java:925)
      4. ibi.search.lucene.feed.LuceneFastXmlFeedServlet.doPost(LuceneFastXmlFeedServlet.java:575)
      4 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      1 frame
    9. ibi.srv.util
      IBIHttpServlet.service
      1. ibi.srv.util.IBIHttpServlet.service(IBIHttpServlet.java:121)
      1 frame
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      1 frame
    11. ibi.srv.util
      IBIHttpServlet.service
      1. ibi.srv.util.IBIHttpServlet.service(IBIHttpServlet.java:130)
      1 frame
    12. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      8 frames
    13. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
      3 frames
    14. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame