org.postgresql.util.PSQLException: ERROR: duplicate key violates ...

needmoreneedmoreData Management

Nov 28, 2012 (4 years and 6 months ago)

182 views

org.postgresql.util.PSQLException
: ERROR: duplicate key violates unique
constraint "TOBJECTCOMPONENT_PK"


at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(
QueryExecutorIm
pl.java:1512
)


at
org.postgresql.core.v3.QueryExecutorImpl.processResults(
QueryExecutorImpl.jav
a:1297
)


at
org.postgresql.core.v3.QueryExecutorImpl.execute(
QueryExecutorImpl.java:188
)


at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(
AbstractJdbc2Statement.ja
va:437
)


at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(
AbstractJdbc2Sta
tement.java:353
)


at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(
AbstractJdbc2Statement.ja
va:346
)


at org.jpox.store.rdbms.request.Request.executeUpdate(
Request.java
:69
)


at
org.jpox.store.rdbms.request.InsertRequest.execute(
InsertRequest.java:256
)


at org.jpox.store.rdbms.table.ClassTable.insert(
ClassTable.java:2110
)


at org.jpox.store.rdbms.table.ClassTable.insert(
ClassTable.java:2106
)


at org.jpox.store.StoreManage
r.insert(
StoreManager.java:735
)


at
org.jpox.state.StateManagerImpl.internalMakePersistent(
StateManagerImpl.java:
3310
)


at
org.jpox.state.StateManagerImpl.makePersistent(
StateManagerImpl.java:3283
)


at
org.jpox.AbstractPersistenceManager.internalMakePersis
tent(
AbstractPersistenc
eManager.java:1136
)


at
org.jpox.AbstractPersistenceManager.makePersistentInternal(
AbstractPersistenc
eManager.java:1153
)


at
org.jpox.store.mapping.PersistenceCapableMapping.setObject(
PersistenceCapable
Mapping.java:393
)


at
org.jpox.
store.mapping.PersistenceCapableMapping.setObject(
PersistenceCapable
Mapping.java:319
)


at
org.jpox.store.rdbms.scostore.InverseListStore.updateElementFk(
InverseListSto
re.java:430
)


at
org.jpox.store.rdbms.scostore.InverseListStore.validateElementForWriting
(
Inve
rseListStore.java:1085
)


at
org.jpox.store.rdbms.scostore.InverseListStore.internalAdd(
InverseListStore.j
ava:672
)


at
org.jpox.store.rdbms.scostore.AbstractListStore.add(
AbstractListStore.java:31
1
)


at org.jpox.sco.ArrayList.add(
ArrayList.java:739
)


at
org.elver.store.jpox.emf.elist.EListWrapper.didAdd(
EListWrapper.java:649
)


at
org.eclipse.emf.common.util.DelegatingEList.addUnique(
DelegatingEList.java:54
4
)


at
org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl.basicAdd(
Deleg
atingNotifying
ListImpl.java:465
)


at
org.imag.timc.rfmq.project.domain.admin.impl.TObjectsGroupImpl.eInverseAdd(
TO
bjectsGroupImpl.java:93
)


at
org.imag.timc.rfmq.project.domain.admin.impl.TObjectComponentImpl.setTobjects
Group(
TObjectComponentImpl.java:265
)


at test.MyIn
itSysUsersClass.main(
MyInitSysUsersClass.java:122
)