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
  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
  3. 0

    Hibernate Community • View topic - not-null property references a null or transient value

    hibernate.org | 6 months ago
    net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.ccg.domain.Team.lead
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I get this error when restoring a space into 1.3DR4 from a 1.2.3 export. Other space exports - with attachments - restore OK. Please email me to get a copy of the export zip file - the content is proprietary. Cause: org.springframework.orm.hibernate.HibernateSystemException: not-null property references a null or transient value: com.atlassian.confluence.pages.Attachment.fileName; nested exception is net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.confluence.pages.Attachment.fileName Stack Trace: [hide] org.springframework.orm.hibernate.HibernateSystemException: not-null property references a null or transient value: com.atlassian.confluence.pages.Attachment.fileName; nested exception is net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.confluence.pages.Attachment.fileName net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.confluence.pages.Attachment.fileName at net.sf.hibernate.impl.SessionImpl.checkNullability(SessionImpl.java:1277) at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2571) at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2458) at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2260) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2239) at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61) at org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:463) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:373) at com.atlassian.confluence.util.XWorkTransactionInterceptor$1.beforeResult(XWorkTransactionInterceptor.java:124) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:181) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:33) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.atlassian.confluence.core.ConfluenceValidationInterceptor.intercept(ConfluenceValidationInterceptor.java:16) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.security.actions.PermissionCheckInterceptor.intercept(PermissionCheckInterceptor.java:40) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.pages.actions.PageAwareInterceptor.intercept(PageAwareInterceptor.java:73) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.core.ConfluenceAutowireInterceptor.intercept(ConfluenceAutowireInterceptor.java:25) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.user.actions.AuthenticatedUserInterceptor.intercept(AuthenticatedUserInterceptor.java:51) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.util.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:133) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:115) at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:229) at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:199) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.atlassian.confluence.util.profiling.ProfilingPageFilter.parsePage(ProfilingPageFilter.java:159) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:168) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:181) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:170) at bucket.custom.FlushingSpringSessionInViewFilter.doFilterInternal(FlushingSpringSessionInViewFilter.java:30) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.confluence.util.error.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:26) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) at java.lang.Thread.run(Thread.java:534) Referer URL: http://www.leadiant.com/confluence/admin/backup.action Build Information: Uptime: 3 days, 14 hours, 4 minutes, 13 seconds Version: 1.3-DR4 Build Number: 108 Server Information: Application Server: Apache Tomcat/4.1.29 Servlet Version: 2.3 Database Dialect: N/A Memory Information: Total Memory: 127 MB Free Memory: 50 MB Used Memory: 77 MB System Information: System Date: Thursday, 18 Nov 2004 System Time: 22:51:29 System Favourite Colour: Tangerine Java Version: 1.4.2_05 Java Vendor: Sun Microsystems Inc. JVM Version: 1.0 JVM Vendor: Sun Microsystems Inc. JVM Implementation Version: 1.4.2_05-b04 Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition Java VM: Java HotSpot(TM) Client VM User Name: stuart User Timezone: US/Central Operating System: Linux 2.4.20-31.9SB OS Architecture: i386 Request Information: URL: http://www.leadiant.com/confluence/admin/restore-local-file.action - Scheme: http - Server: www.leadiant.com - Port: 80 - URI: /confluence/500page.jsp - - Context Path: /confluence - - Servlet Path: /500page.jsp - - Path Info: null - - Query String: null Attributes: - javax.servlet.error.exception : org.springframework.dao.CleanupFailureDataAccessException: Failed to flush session before close: not-null property references a null or transient value: com.atlassian.confluence.pages.Attachment.fileName; nested exception is net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.confluence.pages.Attachment.fileName - javax.servlet.error.message : - os_securityfilter_already_filtered : true - atlassian.core.util.groups.cache.key : [pdpadmin, obv, confluence-users, leadiant, rsta, pdpgroup, confluence-administrators, sbux] - __sitemesh__using_stream : false - javax.servlet.error.request_uri : /confluence/admin/restore-local-file.action - javax.servlet.error.status_code : 500 - __sitemesh__filterapplied : true - javax.servlet.error.servlet_name : action - webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@eac8af - loginfilter.already.filtered : true - atlassian.core.seraph.original.url : /admin/restore-local-file.action - javax.servlet.jsp.jspException : org.springframework.orm.hibernate.HibernateSystemException: not-null property references a null or transient value: com.atlassian.confluence.pages.Attachment.fileName; nested exception is net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.confluence.pages.Attachment.fileName - sessioninview.FILTERED : true Parameters: - localFile = PDP-20041118-17_39_00.zip Logging: 0 log statements generated by this request.

    Atlassian JIRA | 1 decade ago | Stuart Donovan
    net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.confluence.pages.Attachment.fileName
  6. 0

    Creates a new instance of class B which inherits from class A with an existing instance of A. For an exmaple, there are two classes Person and Customer inheriting from Person. The business logic is that a customer is created when a person buys products in the system. In the implementation, the instance of Person has alreay existed and a new instance customer is going to be created with the existing instance of Person. I used the dynamic-insert for class B, but still got such an error: net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: test.hiber.ClassB.apro1 at net.sf.hibernate.impl.SessionImpl.checkNullability(SessionImpl.java:1269) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:921) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:850) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:772) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:731) at test.hiber.Hiber.createBwithA(Hiber.java:66) ------------------------------------------------------------- the bean sources with XDoclet tags are: public class ClassA { private String objID; private String apro1; private String apro2; public ClassA() { } /** * @hibernate.property * @hibernate.column * name="PRO_1" * not-null="true" * length="128" * @return Returns the apro1. */ public String getApro1() { return apro1; } public void setApro1(String apro1) { this.apro1 = apro1; } /** * @hibernate.property * @hibernate.column * name="PRO_2" * not-null="true" * length="16" * @param apro1 The apro1 to set. */ public String getApro2() { return apro2; } /** * @param apro2 The apro2 to set. */ public void setApro2(String apro2) { this.apro2 = apro2; } /** * @hibernate.id * generator-class="assigned" * * @return Returns the objID. */ public String getObjID() { return objID; } /** * @param objID The objID to set. */ public void setObjID(String objID) { this.objID = objID; } } /** * *@hibernate.joined-subclass * table="QBS_CLASS_B" * dynamic-insert="true" * *@hibernate.joined-subclass-key * column="ClassA_KEY" * */ public class ClassB extends ClassA { private String bpro; /** * @hibernate.property * @hibernate.column * name="BPRO" * not-null="true" * @return Returns the bpro. */ public String getBpro() { return bpro; } /** * @param bpro The bpro to set. */ public void setBpro(String bpro) { this.bpro = bpro; } } ----------------------------------------------- the test code is: public void test() { createClassA(); createClassBwithA(); } public void createClassA() throws Exception { Session s = sessionFactory.openSession(); ClassA a = new ClassA(); a.setObjID("001a"); a.setApro1("property 1 of a"); a.setApro2("property 2 of a"); s.save(a); s.flush(); s.close(); } public void createBwithA() throws Exception { Session s = sessionFactory.openSession(); Transaction tx = s.beginTransaction(); ClassB b = new ClassB(); b.setObjID("001a"); b.setBpro("b property"); s.save(b); tx.commit(); s.flush(); s.close(); }

    Hibernate JIRA | 1 decade ago | James
    net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: test.hiber.ClassB.apro1

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