我将原来的一个VARCHAR2字段更改为CLOB字段后,无论查看还是保存该表的数据都报上面的错误
环境:
HIBERNATE3
WEBLOGIC 8.1
ORACLE9i
WINDOWS2000
错误信息:
ERROR [ExecuteThread: '14' for queue: 'weblogic.kernel.Default'] (BulletinAction
.java:249) - java.lang.UnsupportedOperationException: Clobs are not cacheable
java.lang.UnsupportedOperationException: Clobs are not cacheable
at org.hibernate.type.ClobType.disassemble(ClobType.java:83)
at org.hibernate.type.TypeFactory.disassemble(TypeFactory.java:338)
at org.hibernate.cache.entry.CacheEntry.<init>(CacheEntry.java:37)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:
124)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.j
ava:492)
at org.hibernate.loader.Loader.doQuery(Loader.java:411)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lo
ader.java:206)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1271)
at org.hibernate.loader.entity.EntityLoader.load(EntityLoader.java:141)
at org.hibernate.loader.entity.EntityLoader.load(EntityLoader.java:126)
at org.hibernate.loader.entity.BatchingEntityLoader.load(BatchingEntityL
oader.java:81)
at org.hibernate.persister.entity.BasicEntityPersister.load(BasicEntityP
ersister.java:2496)
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(D
efaultLoadEventListener.java:387)
at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEv
entListener.java:368)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEven
tListener.java:166)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEven
tListener.java:140)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEv
entListener.java:119)
at org.hibernate.impl.SessionImpl.immediateLoad(SessionImpl.java:577)
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyIn
itializer.java:59)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(Abstrac
tLazyInitializer.java:80)
at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializ
er.java:134)
at com.mtm.wsjdzf.po.BulletinBoard$$EnhancerByCGLIB$$7ce70752.getDtExecu
te(<generated>)
at com.mtm.wsjdzf.action.xzbg.BulletinAction.browBulletin(BulletinAction
.java:206)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchActio
n.java:280)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:
216)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148