java.lang.IllegalStateException: UserImpl[U3_W4jLY9cK-DsZCZ99mlw, Adam, Smith, [adam@smith.name], [123456a45b7380c2, 6564a5f6df511111]] already has a userRepoKeyRing! Cannot add public keys! Either there is a userRepoKeyRing or there are public keys! There cannot be both! userRepoKeyRing=UserRepoKeyRingImpl[[UserRepoKeyImpl[userRepoKeyId=dh8o_uh-7D-8uN4IsHmguQ, invitation=false]]], userRepoKeyPublicKeys=[], event.changeCollection=[PublicKeyWithSignatureImpl[userRepoKeyId=X8FXjVE-y9cw-bXjhhO6Jg, invitation=false, validTo=null]]

GitHub | nlmarco | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 25#254287723

    GitHub | 4 months ago | nlmarco
    java.lang.IllegalStateException: UserImpl[U3_W4jLY9cK-DsZCZ99mlw, Adam, Smith, [adam@smith.name], [123456a45b7380c2, 6564a5f6df511111]] already has a userRepoKeyRing! Cannot add public keys! Either there is a userRepoKeyRing or there are public keys! There cannot be both! userRepoKeyRing=UserRepoKeyRingImpl[[UserRepoKeyImpl[userRepoKeyId=dh8o_uh-7D-8uN4IsHmguQ, invitation=false]]], userRepoKeyPublicKeys=[], event.changeCollection=[PublicKeyWithSignatureImpl[userRepoKeyId=X8FXjVE-y9cw-bXjhhO6Jg, invitation=false, validTo=null]]

    Root Cause Analysis

    1. java.lang.IllegalStateException

      UserImpl[U3_W4jLY9cK-DsZCZ99mlw, Adam, Smith, [adam@smith.name], [123456a45b7380c2, 6564a5f6df511111]] already has a userRepoKeyRing! Cannot add public keys! Either there is a userRepoKeyRing or there are public keys! There cannot be both! userRepoKeyRing=UserRepoKeyRingImpl[[UserRepoKeyImpl[userRepoKeyId=dh8o_uh-7D-8uN4IsHmguQ, invitation=false]]], userRepoKeyPublicKeys=[], event.changeCollection=[PublicKeyWithSignatureImpl[userRepoKeyId=X8FXjVE-y9cw-bXjhhO6Jg, invitation=false, validTo=null]]

      at org.subshare.core.user.UserImpl$PreventUserRepoKeyRingAndPublicKeysCollisionListener.modificationOccurring()
    2. org.subshare.core
      ObservableCollection.add
      1. org.subshare.core.user.UserImpl$PreventUserRepoKeyRingAndPublicKeysCollisionListener.modificationOccurring(UserImpl.java:88)[org.subshare.core-0.9.8-SNAPSHOT.jar:na]
      2. org.subshare.core.observable.standard.StandardModificationHandler.firePreEvent(StandardModificationHandler.java:436)[org.subshare.core-0.9.8-SNAPSHOT.jar:na]
      3. org.subshare.core.observable.standard.StandardModificationHandler.preEvent(StandardModificationHandler.java:406)[org.subshare.core-0.9.8-SNAPSHOT.jar:na]
      4. org.subshare.core.observable.ModificationHandler.preAdd(ModificationHandler.java:292)[org.subshare.core-0.9.8-SNAPSHOT.jar:na]
      5. org.subshare.core.observable.ObservableCollection.add(ObservableCollection.java:214)[org.subshare.core-0.9.8-SNAPSHOT.jar:na]
      5 frames
    3. org.subshare.local
      CryptreeImpl.putCryptoChangeSetDto
      1. org.subshare.local.UserRepoKeyPublicKeyHelper.updateUserRepoKeyRingFromUserIdentities(UserRepoKeyPublicKeyHelper.java:422)[org.subshare.local-0.9.8-SNAPSHOT.jar:na]
      2. org.subshare.local.CryptreeImpl.putCryptoChangeSetDto(CryptreeImpl.java:536)[org.subshare.local-0.9.8-SNAPSHOT.jar:na]
      2 frames
    4. org.subshare.rest
      CryptreeRestRepoTransportImpl.getChangeSetDto
      1. org.subshare.rest.client.transport.CryptreeRestRepoTransportImpl.syncCryptoKeysFromRemoteRepo(CryptreeRestRepoTransportImpl.java:209)[org.subshare.rest.client-0.9.8-SNAPSHOT.jar:na]
      2. org.subshare.rest.client.transport.CryptreeRestRepoTransportImpl.getChangeSetDto(CryptreeRestRepoTransportImpl.java:160)[org.subshare.rest.client-0.9.8-SNAPSHOT.jar:na]
      2 frames
    5. co.codewizards.cloudstore
      RepoToRepoSync.sync
      1. co.codewizards.cloudstore.core.repo.sync.RepoToRepoSync.sync(RepoToRepoSync.java:217)[co.codewizards.cloudstore.core-0.9.11.jar:na]
      2. co.codewizards.cloudstore.core.repo.sync.RepoToRepoSync.syncDown(RepoToRepoSync.java:168)[co.codewizards.cloudstore.core-0.9.11.jar:na]
      3. co.codewizards.cloudstore.core.repo.sync.RepoToRepoSync.sync(RepoToRepoSync.java:131)[co.codewizards.cloudstore.core-0.9.11.jar:na]
      3 frames
    6. org.subshare.core
      SsRepoToRepoSync.sync
      1. org.subshare.core.repo.sync.SsRepoToRepoSync.sync(SsRepoToRepoSync.java:65)[org.subshare.core-0.9.8-SNAPSHOT.jar:na]
      1 frame
    7. co.codewizards.cloudstore
      RepoSyncDaemonImpl$WrapperRunnable.run
      1. co.codewizards.cloudstore.core.repo.sync.RepoSyncRunner.run(RepoSyncRunner.java:51)[co.codewizards.cloudstore.core-0.9.11.jar:na]
      2. co.codewizards.cloudstore.core.repo.sync.RepoSyncDaemonImpl$WrapperRunnable.run(RepoSyncDaemonImpl.java:123)[co.codewizards.cloudstore.core-0.9.11.jar:na]
      2 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_91]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_91]
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91]
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91]
      5. java.lang.Thread.run(Thread.java:745)[na:1.8.0_91]
      5 frames