java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Captured Colonists Bug
    via freecol by calebrw
    ,
  • Error when creating JFrame from JFrame
    via Stack Overflow by Aly
    ,
  • calling invokeAndWait from the EDT
    via Stack Overflow by Aly
    ,
  • a Textarea question
    via by 843804,
  • SwingUtilities.invokeAndWait not running
    via Stack Overflow by Jakir00
    ,
  • computer-notes_2008
    via by Unknown author,
  • Using SwingUtilities.invokeAndWait()
    via javaplugin by eyemme
    ,
  • invokeAndWait needed but unusable.
    via by 807582,
    • 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.moveTo(InGameController.java:1933) at net.sf.freecol.client.gui.panel.EuropePanel$DestinationPanel.add(EuropePanel.java:562) at net.sf.freecol.client.gui.panel.EuropePanel.sailAction(EuropePanel.java:412) at net.sf.freecol.client.gui.panel.EuropePanel.actionPerformed(EuropePanel.java:439) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) 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)
    No Bugmate found.