首页 > 网站 > 建站经验 > 正文

ORA-01461:仅能绑定要插入LONG列的LO,NG值

2019-11-02 15:31:31
字体:
来源:转载
供稿:网友

   使用Hibernate保存数据到oracle数据库时出现如下错误:
?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 19:52:35,156  WARN JDBCExceptionReporter:100 - SQL Error: 1461, SQLState: 72000 19:52:35,156 ERROR JDBCExceptionReporter:101 - ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值   19:52:35,156  WARN JDBCExceptionReporter:100 - SQL Error: 1461, SQLState: 72000 19:52:35,156 ERROR JDBCExceptionReporter:101 - ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值   19:52:35,156 ERROR AbstractFlushingEventListener:324 - Could not synchronize database state with session org.hibernate.QueryTimeoutException: Could not execute JDBC batch update  at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:124)  at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)  at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)  at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:262)  at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:178)  at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)  at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)  at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)  at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:375)  at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)  at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:6 56)  at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformT ra nsactionManager.java:754)  at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransact ionManager.java:723)  at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(Transa cti onAspectSupport.java:393)  at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)  at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)  at $Proxy45.queryObjectOut(Unknown Source)  at sun.reflect.NativeMethod
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表