程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程解疑 >> hibernate-關於clob插入mysql報如下錯誤

hibernate-關於clob插入mysql報如下錯誤

編輯:編程解疑
關於clob插入mysql報如下錯誤

org.springframework.jdbc.UncategorizedSQLException: Hibernate flushing: could not update: [com.zte.ace.po.ApplicationAce#162304]; uncategorized SQLException for SQL [update application_ace set userId=?, usingName=?, version=?, description=?, packageName=?, usingType=?, iconPath=?, siconPath=?, appPath=?, state=?, creater=?, provider=?, CPId=?, createTime=?, checker=?, checkDate=?, updater=?, updateTime=?, fileSize=?, downloadCount=?, supportDevice=?, detail=?, discussCount=?, isAce=?, orderNo=?, refuseContent=?, codePath=?, versionCode=?, isAd=?, recommend=?, os=?, bigClassId=?, del=?, drafts=?, typeId=?, releaseState=?, appImgs=?, ratyNum=?, raty=?, appGuid=?, resolution=?, appType=?, userType=?, publishDate=?, iconType=?, isFullScreen=?, templateId=?, sourcePath=?, sourceFile=?, isEbook=?, ebooklogotype=?, ebookicontype=?, ebookbgtype=?, sbgPath=?, bgPath=?, isCharge=?, price=?, chapter=?, ebookAdv=?, ebookAdvId=?, author=?, copyId=?, admsg=?, chargeid=?, chargekey=?, paycode=?, shotImg=?, umAppKey=?, sourceNum=?, baiduAdv=?, baiduAppsid=?, baiduAppsec=?, srcPrice=?, virDownloadCount=?, MMCharge=?, UniCharge=?, Charge360=?, uniVacName=?, uniVacCode=?, AppPath360=?, UniAppPath=?, vigilantlevel=?, readable=?, useChSearchDirectory=?, isgetscore=?, appStatus=?, hasRdZtehr=?, isWellNo=?, startCover=?, teleCharge=?, telePayID=?, telePaySecret=?, telePayCode=?, teleAppPath=? where id=?]; SQL state [null]; error code [0]; Invalid position in BLOB object set; nested exception is javax.sql.rowset.serial.SerialException: Invalid position in BLOB object set
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
at org.springframework.orm.hibernate3.HibernateTransactionManager.convertJdbcAccessException(HibernateTransactionManager.java:801)
at org.springframework.orm.hibernate3.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:787)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:663)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy29.updateAppsObj(Unknown Source)
at com.zte.ace.comic.action.ComicAction.rebuildComic(ComicAction.java:711)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:891)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)
at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1369)
at ognl.ASTMethod.getValueBody(ASTMethod.java:90)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at ognl.SimpleNode.getValue(SimpleNode.java:258)
at ognl.Ognl.getValue(Ognl.java:494)
at ognl.Ognl.getValue(Ognl.java:458)
at com.opensymphony.xwork2.ognl.OgnlUtil$2.execute(OgnlUtil.java:309)
at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340)
at com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:307)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:423)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:287)
at com.zte.ace.interceptor.AutoLoginInter.intercept(AutoLoginInter.java:83)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
Caused by: javax.sql.rowset.serial.SerialException: Invalid position in BLOB object set
at javax.sql.rowset.serial.SerialClob.getSubString(SerialClob.java:255)
at com.mysql.jdbc.PreparedStatement.setClob(PreparedStatement.java:3529)
at org.apache.commons.dbcp.DelegatingPreparedStatement.setClob(DelegatingPreparedStatement.java:183)
at org.hibernate.type.ClobType.set(ClobType.java:73)
at org.hibernate.type.ClobType.nullSafeSet(ClobType.java:141)
at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:2015)

最佳回答:


已解決,不過還是不知道什麼原因

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved