为了账号安全,请及时绑定邮箱和手机立即绑定

三大框架整合,保存数据时报错

三大框架整合,保存数据时报错

fenkapian 2016-09-14 20:19:44
在控制台就输出这个   Hibernate:      select         hibernate_sequence.nextval      from         dual                  页面上输出这个         Struts Problem Report Struts has detected an unhandled exception: Messages:    ORA-02289: ?????could not get next sequence valuecould not get next sequence value; SQL [select hibernate_sequence.nextval from dual]; nested exception is org.hibernate.exception.SQLGrammarException: could not get next sequence value     File:    oracle/jdbc/driver/T4CTTIoer.java     Line number:    439     Stacktraces org.springframework.dao.InvalidDataAccessResourceUsageException: could not get next sequence value; SQL [select hibernate_sequence.nextval from dual]; nested exception is org.hibernate.exception.SQLGrammarException: could not get next sequence value     org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:635)     org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)     org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)     org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)     org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:683)     dao.impl.EasybuyUserDaoImpl.save(EasybuyUserDaoImpl.java:30)     service.impl.EasybuyUserServiceImpl.save(EasybuyUserServiceImpl.java:32)     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     java.lang.reflect.Method.invoke(Method.java:606)     org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)     org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)     org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)     org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)     org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)     org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)     org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)     org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)     com.sun.proxy.$Proxy4.save(Unknown Source)
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1703 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信