т.к. тему по транспорту чеков закрыли, решила дописать сюда =)
с магазина встал поток чеков и на центруме выводится следующее:
Код:
27.06.2011 15:29:26.844 ERROR: Поток транспорта Чеков.209.CHEQUE: stopPut: Невозможно вставить повторяющуюся ключевую строку в объект "dbo.ChequeHead" с уникальным индексом "IXU$ChequeHead@ShopIndex@Cash_Code@DateOperation@Ck_Number".
27.06.2011 15:29:26.844 TRACE: Поток транспорта Чеков.209.CHEQUE: stopPut (SQL = EXEC cp_TransChequeWrite ?, ?;
xmlString = <?xml version="1.0" encoding="windows-1251" ?> <ROOT><HDR _Operation_="0" GangStart="2011-06-07T08:27:00" OperDay="20110607" ShopIndex="209" ShopIndexKKM="209" Id="118738" Operation="P" Cash_Code="2" NSmena="1153" DateOperation="2011-06-07T19:26:44" Ck_Number="187292" ControlTape="0" Cassir="008" Su)
com.microsoft.sqlserver.jdbc.SQLServerException: Невозможно вставить повторяющуюся ключевую строку в объект "dbo.ChequeHead" с уникальным индексом "IXU$ChequeHead@ShopIndex@Cash_Code@DateOperation@Ck_Number".
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:156)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1373)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:371)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:322)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4003)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1550)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:160)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:133)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.execute(SQLServerPreparedStatement.java:304)
at ru.crystalservice.setexchanger.datalinks.DBPrintWriter.stopPut(Unknown Source)
at ru.crystalservice.setexchanger.datalinks.DB.stopPutData(Unknown Source)
at ru.crystalservice.setexchanger.transports.TCPIPExchanger.processServerSide(Unknown Source)
at ru.crystalservice.setexchanger.transports.TCPIPExchanger.processConnection(Unknown Source)
at ru.crystalservice.setexchanger.transports.Exchanger.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
27.06.2011 15:29:26.844 ERROR: Поток транспорта Чеков.209 Server Exception: Поток транспорта Чеков.209.CHEQUE: stopPutData
27.06.2011 15:29:26.844 TRACE: Поток транспорта Чеков.209 Server Exception
ru.crystalservice.setexchanger.datalinks.DataLinkException: Поток транспорта Чеков.209.CHEQUE: stopPutData
at ru.crystalservice.setexchanger.datalinks.DB.stopPutData(Unknown Source)
at ru.crystalservice.setexchanger.transports.TCPIPExchanger.processServerSide(Unknown Source)
at ru.crystalservice.setexchanger.transports.TCPIPExchanger.processConnection(Unknown Source)
at ru.crystalservice.setexchanger.transports.Exchanger.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: ru.crystalservice.setexchanger.ExchangerException: PUT Exception
at ru.crystalservice.setexchanger.datalinks.DBPrintWriter.stopPut(Unknown Source)
... 10 more
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Невозможно вставить повторяющуюся ключевую строку в объект "dbo.ChequeHead" с уникальным индексом "IXU$ChequeHead@ShopIndex@Cash_Code@DateOperation@Ck_Number".
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:156)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1373)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:371)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:322)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4003)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1550)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:160)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:133)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.execute(SQLServerPreparedStatement.java:304)
... 11 more
27.06.2011 15:29:26.844 ERROR: Поток транспорта Чеков.209 processConnection: Поток транспорта Чеков.209 Server exchanger exception
27.06.2011 15:29:26.844 TRACE: Поток транспорта Чеков.209 processConnection:
ru.crystalservice.setexchanger.ExchangerException: Поток транспорта Чеков.209 Server exchanger exception
at ru.crystalservice.setexchanger.transports.TCPIPExchanger.processServerSide(Unknown Source)
at ru.crystalservice.setexchanger.transports.TCPIPExchanger.processConnection(Unknown Source)
at ru.crystalservice.setexchanger.transports.Exchanger.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: ru.crystalservice.setexchanger.datalinks.DataLinkException: Поток транспорта Чеков.209.CHEQUE: stopPutData
at ru.crystalservice.setexchanger.datalinks.DB.stopPutData(Unknown Source)
... 9 more
Caused by: ru.crystalservice.setexchanger.ExchangerException: PUT Exception
at ru.crystalservice.setexchanger.datalinks.DBPrintWriter.stopPut(Unknown Source)
... 10 more
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Невозможно вставить повторяющуюся ключевую строку в объект "dbo.ChequeHead" с уникальным индексом "IXU$ChequeHead@ShopIndex@Cash_Code@DateOperation@Ck_Number".
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:156)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1373)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:371)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:322)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4003)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1550)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:160)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:133)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.execute(SQLServerPreparedStatement.java:304)
... 11 more
хотела попробывать эту смену из центрума удалить, но что-то не нашла, а ручками в таблицах как-то боязно - вдруг где-то какую-то связку забуду убрать :wacko2: