java.lang.RuntimeException: Invalid parameters while trying to create new branch test1 for plan TEST-TEST. Error: branchName: [This name is already used in a branch or plan.]

Atlassian JIRA | Bradley Baetz | 2 years ago
  1. 0

    With stash/bamboo applications links configured, and bamboo use automatic branch creation, the following steps fail: 1. Create a new branch, 'test' 2. Bamboo creates a plan for the 'test' branch, and builds it 3. Delete the 'test' branch in stash 4. Bamboo disables the test branch plan 5. Create a branch called 'test' in stash again Expected: 'test' branch is re-enabled Actual: Bamboo logs have an exception: 2014-07-29 22:53:04,976 INFO [http-6990-31] [AccessLogFilter] 10.1.1.250 POST http://pear.home:6990/bamboo/rest/remote-event-consumer/latest/events/stash-branch-created-remote-event 76458kb 2014-07-29 22:53:05,006 ERROR [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-7] [AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event 'com.atlassian.stash.pl ugin.remote.event.StashBranchCreatedRemoteEvent@303bcb6b[branchName=test1,repositoryProject=TEST,repositorySlug=test,committer=admin,sourceId=1041209f-b842-3d23-b1ed-0c22aaa2e1ba,sourceUrl=h ttp://pear.home:7990/stash]' from the invoker 'SingleParameterMethodListenerInvoker{method=public void com.atlassian.bamboo.plugins.stash.events.BranchCreatedEventListener.onCreateRepository BranchEvent(com.atlassian.stash.plugin.remote.event.StashBranchCreatedRemoteEvent), listener=com.atlassian.bamboo.plugins.stash.events.BranchCreatedEventListener@878319f}'. java.lang.RuntimeException: Invalid parameters while trying to create new branch test1 for plan TEST-TEST. Error: branchName: [This name is already used in a branch or plan.] at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:66) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745) Caused by: java.security.InvalidParameterException: Invalid parameters while trying to create new branch test1 for plan TEST-TEST. Error: branchName: [This name is already used in a branch or plan.] at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.createChainBranch(BranchDetectionServiceImpl.java:798) at sun.reflect.GeneratedMethodAccessor1651.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ....

    Atlassian JIRA | 2 years ago | Bradley Baetz
    java.lang.RuntimeException: Invalid parameters while trying to create new branch test1 for plan TEST-TEST. Error: branchName: [This name is already used in a branch or plan.]
  2. 0

    With stash/bamboo applications links configured, and bamboo use automatic branch creation, the following steps fail: 1. Create a new branch, 'test' 2. Bamboo creates a plan for the 'test' branch, and builds it 3. Delete the 'test' branch in stash 4. Bamboo disables the test branch plan 5. Create a branch called 'test' in stash again Expected: 'test' branch is re-enabled Actual: Bamboo logs have an exception: 2014-07-29 22:53:04,976 INFO [http-6990-31] [AccessLogFilter] 10.1.1.250 POST http://pear.home:6990/bamboo/rest/remote-event-consumer/latest/events/stash-branch-created-remote-event 76458kb 2014-07-29 22:53:05,006 ERROR [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-7] [AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event 'com.atlassian.stash.pl ugin.remote.event.StashBranchCreatedRemoteEvent@303bcb6b[branchName=test1,repositoryProject=TEST,repositorySlug=test,committer=admin,sourceId=1041209f-b842-3d23-b1ed-0c22aaa2e1ba,sourceUrl=h ttp://pear.home:7990/stash]' from the invoker 'SingleParameterMethodListenerInvoker{method=public void com.atlassian.bamboo.plugins.stash.events.BranchCreatedEventListener.onCreateRepository BranchEvent(com.atlassian.stash.plugin.remote.event.StashBranchCreatedRemoteEvent), listener=com.atlassian.bamboo.plugins.stash.events.BranchCreatedEventListener@878319f}'. java.lang.RuntimeException: Invalid parameters while trying to create new branch test1 for plan TEST-TEST. Error: branchName: [This name is already used in a branch or plan.] at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:66) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745) Caused by: java.security.InvalidParameterException: Invalid parameters while trying to create new branch test1 for plan TEST-TEST. Error: branchName: [This name is already used in a branch or plan.] at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.createChainBranch(BranchDetectionServiceImpl.java:798) at sun.reflect.GeneratedMethodAccessor1651.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ....

    Atlassian JIRA | 2 years ago | Bradley Baetz
    java.lang.RuntimeException: Invalid parameters while trying to create new branch test1 for plan TEST-TEST. Error: branchName: [This name is already used in a branch or plan.]
  3. 0

    How to run selenium hub & node programmatically(without console)

    Google Groups | 1 year ago | A B
    java.security.InvalidParameterException: Error: The registration request needs to specify either the remote host, or a valid id.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    crash report

    GitHub | 10 months ago | door43app
    java.security.InvalidParameterException: a valid source translation id is required
  6. 0

    adding contributor

    GitHub | 10 months ago | door43app
    java.security.InvalidParameterException: a valid source translation id is required

    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.security.InvalidParameterException

      Invalid parameters while trying to create new branch test1 for plan TEST-TEST. Error: branchName: [This name is already used in a branch or plan.]

      at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.createChainBranch()
    2. com.atlassian.bamboo
      BranchDetectionServiceImpl.createChainBranch
      1. com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.createChainBranch(BranchDetectionServiceImpl.java:798)
      1 frame
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.GeneratedMethodAccessor1651.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2 frames