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 807587, 1 year ago
MaskFill can only fill with colors
via Google Groups by Chris Breemer, 4 months ago
via Oracle Community by 807593, 1 year ago
MaskFill can only fill with colors
java.lang.InternalError: MaskFill can only fill with colors	at sun.java2d.loops.MaskFill.makePrimitive(MaskFill.java:120)	at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:167)	at sun.java2d.loops.MaskFill.locate(MaskFill.java:46)	at sun.java2d.loops.FillRect$General.(FillRect.java:83)	at sun.java2d.loops.FillRect.makePrimitive(FillRect.java:72)	at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:167)	at sun.java2d.loops.FillRect.locate(FillRect.java:38)	at sun.java2d.SurfaceData.makeRenderLoops(SurfaceData.java:478)	at sun.java2d.SurfaceData.getRenderLoops(SurfaceData.java:461)	at sun.awt.image.BufImgSurfaceData.getRenderLoops(BufImgSurfaceData.java:318)	at sun.java2d.SunGraphics2D.revalidateAll(SunGraphics2D.java:2143)	at sun.java2d.SunGraphics2D.fillRect(SunGraphics2D.java:2123)	at gamegui.TileBackgroundBorder.paintBorder(TileBackgroundBorder.java:29)	at javax.swing.JComponent.paintBorder(JComponent.java:707)	at javax.swing.JComponent.paint(JComponent.java:809)	at javax.swing.JComponent.paintChildren(JComponent.java:647)	at javax.swing.JComponent.paint(JComponent.java:817)	at javax.swing.JComponent.paintChildren(JComponent.java:647)	at javax.swing.JComponent.paint(JComponent.java:817)	at javax.swing.JComponent.paintChildren(JComponent.java:647)	at javax.swing.JComponent.paint(JComponent.java:817)	at javax.swing.JComponent.paintChildren(JComponent.java:647)	at javax.swing.JComponent.paint(JComponent.java:817)	at javax.swing.JLayeredPane.paint(JLayeredPane.java:552)	at javax.swing.JComponent.paintChildren(JComponent.java:647)	at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4778)	at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4724)	at javax.swing.JComponent.paint(JComponent.java:798)	at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)	at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)	at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)	at java.awt.Container.paint(Container.java:1309)	at sun.awt.RepaintArea.paint(RepaintArea.java:177)	at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)	at java.awt.Component.dispatchEventImpl(Component.java:3699)	at java.awt.Container.dispatchEventImpl(Container.java:1623)	at java.awt.Window.dispatchEventImpl(Window.java:1590)	at java.awt.Component.dispatchEvent(Component.java:3480)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)	at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)