org.springframework.jdbc.UncategorizedSQLException: Hibernate flushing: could not update
[com.luke.spoa.model.SpCode#admin6];uncategorizedSQLExceptionforSQL[updateSPOA.dbo.sp...
[com.luke.spoa.model.SpCode#admin6]; uncategorized SQLException for SQL [update
SPOA.dbo.sp_code set role_id=?, sp_code_id=?, sp_code_pwd=?, sp_code_state=?,
sp_code_created=?, sp_code_datetime=? where sp_code=?]; SQL state [HY000]; error code [8102];
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]无法更新标识列 'sp_code_id'。; nested
exception is java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]无法
更新标识列 'sp_code_id'。
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate
(AbstractFallbackSQLExceptionTranslator.java:83)
org.springframework.orm.hibernate3.HibernateTransactionManager.convertJdbcAccessException
(HibernateTransactionManager.java:750)
org.springframework.orm.hibernate3.HibernateTransactionManager.convertHibernateAccessException
(HibernateTransactionManager.java:736)
org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit
(HibernateTransactionManager.java:614)
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit
(AbstractPlatformTransactionManager.java:732)
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit
(AbstractPlatformTransactionManager.java:701)
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterRetu
rning(TransactionAspectSupport.java:321)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke
(TransactionInterceptor.java:116)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:171)
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke
(ExposeInvocationInterceptor.java:89)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:171)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke
(JdkDynamicAopProxy.java:204)
$Proxy3.updateSpCode(Unknown Source)
com.luke.spoa.action.BasesInfoAction.exit(BasesInfoAction.java:188)
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)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction
(DefaultActionInvocation.java:441)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly
(DefaultActionInvocation.java:280)
com.opensymphony.xwork2.DefaultActionInvocation.invoke 展开
SPOA.dbo.sp_code set role_id=?, sp_code_id=?, sp_code_pwd=?, sp_code_state=?,
sp_code_created=?, sp_code_datetime=? where sp_code=?]; SQL state [HY000]; error code [8102];
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]无法更新标识列 'sp_code_id'。; nested
exception is java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]无法
更新标识列 'sp_code_id'。
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate
(AbstractFallbackSQLExceptionTranslator.java:83)
org.springframework.orm.hibernate3.HibernateTransactionManager.convertJdbcAccessException
(HibernateTransactionManager.java:750)
org.springframework.orm.hibernate3.HibernateTransactionManager.convertHibernateAccessException
(HibernateTransactionManager.java:736)
org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit
(HibernateTransactionManager.java:614)
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit
(AbstractPlatformTransactionManager.java:732)
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit
(AbstractPlatformTransactionManager.java:701)
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterRetu
rning(TransactionAspectSupport.java:321)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke
(TransactionInterceptor.java:116)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:171)
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke
(ExposeInvocationInterceptor.java:89)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:171)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke
(JdkDynamicAopProxy.java:204)
$Proxy3.updateSpCode(Unknown Source)
com.luke.spoa.action.BasesInfoAction.exit(BasesInfoAction.java:188)
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)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction
(DefaultActionInvocation.java:441)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly
(DefaultActionInvocation.java:280)
com.opensymphony.xwork2.DefaultActionInvocation.invoke 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询