org.springframework.orm.hibernate.HibernateSystemException: not-null property references a null or transient value: com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact; nested exception is net.sf.hibernate.PropertyValueExcepti on: not-null property references a null or transient value: com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact

Atlassian JIRA | Martin Meinhold | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    {noformat} 2014-09-15 01:10:59,095 WARN [scheduler_Worker-9] [BuildExpiryBeanImpl] Unable to expire MASTERONE-CIFUNCHAL865-2 org.springframework.orm.hibernate.HibernateSystemException: not-null property references a null or transient value: com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact; nested exception is net.sf.hibernate.PropertyValueExcepti on: not-null property references a null or transient value: com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:597) 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.deleteAll(HibernateTemplate.java:661) at com.atlassian.bamboo.build.artifact.ArtifactLinkHibernateDao.removeAll(ArtifactLinkHibernateDao.java:42) at sun.reflect.GeneratedMethodAccessor6623.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) 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 com.sun.proxy.$Proxy96.removeAll(Unknown Source) at com.atlassian.bamboo.build.artifact.DefaultArtifactLinkManager.removeArtifactLinks(DefaultArtifactLinkManager.java:216) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryManagerImpl.removeArtifacts(BuildResultsSummaryManagerImpl.java:1089) at sun.reflect.GeneratedMethodAccessor6624.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:30) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 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 com.sun.proxy.$Proxy64.removeArtifacts(Unknown Source) at com.atlassian.bamboo.build.expiry.BuildExpiryBeanImpl.expirePlan(BuildExpiryBeanImpl.java:260) at com.atlassian.bamboo.build.expiry.BuildExpiryBeanImpl.expireAllBuilds(BuildExpiryBeanImpl.java:129) at com.atlassian.bamboo.build.expiry.BuildExpiryScheduler$BuildExpiryJob.execute(BuildExpiryScheduler.java:113) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) 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 org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact at net.sf.hibernate.impl.SessionImpl.checkNullability(SessionImpl.java:1289) at net.sf.hibernate.impl.SessionImpl.doDelete(SessionImpl.java:1257) at net.sf.hibernate.impl.SessionImpl.delete(SessionImpl.java:1185) at org.springframework.orm.hibernate.HibernateTemplate$17.doInHibernate(HibernateTemplate.java:665) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) ... 35 more {noformat} We're currently running 5.7-m2 with a patched {{atlassian-bamboo-api-5.7-m2.jar}}, see BUILDENG-6416.

    Atlassian JIRA | 2 years ago | Martin Meinhold
    org.springframework.orm.hibernate.HibernateSystemException: not-null property references a null or transient value: com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact; nested exception is net.sf.hibernate.PropertyValueExcepti on: not-null property references a null or transient value: com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact
  2. 0

    {noformat} 2014-09-15 01:10:59,095 WARN [scheduler_Worker-9] [BuildExpiryBeanImpl] Unable to expire MASTERONE-CIFUNCHAL865-2 org.springframework.orm.hibernate.HibernateSystemException: not-null property references a null or transient value: com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact; nested exception is net.sf.hibernate.PropertyValueExcepti on: not-null property references a null or transient value: com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:597) 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.deleteAll(HibernateTemplate.java:661) at com.atlassian.bamboo.build.artifact.ArtifactLinkHibernateDao.removeAll(ArtifactLinkHibernateDao.java:42) at sun.reflect.GeneratedMethodAccessor6623.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) 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 com.sun.proxy.$Proxy96.removeAll(Unknown Source) at com.atlassian.bamboo.build.artifact.DefaultArtifactLinkManager.removeArtifactLinks(DefaultArtifactLinkManager.java:216) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryManagerImpl.removeArtifacts(BuildResultsSummaryManagerImpl.java:1089) at sun.reflect.GeneratedMethodAccessor6624.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:30) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 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 com.sun.proxy.$Proxy64.removeArtifacts(Unknown Source) at com.atlassian.bamboo.build.expiry.BuildExpiryBeanImpl.expirePlan(BuildExpiryBeanImpl.java:260) at com.atlassian.bamboo.build.expiry.BuildExpiryBeanImpl.expireAllBuilds(BuildExpiryBeanImpl.java:129) at com.atlassian.bamboo.build.expiry.BuildExpiryScheduler$BuildExpiryJob.execute(BuildExpiryScheduler.java:113) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) 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 org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact at net.sf.hibernate.impl.SessionImpl.checkNullability(SessionImpl.java:1289) at net.sf.hibernate.impl.SessionImpl.doDelete(SessionImpl.java:1257) at net.sf.hibernate.impl.SessionImpl.delete(SessionImpl.java:1185) at org.springframework.orm.hibernate.HibernateTemplate$17.doInHibernate(HibernateTemplate.java:665) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) ... 35 more {noformat} We're currently running 5.7-m2 with a patched {{atlassian-bamboo-api-5.7-m2.jar}}, see BUILDENG-6416.

    Atlassian JIRA | 2 years ago | Martin Meinhold
    com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact

    Root Cause Analysis

    1. net.sf.hibernate.PropertyValueException

      not-null property references a null or transient value: com.atlassian.bamboo.build.artifact.DefaultArtifactLink.artifact

      at net.sf.hibernate.impl.SessionImpl.checkNullability()
    2. net.sf.hibernate
      SessionImpl.delete
      1. net.sf.hibernate.impl.SessionImpl.checkNullability(SessionImpl.java:1289)
      2. net.sf.hibernate.impl.SessionImpl.doDelete(SessionImpl.java:1257)
      3. net.sf.hibernate.impl.SessionImpl.delete(SessionImpl.java:1185)
      3 frames
    3. Hibernate
      HibernateTemplate.deleteAll
      1. org.springframework.orm.hibernate.HibernateTemplate$17.doInHibernate(HibernateTemplate.java:665)
      2. org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
      3. org.springframework.orm.hibernate.HibernateTemplate.deleteAll(HibernateTemplate.java:661)
      3 frames
    4. com.atlassian.bamboo
      ArtifactLinkHibernateDao.removeAll
      1. com.atlassian.bamboo.build.artifact.ArtifactLinkHibernateDao.removeAll(ArtifactLinkHibernateDao.java:42)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor6623.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    9. com.sun.proxy
      $Proxy96.removeAll
      1. com.sun.proxy.$Proxy96.removeAll(Unknown Source)
      1 frame
    10. com.atlassian.bamboo
      BuildResultsSummaryManagerImpl.removeArtifacts
      1. com.atlassian.bamboo.build.artifact.DefaultArtifactLinkManager.removeArtifactLinks(DefaultArtifactLinkManager.java:216)
      2. com.atlassian.bamboo.resultsummary.BuildResultsSummaryManagerImpl.removeArtifacts(BuildResultsSummaryManagerImpl.java:1089)
      2 frames
    11. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor6624.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    12. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    13. com.atlassian.bamboo
      AuthorityOverrideMethodSecurityInterceptor.invoke
      1. com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:30)
      1 frame
    14. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      1 frame
    15. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    16. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    17. com.sun.proxy
      $Proxy64.removeArtifacts
      1. com.sun.proxy.$Proxy64.removeArtifacts(Unknown Source)
      1 frame
    18. com.atlassian.bamboo
      BuildExpiryScheduler$BuildExpiryJob.execute
      1. com.atlassian.bamboo.build.expiry.BuildExpiryBeanImpl.expirePlan(BuildExpiryBeanImpl.java:260)
      2. com.atlassian.bamboo.build.expiry.BuildExpiryBeanImpl.expireAllBuilds(BuildExpiryBeanImpl.java:129)
      3. com.atlassian.bamboo.build.expiry.BuildExpiryScheduler$BuildExpiryJob.execute(BuildExpiryScheduler.java:113)
      3 frames
    19. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      1 frame
    20. com.atlassian.bamboo
      ImpersonationHelper$1.run
      1. com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      2. com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      3. com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      4. com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      4 frames
    21. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
      1 frame