java.lang.IllegalArgumentException: cannot add an action twice: Resume Program (Resume program execution)

YouTrack | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    IllegalArgumentException: cannot add an action twice

    YouTrack | 7 months ago
    java.lang.IllegalArgumentException: cannot add an action twice: Resume Program (Resume program execution)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      cannot add an action twice: Resume Program (Resume program execution)

      at com.intellij.openapi.actionSystem.DefaultActionGroup.addAction()
    2. IDEA
      ExecutionManagerImpl$3.run
      1. com.intellij.openapi.actionSystem.DefaultActionGroup.addAction(DefaultActionGroup.java:151)
      2. com.intellij.openapi.actionSystem.DefaultActionGroup.addAction(DefaultActionGroup.java:137)
      3. com.intellij.openapi.actionSystem.DefaultActionGroup.add(DefaultActionGroup.java:108)
      4. com.intellij.openapi.actionSystem.DefaultActionGroup.addAll(DefaultActionGroup.java:393)
      5. com.intellij.xdebugger.impl.ui.XDebugSessionTab.attachToSession(XDebugSessionTab.java:268)
      6. com.intellij.xdebugger.impl.ui.XDebugSessionTab.<init>(XDebugSessionTab.java:119)
      7. com.intellij.xdebugger.impl.ui.XDebugSessionTab.create(XDebugSessionTab.java:99)
      8. com.intellij.xdebugger.impl.XDebugSessionImpl.initSessionTab(XDebugSessionImpl.java:334)
      9. com.intellij.xdebugger.impl.XDebugSessionImpl.init(XDebugSessionImpl.java:277)
      10. com.intellij.xdebugger.impl.XDebuggerManagerImpl.startSession(XDebuggerManagerImpl.java:238)
      11. com.intellij.xdebugger.impl.XDebuggerManagerImpl.startSession(XDebuggerManagerImpl.java:181)
      12. com.intellij.debugger.impl.GenericDebuggerRunner.attachVirtualMachine(GenericDebuggerRunner.java:120)
      13. com.intellij.debugger.impl.GenericDebuggerRunner.attachVirtualMachine(GenericDebuggerRunner.java:103)
      14. com.intellij.openapi.externalSystem.service.execution.ExternalSystemTaskDebugRunner.createContentDescriptor(ExternalSystemTaskDebugRunner.java:56)
      15. com.intellij.debugger.impl.GenericDebuggerRunner.doExecute(GenericDebuggerRunner.java:61)
      16. com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:43)
      17. com.intellij.execution.impl.ExecutionManagerImpl.lambda$startRunProfile$3(ExecutionManagerImpl.java:380)
      18. com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
      19. com.intellij.openapi.application.TransactionGuardImpl.access$300(TransactionGuardImpl.java:40)
      20. com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:113)
      21. com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:123)
      22. com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:109)
      23. com.intellij.execution.impl.ExecutionManagerImpl.lambda$startRunProfile$4(ExecutionManagerImpl.java:417)
      24. com.intellij.execution.impl.ExecutionManagerImpl.compileAndRun(ExecutionManagerImpl.java:292)
      25. com.intellij.execution.impl.ExecutionManagerImpl.startRunProfile(ExecutionManagerImpl.java:417)
      26. com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:40)
      27. com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:61)
      28. com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:50)
      29. com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:118)
      30. com.intellij.execution.impl.ExecutionManagerImpl.start(ExecutionManagerImpl.java:117)
      31. com.intellij.execution.impl.ExecutionManagerImpl.access$300(ExecutionManagerImpl.java:67)
      32. com.intellij.execution.impl.ExecutionManagerImpl$3.run(ExecutionManagerImpl.java:509)
      32 frames
    3. Openapi
      QueueProcessor.runSafely
      1. com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:222)
      1 frame
    4. IDEA
      LaterInvocator$FlushQueue.run
      1. com.intellij.util.Alarm$Request$1.run(Alarm.java:378)
      2. com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)
      3. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326)
      4. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)
      4 frames
    5. Java RT
      EventQueue.dispatchEvent
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      3. java.awt.EventQueue.access$500(EventQueue.java:97)
      4. java.awt.EventQueue$3.run(EventQueue.java:709)
      5. java.awt.EventQueue$3.run(EventQueue.java:703)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      8 frames
    6. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:863)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
      3 frames
    7. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames