首页新闻找找看学习计划

oracle11g clob 问题

0
悬赏园豆:100 [待解决问题]

版本说明
oracle server ver 11.2.0.1.0
oracle customer ver 10.2.0.5.0
navicat for oracle version 10.0.11
hibernate version 3.0
spring 2.5
数据库连接用的是 c3p0-0.9.1.jar


建表我用的是 navicat for oracle

表结构以下

create table "DEMO_1"."TEST_GOV"(
"ID" NUMBER(9) not null,
"CONTENT" CLOB,
constraint "SYS_C0022226" primary key ("ID")
);

-------------------分割线----------------------------------------
实体类

import java.sql.Clob;


public class TestGov {
private long id;
private Clob content;

public TestGov() {
// TODO Auto-generated constructor stub
}

public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public Clob getContent() {
return content;
}
public void setContent(Clob content) {
this.content = content;
}



}

 

 


问题出现了,当新增一条记录的时候 出现异常
[2014-03-21 11:28:22] ERROR org.hibernate.util.JDBCExceptionReporter(JDBCExceptionReporter.java:78) - ORA-01460: 转换请求无法实施或不合理

[2014-03-21 11:28:22] ERROR org.hibernate.event.def.AbstractFlushingEventListener(AbstractFlushingEventListener.java:301) - Could not synchronize database state with session
org.hibernate.exception.GenericJDBCException: could not insert: [com.wonhe.core.gov.bean.TestGov]
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2267)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2660)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:56)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:420)
at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)
at com.wine.api.dao.BaseDao.save(BaseDao.java:64)
at com.wonhe.manage.gov.action.GovAction.saveTest(GovAction.java:131)
at com.wonhe.manage.gov.action.GovAction$$FastClassByCGLIB$$cf18744d.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
at com.wonhe.manage.log.service.OperateLogService.logAround(OperateLogService.java:117)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdvi


---------------------------分割线--------------------------------------
我调试过 觉得是版本问题,但是就是找不出是哪里,有哪位大神知道的,请告知,谢谢

xuanwen的主页 xuanwen | 初学一级 | 园豆:104
提问于:2014-03-21 12:01
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册