斷點(diǎn)

          每天進(jìn)步一點(diǎn)點(diǎn)!
          posts - 174, comments - 56, trackbacks - 0, articles - 21
          PCIS[2010-07-08 18:08:02,531]>>ERROR>> [BizControllerImpl異常堆棧{事務(wù)ID/用戶代碼}:[1278583679437325]/[00000210]:com.fwk.service.BusinessServiceException: com.fwk.dao.DaoException: 保存保單,saveOrUpdatePolicy()時(shí)出錯(cuò); nested exception is org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
           at com.pcis.policy.dm.PolicyDAO.saveOrUpdatePolicy(PolicyDAO.java:193)
           at com.pcis.policy.app.newbusiness.service.PolicyAppService.savePolicy(PolicyAppService.java:343)
           at com.pcis.policy.app.underwrite.bm.UnderwriteBM.submitUnderwrite(UnderwriteBM.java:139)
           at com.pcis.policy.app.underwrite.action.UnderwriteBizAction.submitUnderwrite(UnderwriteBizAction.java:548)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           ...
          Caused by: org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
           at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624)
           at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
           at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:379)
           at org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:841)
           at com.fwk.dao.BaseDao.flush(Unknown Source)
           at com.pcis.policy.dm.PolicyDAO.saveOrUpdatePolicy(PolicyDAO.java:174)
           ... 80 more
          Caused by: java.sql.BatchUpdateException: ORA-00001: unique constraint (PCISV6_TS.UI_PLY_CVRG) violated
           at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:602)
           at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9350)
           at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:210)
           at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
           at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
           at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
           ... 90 more

          分析及解決:
          在頁(yè)面保存的時(shí)候,后臺(tái)提示是違反唯一索引,通過(guò)UI_PLY_CVRG 查詢相應(yīng)的表,
          select * from user_indexes  where index_name='UI_PLY_CVRG'
          該表是WEB_PLY_CVRG ,而該表的唯一索引UI_PLY_CVRG 是由該表的3個(gè)字段組成C_PLY_NO、N_EDR_PRJ_NO、 N_SEQ_NO,然后看下頁(yè)面發(fā)現(xiàn)是N_SEQ_NO有4個(gè)重復(fù),刪除多余的記錄即可保存成功。

           

          主站蜘蛛池模板: 新绛县| 云阳县| 千阳县| 辰溪县| 将乐县| 苗栗市| 农安县| 山阴县| 安远县| 张家口市| 岐山县| 三明市| 敦化市| 左云县| 双桥区| 开封县| 九龙城区| 治县。| 饶河县| 万源市| 肃宁县| 兖州市| 探索| 明水县| 松溪县| 洛扎县| 绥滨县| 柘荣县| 西峡县| 双柏县| 岢岚县| 太湖县| 长春市| 信丰县| 鸡东县| 锡林浩特市| 普陀区| 秦皇岛市| 雅江县| 罗田县| 宝山区|