.IllegalStateException: Could not find ScriptEngine for script

Hi all,

I’m trying to execute a JavaScript policy. But I’m getting an IllegalStateException: Could not find ScriptEngine for script.

Any ideas? Googling didn’t help much. :frowning:

Caused by: java.lang.IllegalStateException: Could not find ScriptEngine for script: Script{id='null', realmId='uma-poc', name='Only Owner Policy', type='text/javascript', code='var context = $evaluation.context;
var identity = context.identity;
var permission = $evaluation.permission;
var resource = permission.resource;

if (resource.owner == identity.id) {
    $evaluation.grant();
}', description='Defines that only the resource owner can do something'}
        at org.keycloak.keycloak-services@15.0.0//org.keycloak.scripting.DefaultScriptingProvider.createPreparedScriptEngine(DefaultScriptingProvider.java:106)

All tips welcome! :slight_smile: