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

Google Groups | Unknown author | 9 months ago
  1. 0

    Saving graphics drawn on a map

    Google Groups | 9 months ago | Unknown author
    java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
  2. 0

    Delete functionality on last review

    GitHub | 2 years ago | bflorat
    java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
  3. 0

    SwingUtilities.invokeAndWait not running

    Stack Overflow | 6 years ago | Jakir00
    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

    Error when creating JFrame from JFrame

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

    calling invokeAndWait from the EDT

    Stack Overflow | 7 years ago | Aly
    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(EventQueue.java:1294)
      2. java.awt.EventQueue.invokeAndWait(EventQueue.java:1287)
      3. javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1348)
      3 frames
    3. com.bbn.openmap
      DrawingToolLayer$1.actionPerformed
      1. com.bbn.openmap.util.FileUtils$OpenFileRunnable.invoke(FileUtils.java:114)
      2. com.bbn.openmap.util.FileUtils.getFilePathToSaveFromUser(FileUtils.java:67)
      3. com.bbn.openmap.layer.DrawingToolLayer.saveOMGraphics(DrawingToolLayer.java:590)
      4. com.bbn.openmap.layer.DrawingToolLayer$5.actionPerformed(DrawingToolLayer.java:516)
      5. com.bbn.openmap.layer.DrawingToolLayer.doIt(DrawingToolLayer.java:462)
      6. com.bbn.openmap.layer.DrawingToolLayer$1.actionPerformed(DrawingToolLayer.java:421)
      6 frames
    4. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      6. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
      7. java.awt.Component.processMouseEvent(Component.java:6525)
      8. javax.swing.JComponent.processMouseEvent(JComponent.java:3322)
      9. java.awt.Component.processEvent(Component.java:6290)
      10. java.awt.Container.processEvent(Container.java:2234)
      11. java.awt.Component.dispatchEventImpl(Component.java:4881)
      12. java.awt.Container.dispatchEventImpl(Container.java:2292)
      13. java.awt.Component.dispatchEvent(Component.java:4703)
      14. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
      15. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
      16. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
      17. java.awt.Container.dispatchEventImpl(Container.java:2278)
      18. java.awt.Window.dispatchEventImpl(Window.java:2739)
      19. java.awt.Component.dispatchEvent(Component.java:4703)
      20. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)
      21. java.awt.EventQueue.access$500(EventQueue.java:97)
      22. java.awt.EventQueue$3.run(EventQueue.java:702)
      23. java.awt.EventQueue$3.run(EventQueue.java:696)
      24. java.security.AccessController.doPrivileged(Native Method)
      25. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      26. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
      27. java.awt.EventQueue$4.run(EventQueue.java:724)
      28. java.awt.EventQueue$4.run(EventQueue.java:722)
      29. java.security.AccessController.doPrivileged(Native Method)
      30. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      31. java.awt.EventQueue.dispatchEvent(EventQueue.java:721)
      32. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      33. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      34. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      35. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      36. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      37. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      37 frames