org.jvnet.substance.api.UiThreadingViolationException: Component state change must be done on Event Dispatch Thread

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

Solutions on the web

org.jvnet.substance.api.UiThreadingViolationException: Component state change must be done on Event Dispatch Thread
at org.jvnet.substance.utils.SubstanceCoreUtilities.testComponentStateChangeThreadingViolation(SubstanceCoreUtilities.java:2385)
at org.jvnet.substance.SubstanceScrollBarUI$3.adjustmentValueChanged(SubstanceScrollBarUI.java:1561)
at javax.swing.JScrollBar.fireAdjustmentValueChanged(JScrollBar.java:675)
at javax.swing.JScrollBar.access$100(JScrollBar.java:64)
at javax.swing.JScrollBar$ModelListener.stateChanged(JScrollBar.java:697)
at javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:348)
at javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:285)
at javax.swing.DefaultBoundedRangeModel.setValue(DefaultBoundedRangeModel.java:151)
at javax.swing.JScrollBar.setValue(JScrollBar.java:446)
at org.jivesoftware.spark.ui.ChatRoom.scrollToBottom(ChatRoom.java:620)
at org.jivesoftware.spark.ui.ChatRoom$2$1.construct(ChatRoom.java:274)
at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:141)
at java.lang.Thread.run(Thread.java:662)

Users with the same issue

You are the first who have seen this exception.

Write tip

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