com.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record #11:15: found duplicated key 'OCompositeKey{keys=[opal, /files/home/org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, USER, FILES_SHARE]}' in index 'SubjectAcl.domain.node.principal.type.permission' previously assigned to the record #11:14

JIRA | Yannick Marcon | 3 years ago
  1. 0

    * select a project * create a view {code} com.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record #11:15: found duplicated key 'OCompositeKey{keys=[opal, /files/home/org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, USER, FILES_SHARE]}' in index 'SubjectAcl.domain.node.principal.type.permission' previously assigned to the record #11:14 at com.orientechnologies.orient.core.index.OIndexUnique.commitSnapshot(OIndexUnique.java:135) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.index.OIndexAbstract.commit(OIndexAbstract.java:925) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.tx.OTransactionOptimistic$2.run(OTransactionOptimistic.java:164) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.storage.impl.local.OStorageLocal.commit(OStorageLocal.java:1292) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:176) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:115) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:454) ~[orientdb-core-1.6.2.jar:1.6.2] at org.obiba.opal.core.service.OrientDbServiceImpl.save(OrientDbServiceImpl.java:124) ~[opal-core-2.0-SNAPSHOT.jar:na] at org.obiba.opal.core.service.OrientDbServiceImpl.save(OrientDbServiceImpl.java:100) ~[opal-core-2.0-SNAPSHOT.jar:na] at org.obiba.opal.core.service.security.DefaultSubjectAclService.addSubjectPermission(DefaultSubjectAclService.java:140) ~[opal-core-2.0-SNAPSHOT.jar:na] at org.obiba.opal.core.service.security.authc.SubjectProfileAuthenticationListener.ensureFolderPermissions(SubjectProfileAuthenticationListener.java:96) ~[opal-core-2.0-SNAPSHOT.jar:na] at org.obiba.opal.core.service.security.authc.SubjectProfileAuthenticationListener.onSuccess(SubjectProfileAuthenticationListener.java:61) ~[opal-core-2.0-SNAPSHOT.jar:na] at org.apache.shiro.authc.AbstractAuthenticator.notifySuccess(AbstractAuthenticator.java:121) ~[shiro-tools-hasher-1.2.2-cli.jar:na] at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:233) ~[shiro-tools-hasher-1.2.2-cli.jar:na] at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106) ~[shiro-tools-hasher-1.2.2-cli.jar:na] at org.obiba.magma.security.shiro.ShiroAuthorizer.sudoSubject(ShiroAuthorizer.java:44) ~[magma-security-1.8-20131216.220033-104.jar:1.8-SNAPSHOT] at org.obiba.magma.security.shiro.ShiroAuthorizer.sudo(ShiroAuthorizer.java:34) ~[magma-security-1.8-20131216.220033-104.jar:1.8-SNAPSHOT] at org.obiba.magma.security.shiro.ShiroAuthorizer.silentSudo(ShiroAuthorizer.java:26) ~[magma-security-1.8-20131216.220033-104.jar:1.8-SNAPSHOT] ... 86 common frames omitted {code}

    JIRA | 3 years ago | Yannick Marcon
    com.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record #11:15: found duplicated key 'OCompositeKey{keys=[opal, /files/home/org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, USER, FILES_SHARE]}' in index 'SubjectAcl.domain.node.principal.type.permission' previously assigned to the record #11:14
  2. 0

    * select a project * create a view {code} com.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record #11:15: found duplicated key 'OCompositeKey{keys=[opal, /files/home/org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, USER, FILES_SHARE]}' in index 'SubjectAcl.domain.node.principal.type.permission' previously assigned to the record #11:14 at com.orientechnologies.orient.core.index.OIndexUnique.commitSnapshot(OIndexUnique.java:135) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.index.OIndexAbstract.commit(OIndexAbstract.java:925) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.tx.OTransactionOptimistic$2.run(OTransactionOptimistic.java:164) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.storage.impl.local.OStorageLocal.commit(OStorageLocal.java:1292) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:176) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:115) ~[orientdb-core-1.6.2.jar:1.6.2] at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:454) ~[orientdb-core-1.6.2.jar:1.6.2] at org.obiba.opal.core.service.OrientDbServiceImpl.save(OrientDbServiceImpl.java:124) ~[opal-core-2.0-SNAPSHOT.jar:na] at org.obiba.opal.core.service.OrientDbServiceImpl.save(OrientDbServiceImpl.java:100) ~[opal-core-2.0-SNAPSHOT.jar:na] at org.obiba.opal.core.service.security.DefaultSubjectAclService.addSubjectPermission(DefaultSubjectAclService.java:140) ~[opal-core-2.0-SNAPSHOT.jar:na] at org.obiba.opal.core.service.security.authc.SubjectProfileAuthenticationListener.ensureFolderPermissions(SubjectProfileAuthenticationListener.java:96) ~[opal-core-2.0-SNAPSHOT.jar:na] at org.obiba.opal.core.service.security.authc.SubjectProfileAuthenticationListener.onSuccess(SubjectProfileAuthenticationListener.java:61) ~[opal-core-2.0-SNAPSHOT.jar:na] at org.apache.shiro.authc.AbstractAuthenticator.notifySuccess(AbstractAuthenticator.java:121) ~[shiro-tools-hasher-1.2.2-cli.jar:na] at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:233) ~[shiro-tools-hasher-1.2.2-cli.jar:na] at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106) ~[shiro-tools-hasher-1.2.2-cli.jar:na] at org.obiba.magma.security.shiro.ShiroAuthorizer.sudoSubject(ShiroAuthorizer.java:44) ~[magma-security-1.8-20131216.220033-104.jar:1.8-SNAPSHOT] at org.obiba.magma.security.shiro.ShiroAuthorizer.sudo(ShiroAuthorizer.java:34) ~[magma-security-1.8-20131216.220033-104.jar:1.8-SNAPSHOT] at org.obiba.magma.security.shiro.ShiroAuthorizer.silentSudo(ShiroAuthorizer.java:26) ~[magma-security-1.8-20131216.220033-104.jar:1.8-SNAPSHOT] ... 86 common frames omitted {code}

    JIRA | 3 years ago | Yannick Marcon
    com.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record #11:15: found duplicated key 'OCompositeKey{keys=[opal, /files/home/org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, USER, FILES_SHARE]}' in index 'SubjectAcl.domain.node.principal.type.permission' previously assigned to the record #11:14
  3. 0

    Unusual ORecordDuplicatedException errors

    GitHub | 2 years ago | AaronSchulz
    com.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record #11:735814 : found duplicated key '3152437' in index 'ItemIdIdx' previously assigned to the record #11:735804 R ID=#11:735804
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to detect that something was added before a commit but will be conflicting with existing vertex in an index after a commit?

    GitHub | 1 year ago | zifnab87
    com.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record #30:14: found duplicated key '11/22/3333' in index 'Date.date' previously assigned to the record #30:13 RID=#30:13
  6. 0

    GitHub comment 6210#224501883

    GitHub | 6 months ago | ghatwala
    com.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record #42:0: found duplicated key '1465366963469' in index 'VC1.p1' previously assigned to the record #41:0 DB name="GraphTest"INDEX=VC1.p1 RID=#41:0

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.orientechnologies.orient.core.storage.ORecordDuplicatedException

      Cannot index record #11:15: found duplicated key 'OCompositeKey{keys=[opal, /files/home/org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, org.obiba.opal.core.service.security.realm.SudoRealm$SudoPrincipal@19acd84b, USER, FILES_SHARE]}' in index 'SubjectAcl.domain.node.principal.type.permission' previously assigned to the record #11:14

      at com.orientechnologies.orient.core.index.OIndexUnique.commitSnapshot()
    2. OrientDB Core
      ODatabaseDocumentTx.commit
      1. com.orientechnologies.orient.core.index.OIndexUnique.commitSnapshot(OIndexUnique.java:135)[orientdb-core-1.6.2.jar:1.6.2]
      2. com.orientechnologies.orient.core.index.OIndexAbstract.commit(OIndexAbstract.java:925)[orientdb-core-1.6.2.jar:1.6.2]
      3. com.orientechnologies.orient.core.tx.OTransactionOptimistic$2.run(OTransactionOptimistic.java:164)[orientdb-core-1.6.2.jar:1.6.2]
      4. com.orientechnologies.orient.core.storage.impl.local.OStorageLocal.commit(OStorageLocal.java:1292)[orientdb-core-1.6.2.jar:1.6.2]
      5. com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:176)[orientdb-core-1.6.2.jar:1.6.2]
      6. com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:115)[orientdb-core-1.6.2.jar:1.6.2]
      7. com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:454)[orientdb-core-1.6.2.jar:1.6.2]
      7 frames
    3. org.obiba.opal
      SubjectProfileAuthenticationListener.onSuccess
      1. org.obiba.opal.core.service.OrientDbServiceImpl.save(OrientDbServiceImpl.java:124)[opal-core-2.0-SNAPSHOT.jar:na]
      2. org.obiba.opal.core.service.OrientDbServiceImpl.save(OrientDbServiceImpl.java:100)[opal-core-2.0-SNAPSHOT.jar:na]
      3. org.obiba.opal.core.service.security.DefaultSubjectAclService.addSubjectPermission(DefaultSubjectAclService.java:140)[opal-core-2.0-SNAPSHOT.jar:na]
      4. org.obiba.opal.core.service.security.authc.SubjectProfileAuthenticationListener.ensureFolderPermissions(SubjectProfileAuthenticationListener.java:96)[opal-core-2.0-SNAPSHOT.jar:na]
      5. org.obiba.opal.core.service.security.authc.SubjectProfileAuthenticationListener.onSuccess(SubjectProfileAuthenticationListener.java:61)[opal-core-2.0-SNAPSHOT.jar:na]
      5 frames
    4. Shiro
      AuthenticatingSecurityManager.authenticate
      1. org.apache.shiro.authc.AbstractAuthenticator.notifySuccess(AbstractAuthenticator.java:121)[shiro-tools-hasher-1.2.2-cli.jar:na]
      2. org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:233)[shiro-tools-hasher-1.2.2-cli.jar:na]
      3. org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)[shiro-tools-hasher-1.2.2-cli.jar:na]
      3 frames
    5. org.obiba.magma
      ShiroAuthorizer.silentSudo
      1. org.obiba.magma.security.shiro.ShiroAuthorizer.sudoSubject(ShiroAuthorizer.java:44)[magma-security-1.8-20131216.220033-104.jar:1.8-SNAPSHOT]
      2. org.obiba.magma.security.shiro.ShiroAuthorizer.sudo(ShiroAuthorizer.java:34)[magma-security-1.8-20131216.220033-104.jar:1.8-SNAPSHOT]
      3. org.obiba.magma.security.shiro.ShiroAuthorizer.silentSudo(ShiroAuthorizer.java:26)[magma-security-1.8-20131216.220033-104.jar:1.8-SNAPSHOT]
      3 frames