com.sun.javafx.runtime.AssignToBoundException: Cannot assign to bound variable

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 843851, 1 year ago
Cannot assign to bound variable
com.sun.javafx.runtime.AssignToBoundException: Cannot assign to bound variable
at com.sun.javafx.runtime.location.IntVariable.setAsInt(IntVariable.java:111)
at javafx.ext.swing.SwingComboBox.set$selectedIndex(SwingComboBox.fx:118)
at javafx.ext.swing.SwingComboBox.updateSelectedIndexFromSelectedItem(SwingComboBox.fx:166)
at javafx.ext.swing.SwingComboBox.set$selectedItem(SwingComboBox.fx:142)
at javafx.ext.swing.SwingComboBox.setModelSelection(SwingComboBox.fx:197)
at javafx.ext.swing.SwingComboBox$1ComboBoxModel$anon10.setSelectedItem(SwingComboBox.fx:264)
at javafx.ext.swing.SwingComboBox$JComboBoxImpl.setSelectedItem(SwingComboBox.fx:340)
at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:622)
at javax.swing.plaf.basic.BasicComboBoxUI.selectNextPossibleValue(BasicComboBoxUI.java:1085)
at javax.swing.plaf.basic.BasicComboBoxUI$Actions.actionPerformed(BasicComboBoxUI.java:1444)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1661)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2860)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2906)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2823)
at javax.swing.JComboBox.processKeyEvent(JComboBox.java:1416)
at java.awt.Component.processEvent(Component.java:5876)
at java.awt.Container.processEvent(Container.java:2109)
at java.awt.Component.dispatchEventImpl(Component.java:4460)
at java.awt.Container.dispatchEventImpl(Container.java:2167)
at java.awt.Component.dispatchEvent(Component.java:4286)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1879)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:742)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1007)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:879)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:706)
at java.awt.Component.dispatchEventImpl(Component.java:4330)
at java.awt.Container.dispatchEventImpl(Container.java:2167)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.