java.lang.IllegalStateException: this method can only be called from the AWT event dispatch thread, and not from "Thread-26"

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

via pivot-user by Roger L. Whitcomb, 1 year ago
this method can only be called from the AWT event dispatch thread, and not from "Thread-26"
via pivot-user by Andrei Pozolotin, 4 months ago
this method can only be called from the AWT event dispatch thread, and not from "Thread-26"
via pivot-user by Roger L. Whitcomb, 1 year ago
this method can only be called from the AWT event dispatch thread, and not from "Thread-26"
via pivot-user by Andrei Pozolotin, 4 months ago
this method can only be called from the AWT event dispatch thread, and not from "Thread-26"
via pivot-user by Andrei Pozolotin, 4 months ago
this method can only be called from the AWT event dispatch thread, and not from "Thread-26"
via pivot-user by Lukáš Macháček, 4 months ago
this method can only be called from the AWT event dispatch thread, and not from "Thread-26"
java.lang.IllegalStateException: this method can only be called from the AWT event dispatch thread, and not from "Thread-26"
at org.apache.pivot.wtk.Container$1.check(Container.java:872)
at org.apache.pivot.wtk.Container.assertEventDispatchThread(Container.java:880)
at org.apache.pivot.wtk.Component.repaint(Component.java:2047)
at org.apache.pivot.wtk.Component.repaint(Component.java:1998)
at org.apache.pivot.wtk.skin.ComponentSkin.repaintComponent(ComponentSkin.java:351)
at org.apache.pivot.wtk.skin.ComponentSkin.repaintComponent(ComponentSkin.java:346)
at org.apache.pivot.wtk.skin.terra.TerraTableViewSkin.enabledChanged(TerraTableViewSkin.java:1394)
at org.apache.pivot.wtk.Component$ComponentStateListenerList.enabledChanged(Component.java:399)
at org.apache.pivot.wtk.Component.setEnabled(Component.java:2173)
at cz.cgrim.alchemist.dql.RunQueryTask.execute(RunQueryTask.java:58)
at cz.cgrim.alchemist.dql.RunQueryTask.execute(RunQueryTask.java:23)
at org.apache.pivot.util.concurrent.Task$ExecuteCallback.run(Task.java:42)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.lang.Thread.run(Thread.java:722)

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.

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