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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via pdfbox-dev by Jukka Zitting (JIRA), 1 year ago
via Oracle Community by 807606, 10 months ago
java.awt.geom.IllegalPathStateException: missing initial moveto in path definition
at java.awt.geom.GeneralPath.needRoom(GeneralPath.java:144)
at java.awt.geom.GeneralPath.closePath(GeneralPath.java:255)
at org.pdfbox.util.operator.pagedrawer.FillNonZeroRule.process(FillNonZeroRule.java:71)
at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:494)
at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:477)
at org.pdfbox.util.operator.pagedrawer.FillNonZeroAndStrokePath.process(FillNonZeroAndStrokePath.java:62)
at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:494)
at org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:215)
at org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:174)
at org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:105)
at org.pdfbox.pdmodel.PDPage.print(PDPage.java:741)
at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1785)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1334)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1196)
at org.pdfbox.pdmodel.PDDocument.print(PDDocument.java:829)
at org.pdfbox.PrintPDF.main(PrintPDF.java:108)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.