java.lang.Error

Cannot call invokeAndWait from the event dispatcher thread

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1359

  • via Google Groups by Unknown author, 6 months ago
    Cannot call invokeAndWait from the event dispatcher thread
  • via Oracle Community by 843804, 1 year ago
    Cannot call invokeAndWait from the event dispatcher thread
  • via Oracle Community by 807577, 11 months ago
    Cannot call invokeAndWait from the event dispatcher thread
  • Stack trace

    • java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread at java.awt.EventQueue.invokeAndWait(Unknown Source) at javax.swing.SwingUtilities.invokeAndWait(Unknown Source) at net.sf.freecol.client.control.InGameInputHandler.setCurrentPlayer(InGameInputHandler.java:464) at net.sf.freecol.client.control.InGameInputHandler.handle(InGameInputHandler.java:129) at net.sf.freecol.common.networking.ServerAPI.askHandling(ServerAPI.java:311) at net.sf.freecol.common.networking.ServerAPI.endTurn(ServerAPI.java:693) at net.sf.freecol.client.control.InGameController.doEndTurn(InGameController.java:3717) at net.sf.freecol.client.control.InGameController.endTurn(InGameController.java:3693) at net.sf.freecol.client.control.InGameController.nextActiveUnit(InGameController.java:3835) at net.sf.freecol.client.control.InGameController.nextActiveUnit(InGameController.java:3784) at net.sf.freecol.client.control.InGameController.moveMove(InGameController.java:1847) at net.sf.freecol.client.control.InGameController.moveDirection(InGameController.java:1662) at net.sf.freecol.client.control.InGameController.movePath(InGameController.java:1596) at net.sf.freecol.client.control.InGameController.moveToDestination(InGameController.java:1088) at net.sf.freecol.client.gui.CanvasMouseListener.mouseReleased(CanvasMouseListener.java:184) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.