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

freecol | calebrw | 5 years ago
  1. 0

    Captured Colonists Bug

    freecol | 5 years ago | calebrw
    java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
  2. 0

    Error when creating JFrame from JFrame

    Stack Overflow | 7 years ago | Aly
    java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
  3. 0

    calling invokeAndWait from the EDT

    Stack Overflow | 7 years ago | Aly
    java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Any known issues with runnables?

    jpf | 1 decade ago | jt_doit
    java.lang.reflect.InvocationTargetException
  6. 0

    a Textarea question

    Oracle Community | 1 decade ago | 843804
    java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.Error

      Cannot call invokeAndWait from the event dispatcher thread

      at java.awt.EventQueue.invokeAndWait()
    2. Java RT
      SwingUtilities.invokeAndWait
      1. java.awt.EventQueue.invokeAndWait(Unknown Source)
      2. javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
      2 frames
    3. net.sf.freecol
      CanvasMouseListener.mouseReleased
      1. net.sf.freecol.client.control.InGameInputHandler.setCurrentPlayer(InGameInputHandler.java:464)
      2. net.sf.freecol.client.control.InGameInputHandler.handle(InGameInputHandler.java:129)
      3. net.sf.freecol.common.networking.ServerAPI.askHandling(ServerAPI.java:311)
      4. net.sf.freecol.common.networking.ServerAPI.endTurn(ServerAPI.java:693)
      5. net.sf.freecol.client.control.InGameController.doEndTurn(InGameController.java:3717)
      6. net.sf.freecol.client.control.InGameController.endTurn(InGameController.java:3693)
      7. net.sf.freecol.client.control.InGameController.nextActiveUnit(InGameController.java:3835)
      8. net.sf.freecol.client.control.InGameController.nextActiveUnit(InGameController.java:3784)
      9. net.sf.freecol.client.control.InGameController.moveMove(InGameController.java:1847)
      10. net.sf.freecol.client.control.InGameController.moveDirection(InGameController.java:1662)
      11. net.sf.freecol.client.control.InGameController.movePath(InGameController.java:1596)
      12. net.sf.freecol.client.control.InGameController.moveToDestination(InGameController.java:1088)
      13. net.sf.freecol.client.gui.CanvasMouseListener.mouseReleased(CanvasMouseListener.java:184)
      13 frames
    4. Java RT
      EventDispatchThread.run
      1. java.awt.Component.processMouseEvent(Unknown Source)
      2. javax.swing.JComponent.processMouseEvent(Unknown Source)
      3. java.awt.Component.processEvent(Unknown Source)
      4. java.awt.Container.processEvent(Unknown Source)
      5. java.awt.Component.dispatchEventImpl(Unknown Source)
      6. java.awt.Container.dispatchEventImpl(Unknown Source)
      7. java.awt.Component.dispatchEvent(Unknown Source)
      8. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      9. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      10. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      11. java.awt.Container.dispatchEventImpl(Unknown Source)
      12. java.awt.Window.dispatchEventImpl(Unknown Source)
      13. java.awt.Component.dispatchEvent(Unknown Source)
      14. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      15. java.awt.EventQueue.access$000(Unknown Source)
      16. java.awt.EventQueue$1.run(Unknown Source)
      17. java.awt.EventQueue$1.run(Unknown Source)
      18. java.security.AccessController.doPrivileged(Native Method)
      19. java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
      20. java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
      21. java.awt.EventQueue$2.run(Unknown Source)
      22. java.awt.EventQueue$2.run(Unknown Source)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
      25. java.awt.EventQueue.dispatchEvent(Unknown Source)
      26. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      27. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      28. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      29. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      30. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      31. java.awt.EventDispatchThread.run(Unknown Source)
      31 frames