[keycloak-user] Cannot insert duplicate key in object 'dbo.RoleEntity'

Dean Peterson peterson.dean at gmail.com
Mon Jun 16 18:42:23 EDT 2014

I have tried to create a new Realm using beta-2 and the latest master code.
 I always get the same error:

Violation of UNIQUE KEY constraint 'UK_2cek0xo8yixluudnb1njcl94d'. Cannot
insert duplicate key in object 'dbo.RoleEntity'. The duplicate key value is
(view-realm, <NULL>).
17:30:07,680 INFO
 [org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl] (default
task-8) HHH000010: On release of batch it still contained JDBC statements
17:30:07,741 ERROR [io.undertow.request] (default task-8) UT005023:
Exception handling request to /auth/admin/realms:
java.lang.IllegalStateException: Transaction not active
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140616/21acb2a6/attachment.html 

More information about the keycloak-user mailing list