报错信息如下:
错误信息:create data error.ORA-00001: unique constraint (SDLHJD.UX_BD_ACCO_FACCNUM) violated
Caused exception message is: ORA-00001: unique constraint (SDLHJD.UX_BD_ACCO_FACCNUM) violated
错误详细堆栈信息:com.kingdee.bos.dao.ormapping.SQLAccessException: create data error.ORA-00001: unique constraint (SDLHJD.UX_BD_ACCO_FACCNUM) violated
Caused exception message is: ORA-00001: unique constraint (SDLHJD.UX_BD_ACCO_FACCNUM) violated
at com.kingdee.bos.dao.ormapping.ORMappingDAO.innerAddnew(ORMappingDAO.java:1064)
at com.kingdee.bos.dao.ormapping.ORMappingDAO.addnew(ORMappingDAO.java:1003)
at com.kingdee.bos.framework.ejb.AbstractEntityControllerBean.innerAddnew(AbstractEntityControllerBean.java:341)
at com.kingdee.eas.framework.app.AbstractCoreBaseControllerBean._addnew(AbstractCoreBaseControllerBean.java:146)
at com.kingdee.eas.framework.app.CoreBaseControllerBean._addnew(CoreBaseControllerBean.java:90)
at com.kingdee.eas.framework.app.ObjectBaseControllerBean._addnew(ObjectBaseControllerBean.java:142)
at com.kingdee.eas.framework.app.DataBaseControllerBean._addnew(DataBaseControllerBean.java:105)
at com.kingdee.eas.basedata.assistant.app.AccountBankControllerBean._addnew(AccountBankControllerBean.java:327)
at com.kingdee.eas.framework.app.AbstractCoreBaseControllerBean.addnew(AbstractCoreBaseControllerBean.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:116)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_REQUIRED(TxInvokerBean.java:57)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_REQUIRED(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:171)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at $Proxy262.addnew(Unknown Source)
at com.kingdee.eas.framework.CoreBase.addnew(CoreBase.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.kingdee.bos.ResponseInvocationHandler.invoke(ResponseInvocationHandler.java:194)
at $Proxy273.addnew(Unknown Source)
at com.kingdee.eas.basedata.assistant.app.SharedAcctControllerBean.addSharedBankAcct(SharedAcctControllerBean.java:92)
at com.kingdee.eas.basedata.assistant.app.SharedAcctControllerBean.doAfterAddNew(SharedAcctControllerBean.java:72)
at com.kingdee.eas.basedata.assistant.app.SharedAcctControllerBean._addnew(SharedAcctControllerBean.java:53)
at com.kingdee.eas.framework.app.AbstractCoreBaseControllerBean.addnew(AbstractCoreBaseControllerBean.java:128)
at com.kingdee.eas.framework.app.CoreBaseControllerBean._submit(CoreBaseControllerBean.java:174)
at com.kingdee.eas.framework.app.DataBaseControllerBean._submit(DataBaseControllerBean.java:366)
at com.kingdee.eas.basedata.assistant.app.SharedAcctControllerBean._submit(SharedAcctControllerBean.java:147)
at com.kingdee.eas.framework.app.AbstractCoreBaseControllerBean.submit(AbstractCoreBaseControllerBean.java:455)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:116)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_REQUIRED(TxInvokerBean.java:57)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_REQUIRED(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:171)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at $Proxy270.submit(Unknown Source)
at com.kingdee.eas.framework.CoreBase.submit(CoreBase.java:287)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_basedata_1_assistant_1_ISharedAcct.pi16(Unknown Source)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_basedata_1_assistant_1_ISharedAcct.processInvoke(Unknown Source)
at com.kingdee.bos.rpc.impl.ObjectProxy.processInvoke(ObjectProxy.java:177)
at com.kingdee.bos.rpc.impl.RPCService.serviceInvoke(RPCService.java:773)
at com.kingdee.bos.rpc.impl.RPCService.service(RPCService.java:138)
at com.kingdee.bos.rpc.impl.ServiceDispatcher.run(ServiceDispatcher.java:153)
at com.kingdee.bos.rpc.impl.ThreadJob.run(ThreadJob.java:27)
at com.kingdee.bos.rpc.impl.ThreadPool2$Worker.run(ThreadPool2.java:140)
Caused by: java.sql.SQLException: ORA-00001: unique constraint (SDLHJD.UX_BD_ACCO_FACCNUM) violated
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:330)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:287)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:744)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:215)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:965)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10643)
at com.kingdee.bos.sql.shell.KDPreparedStatement.executeBatch(KDPreparedStatement.java:354)
at com.apusic.jdbc.adapter.StatementHandle.executeBatch(Unknown Source)
at com.kingdee.bos.dao.ormapping.impl.BatchPreparedStatement.closeInternal(BatchPreparedStatement.java:70)
at com.kingdee.bos.dao.ormapping.impl.BatchConnection.closeStatements(BatchConnection.java:171)
at com.kingdee.bos.dao.ormapping.impl.AbstractObjectHandler.close(AbstractObjectHandler.java:46)
at com.kingdee.bos.dao.ormapping.impl.ObjectCUDFactory2.close(ObjectCUDFactory2.java:54)
at com.kingdee.bos.dao.ormapping.ORMappingDAO.innerAddnew(ORMappingDAO.java:1054)
... 52 more
Caused by: java.sql.SQLException
java.sql.SQLException: ORA-00001: unique constraint (SDLHJD.UX_BD_ACCO_FACCNUM) violated
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:330)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:287)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:744)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:215)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:965)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10643)
at com.kingdee.bos.sql.shell.KDPreparedStatement.executeBatch(KDPreparedStatement.java:354)
at com.apusic.jdbc.adapter.StatementHandle.executeBatch(Unknown Source)
at com.kingdee.bos.dao.ormapping.impl.BatchPreparedStatement.closeInternal(BatchPreparedStatement.java:70)
at com.kingdee.bos.dao.ormapping.impl.BatchConnection.closeStatements(BatchConnection.java:171)
at com.kingdee.bos.dao.ormapping.impl.AbstractObjectHandler.close(AbstractObjectHandler.java:46)
at com.kingdee.bos.dao.ormapping.impl.ObjectCUDFactory2.close(ObjectCUDFactory2.java:54)
at com.kingdee.bos.dao.ormapping.ORMappingDAO.innerAddnew(ORMappingDAO.java:1054)
at com.kingdee.bos.dao.ormapping.ORMappingDAO.addnew(ORMappingDAO.java:1003)
at com.kingdee.bos.framework.ejb.AbstractEntityControllerBean.innerAddnew(AbstractEntityControllerBean.java:341)
at com.kingdee.eas.framework.app.AbstractCoreBaseControllerBean._addnew(AbstractCoreBaseControllerBean.java:146)
at com.kingdee.eas.framework.app.CoreBaseControllerBean._addnew(CoreBaseControllerBean.java:90)
at com.kingdee.eas.framework.app.ObjectBaseControllerBean._addnew(ObjectBaseControllerBean.java:142)
at com.kingdee.eas.framework.app.DataBaseControllerBean._addnew(DataBaseControllerBean.java:105)
at com.kingdee.eas.basedata.assistant.app.AccountBankControllerBean._addnew(AccountBankControllerBean.java:327)
at com.kingdee.eas.framework.app.AbstractCoreBaseControllerBean.addnew(AbstractCoreBaseControllerBean.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:116)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_REQUIRED(TxInvokerBean.java:57)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_REQUIRED(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:171)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at $Proxy262.addnew(Unknown Source)
at com.kingdee.eas.framework.CoreBase.addnew(CoreBase.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.kingdee.bos.ResponseInvocationHandler.invoke(ResponseInvocationHandler.java:194)
at $Proxy273.addnew(Unknown Source)
at com.kingdee.eas.basedata.assistant.app.SharedAcctControllerBean.addSharedBankAcct(SharedAcctControllerBean.java:92)
at com.kingdee.eas.basedata.assistant.app.SharedAcctControllerBean.doAfterAddNew(SharedAcctControllerBean.java:72)
at com.kingdee.eas.basedata.assistant.app.SharedAcctControllerBean._addnew(SharedAcctControllerBean.java:53)
at com.kingdee.eas.framework.app.AbstractCoreBaseControllerBean.addnew(AbstractCoreBaseControllerBean.java:128)
at com.kingdee.eas.framework.app.CoreBaseControllerBean._submit(CoreBaseControllerBean.java:174)
at com.kingdee.eas.framework.app.DataBaseControllerBean._submit(DataBaseControllerBean.java:366)
at com.kingdee.eas.basedata.assistant.app.SharedAcctControllerBean._submit(SharedAcctControllerBean.java:147)
at com.kingdee.eas.framework.app.AbstractCoreBaseControllerBean.submit(AbstractCoreBaseControllerBean.java:455)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:116)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_REQUIRED(TxInvokerBean.java:57)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_REQUIRED(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:171)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at $Proxy270.submit(Unknown Source)
at com.kingdee.eas.framework.CoreBase.submit(CoreBase.java:287)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_basedata_1_assistant_1_ISharedAcct.pi16(Unknown Source)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_basedata_1_assistant_1_ISharedAcct.processInvoke(Unknown Source)
at com.kingdee.bos.rpc.impl.ObjectProxy.processInvoke(ObjectProxy.java:177)
at com.kingdee.bos.rpc.impl.RPCService.serviceInvoke(RPCService.java:773)
at com.kingdee.bos.rpc.impl.RPCService.service(RPCService.java:138)
at com.kingdee.bos.rpc.impl.ServiceDispatcher.run(ServiceDispatcher.java:153)
at com.kingdee.bos.rpc.impl.ThreadJob.run(ThreadJob.java:27)
at com.kingdee.bos.rpc.impl.ThreadPool2$Worker.run(ThreadPool2.java:140)
QQ截图20160127133212.png(51.29KB)
推荐阅读