java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Violation of PRIMARY KEY constraint 'PK__JD O_SEQUENCEX__2D7CBDC4'. Cannot insert duplicate key in object 'JDO_SEQUENCEX'.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 3004, 1 year ago
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Violation of PRIMARY KEY constraint 'PK__JD O_SEQUENCEX__2D7CBDC4'. Cannot insert duplicate key in object 'JDO_SEQUENCEX'.
via Oracle Community by 3004, 1 year ago
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]DELETE statement conflicted with COLUMN REFERENCE constraint 'FK_IVHDR_IVJOB'. The conflict occurred in database 'test', table 'IVJOB', column 'IVHDR_UNID'.
via Oracle Community by 843859, 3 months ago
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Insert Skip, tax= 207, asset_id = 17399, asset_name_length = 14
via Google Groups by karin.bj...@intentia.se, 2 years ago
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Cannot insert duplicate key row in object 'WMMLAATR' with unique index 'WMMI067'.
via Google Groups by Ting Ning, 4 months ago
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Transaction (Process ID 54) was deadlocked on {lock} resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
via Google Groups by Joseph Weinstein, 4 months ago
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name '#foo'.
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Violation of PRIMARY KEY constraint 'PK__JD O_SEQUENCEX__2D7CBDC4'. Cannot insert duplicate key in object 'JDO_SEQUENCEX'.
at com.microsoft.jdbc.base.BaseExceptions.createException(UnknownSource)
at com.microsoft.jdbc.base.BaseExceptions.getException(UnknownSource)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(UnknownSource)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(UnknownSource)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(UnknownSource)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(UnknownSource)
at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(UnknownSource)
at com.microsoft.jdbc.base.BaseStatement.postImplExecute(UnknownSource)
at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(UnknownSource)
at com.microsoft.jdbc.base.BaseStatement.commonExecute(UnknownSource)
at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.executeUpdate(Unknown Source)
at com.solarmetric.datasource.PreparedStatementWrapper.executeUpdate(PreparedStatementWrapper.java:111)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedStatementNonBatch(SQLExecutionManagerImpl.java:542)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedStatement(SQLExecutionManagerImpl.java:511)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeInternal(SQLExecutionManagerImpl.java:405)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeNow(SQLExecutionManagerImpl.java:348)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeNow(SQLExecutionManagerImpl.java:337)
at com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.refreshTable(DBSequenceFactory.java:180)
at com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.getNext(DBSequenceFactory.java:128)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.newDataStoreId(JDBCStoreManager.java:445)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFilter(PersistenceManagerImpl.java:1154)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:1096)
at com.cyclonecommerce.txm.services.queue.impl.DocumentQueue.put(DocumentQueue.java:42)
at com.cyclonecommerce.txm.services.queue.impl.QueueServiceImpl.enqueue(QueueServiceImpl.java:65)
at txm.tests.unittests.queue.TestQueueMgr.testSimpleEnqueue(TestQueueMgr.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at txm.tests.unittests.queue.TestQueueMgr.main(TestQueueMgr.java:88)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Once, 10 months ago

Know the solutions? Share your knowledge to help other developers to debug faster.