java.lang.ClassCastException: java.awt.image.BufferedImage

Oracle Community | 843797 | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Problem Printing a Buffered Image

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

    Horror printing Buffered images

    Oracle Community | 2 decades ago | 843798
    java.lang.ClassCastException: java.awt.image.BufferedImage

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.awt.image.BufferedImage

      at sun.java2d.PeekGraphics.drawImage()
    2. Java RT
      PeekGraphics.drawImage
      1. sun.java2d.PeekGraphics.drawImage(PeekGraphics.java:1383)
      1 frame
    3. Unknown
      JChart.print
      1. JChart.print(JChart.java:417)
      1 frame
    4. Java RT
      RasterPrinterJob.print
      1. sun.java2d.RasterPrinterJob.printPage(RasterPrinterJob.java:677)
      2. sun.java2d.RasterPrinterJob.print(RasterPrinterJob.java:342)
      2 frames
    5. Unknown
      JChart.actionPerformed
      1. JChart.actionPerformed(JChart.java:357)
      1 frame
    6. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
      2. javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
      5. javax.swing.AbstractButton.doClick(AbstractButton.java:279)
      6. javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:886)
      7. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
      8. java.awt.Component.processMouseEvent(Component.java:3715)
      9. java.awt.Component.processEvent(Component.java:3544)
      10. java.awt.Container.processEvent(Container.java:1164)
      11. java.awt.Component.dispatchEventImpl(Component.java:2593)
      12. java.awt.Container.dispatchEventImpl(Container.java:1213)
      13. java.awt.Component.dispatchEvent(Component.java:2497)
      14. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
      15. java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
      16. java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
      17. java.awt.Container.dispatchEventImpl(Container.java:1200)
      18. java.awt.Window.dispatchEventImpl(Window.java:914)
      19. java.awt.Component.dispatchEvent(Component.java:2497)
      20. java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
      21. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
      22. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
      23. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      24. java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
      24 frames