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 Oracle Community by 843851, 1 year ago
missing initial moveto in path definition
via https://bugzilla.redhat.com/bugzilla/ by Susi Lehtola, 1 year ago
missing initial moveto in path definition
via GitHub by thomasf1
, 1 year ago
missing initial moveto in path definition
via pdfbox by *anonymous
, 1 year ago
missing initial moveto in path definition
via pdfbox-dev by Jukka Zitting (JIRA), 1 year ago
via Stack Overflow by Cody Smith
, 2 years ago
java.awt.geom.IllegalPathStateException: missing initial moveto in path definition
at java.awt.geom.Path2D$Float.needRoom(Path2D.java:280)
at java.awt.geom.Path2D$Float.lineTo(Path2D.java:350)
at sun.java2d.pisces.PiscesRenderingEngine$1.lineTo(PiscesRenderingEngine.java:99)
at sun.java2d.pisces.Stroker.emitLineTo(Stroker.java:740)
at sun.java2d.pisces.Stroker.finish(Stroker.java:703)
at sun.java2d.pisces.Stroker.close(Stroker.java:592)
at sun.java2d.pisces.PiscesRenderingEngine.pathTo(PiscesRenderingEngine.java:248)
at sun.java2d.pisces.PiscesRenderingEngine.strokeTo(PiscesRenderingEngine.java:231)
at sun.java2d.pisces.PiscesRenderingEngine.createStrokedShape(PiscesRenderingEngine.java:85)
at java.awt.BasicStroke.createStrokedShape(BasicStroke.java:296)
at com.sun.scenario.scenegraph.SGAbstractGeometry.getStrokeShape(SGAbstractGeometry.java:179)
at com.sun.scenario.scenegraph.SGShape.shapeContains(SGShape.java:622)

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.