当前位置: 代码迷 >> Java相关 >> 事务提交的时候 ORA-01733: 此处不允许虚拟列出现这个错误
  详细解决方案

事务提交的时候 ORA-01733: 此处不允许虚拟列出现这个错误

热度:105   发布时间:2016-04-22 21:28:44.0
事务提交的时候 ORA-01733: 此处不允许虚拟列出现这个异常
更新issuemark 的sql=update issuemark set bonusfile=1 where issueid=655375
11-05 14:15:44.737 [ERROR]  - ORA-01733: 此处不允许虚拟列

11-05 14:15:44.737 [ERROR]  - ORA-01733: 此处不允许虚拟列

11-05 14:15:44.737 [ERROR]  - Could not synchronize database state with session
org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
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.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at com.hongbo.lotto.scheduling.DrawFileDownloadScheduling.perform(DrawFileDownloadScheduling.java:240)
at com.hongbo.lotto.scheduling.DrawFileDownloadScheduling.execute(DrawFileDownloadScheduling.java:59)
at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: java.sql.BatchUpdateException: ORA-01733: 此处不允许虚拟列

at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:629)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9409)
at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:211)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
... 11 more


com.hongbo.lotto.scheduling.DrawFileDownloadScheduling.perform(DrawFileDownloadScheduling.java:240)在这行进行了事务的提交,就出现了这个异常。
java

------解决方案--------------------
是不是你更新视图 里面有条件关联的啊。