<div dir="ltr"><div><br></div><div>Hi,</div><div><br></div><div>I try to follow the authorization photoz example[1]. I can import the realm[2] to the keycloak properly.</div><div><br></div><div>Anyhow when importing the authorization json[3] there is a misconfiguration about the drools policy as the "mavenArtifactVersion" should be "2.0.0.Final".</div><div><br></div><div>After correcting the version, sadly there is another failure during the importing the authorization json[3] as</div><div><br></div><div><div>ERROR [io.undertow.request] (default task-100) UT005023: </div><div>Exception handling request to /auth/admin/realms/photoz/clients/001e0705-8bc6-47de-b408-dd07a5ebba9b/authz/resource-server: </div><div>org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: Not found in database</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)<br></div></div><div> .....</div><div><div>Caused by: java.lang.IllegalStateException: Not found in database</div><div><span class="" style="white-space:pre">        </span>at org.keycloak.models.authorization.infinispan.CachedScopeStore$1.getDelegateForUpdate(CachedScopeStore.java:175)</div></div><div><br></div><div>Could you please help to advise how to fix this issue? Thank you very much for your help in advance. I'm looking forward to hearing from you soon.</div><div><br></div><div><br></div><div>[1] <a href="https://github.com/keycloak/keycloak/tree/master/examples/authz/photoz">https://github.com/keycloak/keycloak/tree/master/examples/authz/photoz</a></div><div><br></div><div>[2] <a href="https://github.com/keycloak/keycloak/blob/master/examples/authz/photoz/photoz-realm.json">https://github.com/keycloak/keycloak/blob/master/examples/authz/photoz/photoz-realm.json</a></div><div><br></div><div>[3] <a href="https://github.com/keycloak/keycloak/blob/master/examples/authz/photoz/photoz-restful-api-authz-service.json">https://github.com/keycloak/keycloak/blob/master/examples/authz/photoz/photoz-restful-api-authz-service.json</a></div><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font face="Tahoma"><span style="font-size:10pt;font-family:Tahoma;color:rgb(153,102,51)"><font color="#000000">--</font></span></font></div><font face="Tahoma"><span style="font-size:10pt;font-family:Tahoma;color:rgb(153,102,51)"><font color="#000000"> Best Regards,<br><br>
                                                         Charlee Ch</font></span></font></div></div></div>
</div>