java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double●●●●●●

mobac | havo | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Pressing Settings Button leads to a JavaRuntime Error

    mobac | 6 years ago | havo
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double●●●●●●
  2. 0

    Exception when clicked on Settings button

    mobac | 6 years ago | brainsail
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Integer cannot be cast to java.lang.Double●●●●●●

      at java.lang.Double.compareTo()
    2. Java RT
      SpinnerNumberModel.setMaximum
      1. java.lang.Double.compareTo(Double.java:32)
      2. javax.swing.SpinnerNumberModel.incrValue(SpinnerNumberModel.java:332)
      3. javax.swing.SpinnerNumberModel.getPreviousValue(SpinnerNumberModel.java:371)
      4. javax.swing.plaf.basic.BasicSpinnerUI.updateEnabledState(BasicSpinnerUI.java:489)
      5. javax.swing.plaf.basic.BasicSpinnerUI.updateEnabledState(BasicSpinnerUI.java:470)
      6. javax.swing.plaf.basic.BasicSpinnerUI.access$200(BasicSpinnerUI.java:33)
      7. javax.swing.plaf.basic.BasicSpinnerUI$Handler.stateChanged(BasicSpinnerUI.java:1047)
      8. javax.swing.JSpinner.fireStateChanged(JSpinner.java:434)
      9. javax.swing.JSpinner$ModelListener.stateChanged(JSpinner.java:361)
      10. javax.swing.AbstractSpinnerModel.fireStateChanged(AbstractSpinnerModel.java:102)
      11. javax.swing.SpinnerNumberModel.setMaximum(SpinnerNumberModel.java:247)
      11 frames
    3. mobac.gui.settings
      SettingsGUI$1.run
      1. mobac.gui.settings.SettingsGUIPaper.setModel(SettingsGUIPaper.java:58)
      2. mobac.gui.settings.SettingsGUIPaper.setUnitSystem(SettingsGUIPaper.java:381)
      3. mobac.gui.settings.SettingsGUIPaper.<init>(SettingsGUIPaper.java:128)
      4. mobac.gui.settings.SettingsGUI.<init>(SettingsGUI.java:158)
      5. mobac.gui.settings.SettingsGUI.<init>(SettingsGUI.java:89)
      6. mobac.gui.settings.SettingsGUI$1.run(SettingsGUI.java:164)
      6 frames
    4. Java RT
      EventQueue.dispatchEvent
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
      3. java.awt.EventQueue.access$000(EventQueue.java:84)
      4. java.awt.EventQueue$1.run(EventQueue.java:602)
      5. java.awt.EventQueue$1.run(EventQueue.java:600)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
      8 frames
    5. mobac.utilities
      GUIExceptionHandler$EventQueueProxy.dispatchEvent
      1. mobac.utilities.GUIExceptionHandler$EventQueueProxy.dispatchEvent(GUIExceptionHandler.java:301)
      1 frame
    6. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
      6 frames