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

java.lang.IllegalStateException: Constraint violation: There is already another CryptoRepoFile (id=438) referencing the same RepoFile (id=242)!	at org.subshare.local.persistence.CryptoRepoFile.assertUniqueRepoFile(CryptoRepoFile.java:283)	at org.subshare.local.persistence.CryptoRepoFile.jdoPreStore(CryptoRepoFile.java:265)	at org.datanucleus.api.jdo.JDOCallbackHandler.preStore(JDOCallbackHandler.java:130)	at org.datanucleus.state.StateManagerImpl.flush(StateManagerImpl.java:4639)	at org.datanucleus.flush.FlushOrdered.execute(FlushOrdered.java:107)	at org.datanucleus.ExecutionContextImpl.flushInternal(ExecutionContextImpl.java:3978)	at org.datanucleus.store.query.Query.prepareDatastore(Query.java:1632)	at org.datanucleus.store.query.Query.executeQuery(Query.java:1817)	at org.datanucleus.store.query.Query.executeWithArray(Query.java:1729)	at org.datanucleus.api.jdo.JDOQuery.execute(JDOQuery.java:268)	at co.codewizards.cloudstore.local.persistence.RepoFileDao.getChildRepoFile(RepoFileDao.java:70)	at org.subshare.local.CryptreeImpl.putDecryptedRepoFile(CryptreeImpl.java:688)	at org.subshare.local.CryptreeImpl.putDecryptedRepoFile(CryptreeImpl.java:669)	at org.subshare.local.CryptreeImpl.putDecryptedRepoFiles(CryptreeImpl.java:646)	at org.subshare.local.CryptreeImpl.putCryptoChangeSetDto(CryptreeImpl.java:503)	at org.subshare.rest.client.transport.CryptreeRestRepoTransportImpl.syncCryptoKeysFromRemoteRepo(CryptreeRestRepoTransportImpl.java:209)	at org.subshare.rest.client.transport.CryptreeRestRepoTransportImpl.getChangeSetDto(CryptreeRestRepoTransportImpl.java:160)	at co.codewizards.cloudstore.core.repo.sync.RepoToRepoSync.sync(RepoToRepoSync.java:217)	at co.codewizards.cloudstore.core.repo.sync.RepoToRepoSync.syncDown(RepoToRepoSync.java:168)	at co.codewizards.cloudstore.core.repo.sync.RepoToRepoSync.sync(RepoToRepoSync.java:131)	at org.subshare.core.repo.sync.SsRepoToRepoSync.sync(SsRepoToRepoSync.java:65)	at org.subshare.core.repo.metaonly.MetaOnlyRepoManagerImpl.sync(MetaOnlyRepoManagerImpl.java:116)	at org.subshare.core.repo.metaonly.MetaOnlyRepoManagerImpl.sync(MetaOnlyRepoManagerImpl.java:75)	at org.subshare.core.repo.metaonly.MetaOnlyRepoSyncDaemonImpl._sync(MetaOnlyRepoSyncDaemonImpl.java:100)	at org.subshare.core.repo.metaonly.MetaOnlyRepoSyncDaemonImpl.sync(MetaOnlyRepoSyncDaemonImpl.java:91)	at org.subshare.ls.server.cproc.LocalServerInit$1.run(LocalServerInit.java:63)