java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

Coderanch | Swaranga Sarma | 6 years ago
  1. 0

    Remove comma in the JSpinner

    Coderanch | 6 years ago | Swaranga Sarma
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
  2. 0

    javax.swing.JScrollPane cannot be cast to javax.swing.AbstractButton after changing to SeaGlass Look and Feel

    Stack Overflow | 2 years ago | BuxHzk
    java.lang.ClassCastException: javax.swing.JScrollPane cannot be cast to javax.swing.AbstractButton
  3. 0

    Crash report

    GitHub | 2 years ago | benjicraft
    java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.awt.Color
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crash report rpw

    GitHub | 3 years ago | Midrag
    java.lang.ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be cast to javax.swing.Painter
  6. 0

    Crash after opening Save-File Dialog

    GitHub | 3 years ago | Trissi2000
    java.lang.ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be cast to javax.swing.Painter

  1. jpvee 1 times, last 1 month ago
  2. poroszd 1 times, last 11 months ago
5 unregistered visitors
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

    java.lang.Integer cannot be cast to java.lang.Long

    at java.lang.Long.compareTo()
  2. Java RT
    EventDispatchThread.run
    1. java.lang.Long.compareTo(Long.java:34)
    2. javax.swing.SpinnerNumberModel.incrValue(SpinnerNumberModel.java:335)
    3. javax.swing.SpinnerNumberModel.getNextValue(SpinnerNumberModel.java:355)
    4. javax.swing.JSpinner.getNextValue(JSpinner.java:351)
    5. javax.swing.plaf.basic.BasicSpinnerUI$ArrowButtonHandler.actionPerformed(BasicSpinnerUI.java:640)
    6. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    7. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    8. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    9. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    10. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    11. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    12. java.awt.Component.processMouseEvent(Component.java:6267)
    13. javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    14. java.awt.Component.processEvent(Component.java:6032)
    15. java.awt.Container.processEvent(Container.java:2041)
    16. java.awt.Component.dispatchEventImpl(Component.java:4630)
    17. java.awt.Container.dispatchEventImpl(Container.java:2099)
    18. java.awt.Component.dispatchEvent(Component.java:4460)
    19. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    20. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    21. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    22. java.awt.Container.dispatchEventImpl(Container.java:2085)
    23. java.awt.Window.dispatchEventImpl(Window.java:2478)
    24. java.awt.Component.dispatchEvent(Component.java:4460)
    25. java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    26. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    27. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    28. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    29. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    30. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    31. java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    31 frames