java.lang.ClassCastException: sun.awt.image.BufferedImageGraphics2D

Oracle Community | 843797 | 1 decade ago
  1. 0

    How do you extend the Graphics2D class?  Compiles but gives run-time errors

    Oracle Community | 1 decade ago | 843797
    java.lang.ClassCastException: sun.awt.image.BufferedImageGraphics2D
  2. 0

    AWT problem w/ Windows, but not other platforms

    Google Groups | 2 decades ago | Hari Nair
    java.lang.ClassCastException: sun.awt.image.BufferedImageGraphics2D
  3. 0
    samebug tip
    When you have no build parameters, uncheck 'This build is parameterized'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Protege User - Protege app fails to launch from Eclipse using OSGi Framework launcher

    nabble.com | 1 year ago
    java.lang.ClassCastException: org.eclipse.ant.core.AntCorePlugin cannot be cast to org.osgi.framework.BundleActivator
  6. 0

    PowerMockito - DB testing

    Stack Overflow | 1 year ago | Tim Autin
    java.lang.ClassCastException: org.mockito.internal.matchers.LocalizedMatcher cannot be cast to org.mockito.ArgumentMatcher

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      sun.awt.image.BufferedImageGraphics2D

      at GPanel.paintComponent()
    2. Unknown
      GPanel.paintComponent
      1. GPanel.paintComponent(Graphics.java:129)
      1 frame
    3. Java RT
      EventDispatchThread.run
      1. javax.swing.JComponent.paint(Unknown Source)
      2. javax.swing.JComponent.paintWithBuffer(Unknown Source)
      3. javax.swing.JComponent._paintImmediately(Unknown Source)
      4. javax.swing.JComponent.paintImmediately(Unknown Source)
      5. javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
      6. javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
      7. java.awt.event.InvocationEvent.dispatch(Unknown Source)
      8. java.awt.EventQueue.dispatchEvent(Unknown Source)
      9. java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      10. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      11. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      12. java.awt.EventDispatchThread.run(Unknown Source)
      12 frames