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

Saving default Job Name as 'Default Job' resulting an exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.7.3, 3.0 i2, 3.0
    • 2.7.2
    • None
    • None

    Description

      After upgrade from 2.6 to 2.7.2, editing the Job Details will show the following exception:

      Stack Trace:
      org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 36
      at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:590)
      at org.springframework.orm.hibernate.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:353)
      at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:375)
      at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:337)
      at com.atlassian.bamboo.plan.PlanHibernateDao.getPlanByName(PlanHibernateDao.java:89)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy2.getPlanByName(Unknown Source)
      

      Steps to replicate the problem:

      1. Upgrade the instance from 2.6 to 2.7.2
      2. Go to a project
      3. Edit stages
      4. Configure Default Job
      5. Do not change anything make sure the Job Name: Default Job
      6. Save


      Current workaround is to change the problematic job, Job Name to others beside Default Job

      Attachments

        Activity

          People

            pbruski Przemek Bruski
            zyap Zed Yap [Atlassian]
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: