Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-18201

Auto merge branch plan fail with error - Name is null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Low
    • 5.15.1
    • 5.15.0.1
    • None

    Description

      Summary

      Automatic merging in branch plan will fail with the error "Exception during merge: Name is null"

      Steps to Reproduce

      1. Configure Bitbucket Could repository into a build plan
      2. Configure automatic merging in branch plan configuration
      3. Run the branch plan

      Expected Results

      It will build successfully and merge the branches

      Actual Results

      It fail with the below exception thrown in the atlassian-bamboo.log file:

      2017-02-20 21:04:40,679 INFO [5-DelayedChangeDetectionThread:pool-11-thread-4] [ChainExecutionManagerImpl] Doing the merge before the first stage
      2017-02-20 21:04:40,680 INFO [5-DelayedChangeDetectionThread:pool-11-thread-4] [BranchIntegrationHelperImpl] Checking out code from BAM-BIT, revision cf7acae1a4b5b212a4d92ac3c4b5d910a82865b2
      2017-02-20 21:04:40,680 INFO [5-DelayedChangeDetectionThread:pool-11-thread-4] [BranchIntegrationHelperImpl] and merging code from BAM-BIT1, revision e30cbf5b851669aa0513386290a5b0819cb3921b
      2017-02-20 21:04:40,680 WARN [5-DelayedChangeDetectionThread:pool-11-thread-4] [ChainExecutionManagerImpl] Exception during merge: Name is null
      java.lang.NullPointerException: Name is null
      	at java.lang.Enum.valueOf(Enum.java:236)
      	at com.atlassian.bamboo.plugins.bitbucket.api.BitbucketRepositoryType.valueOf(BitbucketRepositoryType.java:6)
      	at com.atlassian.bamboo.plugins.bitbucket.v2.AbstractBitbucketCloudExecutor.getRepositoryType(AbstractBitbucketCloudExecutor.java:73)
      	at com.atlassian.bamboo.plugins.bitbucket.v2.AbstractBitbucketCloudExecutor.getUnderlyingVcsModuleDescriptor(AbstractBitbucketCloudExecutor.java:258)
      	at com.atlassian.bamboo.plugins.bitbucket.v2.BitbucketCloudWorkingCopyManager.getWorkingCopyManager(BitbucketCloudWorkingCopyManager.java:115)
      	at com.atlassian.bamboo.plugins.bitbucket.v2.BitbucketCloudWorkingCopyManager.checkoutAndMerge(BitbucketCloudWorkingCopyManager.java:93)
      	at com.atlassian.bamboo.plugins.bitbucket.v2.BitbucketCloudWorkingCopyManager.checkoutAndMerge(BitbucketCloudWorkingCopyManager.java:94)
      	at com.atlassian.bamboo.plan.branch.BranchIntegrationHelperImpl.merge(BranchIntegrationHelperImpl.java:257)
      	at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.lambda$doVcsMergeRunnable$4(ChainExecutionManagerImpl.java:1148)
      	at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:206)
      	at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.doVcsMerge(ChainExecutionManagerImpl.java:1091)
      	at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.access$1600(ChainExecutionManagerImpl.java:126)
      	at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$4.run(ChainExecutionManagerImpl.java:718)
      	at io.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:302)
      	at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.execute(ChainExecutionManagerImpl.java:701)
      	at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.tryStartChainState(ChainExecutionManagerImpl.java:367)
      	at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.delayedStart(ChainExecutionManagerImpl.java:235)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
      	at com.sun.proxy.$Proxy152.delayedStart(Unknown Source)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      	at com.sun.proxy.$Proxy152.delayedStart(Unknown Source)
      	at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1$1.lambda$call$0(PlanExecutionManagerImpl.java:413)
      	at com.atlassian.bamboo.util.CacheAwareness$3.call(CacheAwareness.java:159)
      	at com.atlassian.bamboo.util.CacheAwareness$3.call(CacheAwareness.java:155)
      	at com.atlassian.bamboo.util.CacheAwareness.withValuesOlderThanTimestampReloaded(CacheAwareness.java:188)
      	at com.atlassian.bamboo.util.CacheAwareness.withValuesOlderThanTimestampReloaded(CacheAwareness.java:154)
      	at com.atlassian.bamboo.util.CacheAwareness.withValuesOlderThanTimestampReloaded(CacheAwareness.java:219)
      	at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1$1.call(PlanExecutionManagerImpl.java:412)
      	at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1$1.call(PlanExecutionManagerImpl.java:403)
      	at io.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:293)
      	at com.atlassian.bamboo.plan.PlanExecutionLockServiceImpl.lock(PlanExecutionLockServiceImpl.java:85)
      	at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.doWithProcessLock(PlanExecutionManagerImpl.java:783)
      	at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.access$400(PlanExecutionManagerImpl.java:130)
      	at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1.run(PlanExecutionManagerImpl.java:397)
      	at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:51)
      	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)
      

      Attachments

        Activity

          People

            mgardias Marcin Gardias
            klfoong Foong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: