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 openstreetmap.de by Unknown author, 1 year ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
via openstreetmap.de by Unknown author, 1 year ago
via GitHub by jsql-robot
, 9 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
via GitHub by jsql-robot
, 1 year ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
via GitHub by JoshDreamland
, 2 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
via GitHub by jsql-robot
, 1 year ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData	at sun.java2d.xr.XRPMBlitLoops.cacheToTmpSurface(XRPMBlitLoops.java:145)	at sun.java2d.xr.XrSwToPMBlit.Blit(XRPMBlitLoops.java:353)	at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:959)	at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:577)	at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:67)	at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1014)	at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3318)	at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3296)	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:698)	at javax.swing.JComponent.paintChildren(JComponent.java:889)	at javax.swing.JComponent.paint(JComponent.java:1065)	at javax.swing.JComponent.paintChildren(JComponent.java:889)	at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1047)	at javax.swing.JComponent.paint(JComponent.java:1065)	at javax.swing.JComponent.paintChildren(JComponent.java:889)	at javax.swing.JComponent.paint(JComponent.java:1065)	at javax.swing.JComponent.paintChildren(JComponent.java:889)	at javax.swing.JComponent.paint(JComponent.java:1065)	at javax.swing.JComponent.paintChildren(JComponent.java:889)	at javax.swing.JComponent.paint(JComponent.java:1065)	at javax.swing.JComponent.paintChildren(JComponent.java:889)	at javax.swing.JComponent.paint(JComponent.java:1065)	at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)	at javax.swing.JComponent.paintChildren(JComponent.java:889)	at javax.swing.JComponent.paint(JComponent.java:1065)	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5219)	at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1572)	at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1495)	at javax.swing.RepaintManager.paint(RepaintManager.java:1265)	at javax.swing.JComponent._paintImmediately(JComponent.java:5167)	at javax.swing.JComponent.paintImmediately(JComponent.java:4978)	at javax.swing.RepaintManager$4.run(RepaintManager.java:824)	at javax.swing.RepaintManager$4.run(RepaintManager.java:807)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:807)	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:782)	at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:731)	at javax.swing.RepaintManager.access$1300(RepaintManager.java:64)	at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1720)	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)	at java.awt.EventQueue.access$500(EventQueue.java:97)	at java.awt.EventQueue$3.run(EventQueue.java:709)	at java.awt.EventQueue$3.run(EventQueue.java:703)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)	at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)	at java.security.AccessController.doPrivileged(Native Method)	at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)	at java.awt.Dialog.show(Dialog.java:1084)	at javax.swing.JFileChooser.showDialog(JFileChooser.java:758)	at javax.swing.JFileChooser.showSaveDialog(JFileChooser.java:681)	at org.openstreetmap.josm.gui.widgets.SwingFileChooser.showSaveDialog(SwingFileChooser.java:106)	at org.openstreetmap.josm.gui.widgets.FileChooserManager.openFileChooser(FileChooserManager.java:215)	at org.openstreetmap.josm.gui.widgets.FileChooserManager.openFileChooser(FileChooserManager.java:198)	at org.openstreetmap.josm.actions.DiskAccessAction.createAndOpenFileChooser(DiskAccessAction.java:94)	at org.openstreetmap.josm.actions.DiskAccessAction.createAndOpenFileChooser(DiskAccessAction.java:71)	at org.openstreetmap.josm.actions.SaveActionBase.createAndOpenSaveFileChooser(SaveActionBase.java:154)	at org.openstreetmap.josm.gui.layer.OsmDataLayer.createAndOpenSaveFileChooser(OsmDataLayer.java:944)	at org.openstreetmap.josm.actions.SaveAsAction.getFile(SaveAsAction.java:36)	at org.openstreetmap.josm.actions.SaveActionBase.doSave(SaveActionBase.java:56)	at org.openstreetmap.josm.actions.SaveActionBase.doSave(SaveActionBase.java:47)	at org.openstreetmap.josm.actions.SaveActionBase.actionPerformed(SaveActionBase.java:37)	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)	at javax.swing.AbstractButton.doClick(AbstractButton.java:376)	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)	at java.awt.Component.processMouseEvent(Component.java:6525)	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)	at java.awt.Component.processEvent(Component.java:6290)	at java.awt.Container.processEvent(Container.java:2234)	at java.awt.Component.dispatchEventImpl(Component.java:4881)	at java.awt.Container.dispatchEventImpl(Container.java:2292)	at java.awt.Component.dispatchEvent(Component.java:4703)	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)	at java.awt.Container.dispatchEventImpl(Container.java:2278)	at java.awt.Window.dispatchEventImpl(Window.java:2750)	at java.awt.Component.dispatchEvent(Component.java:4703)	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)	at java.awt.EventQueue.access$500(EventQueue.java:97)	at java.awt.EventQueue$3.run(EventQueue.java:709)	at java.awt.EventQueue$3.run(EventQueue.java:703)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)	at java.awt.EventQueue$4.run(EventQueue.java:731)	at java.awt.EventQueue$4.run(EventQueue.java:729)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)