Document directory
This problem occurs only when many jar packages are removed during project writing.
Struts problem report
Struts has detected an unhandled exception:
Messages: |
- Object references an unsaved transient instance-Save the transient instance before flushing: COM. yy. entity. Orgnization
- Object references an unsaved transient instance-Save the transient instance before flushing: COM. YY. entity. orgnization; Nested exception is Org. hibernate. transientobjectexception: Object references an unsaved transient instance-Save the transient instance
Before flushing: COM. yy. entity. Orgnization
|
File: |
Org/hibernate/engine/foreignkeys. Java |
Line number: |
243 |
Stacktraces
Org. springframework. Dao. Events: Object references an unsaved transient instance-Save the transient instance before flushing: COM. yy. entity. orgnization; Nested exception is org. hibernate. transientobjectexception: Object
References an unsaved transient instance-Save the transient instance before flushing: COM. yy. entity. Orgnization
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:654) org.springframework.orm.hibernate3.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:793) org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:664) org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754) org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723) org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393) org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) $Proxy14.save(Unknown Source) com.yy.action.OrgAction.save(OrgAction.java:101) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597)
You just need to add the antlr-2.7.6.jar. 3 hours wasted on this, tangle.