aacli Scripted attribute

Peter Schober peter.schober at univie.ac.at
Thu Oct 29 13:18:35 EDT 2015


e* Athanasios Douitsis <aduitsis at gmail.com> [2015-10-29 17:17]:
> Yes, that's what I tried initially, but I get this exception:
> 
> javax.script.ScriptException: TypeError: null has no such function
> "getValues" in <eval> at line number 3
>         at
> jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:467)
> ~[nashorn.jar:na]
> ....
> 
> This tells two things, first that this is nashorn (and not rhino) and
> second, that the testing variable was null.

Does the first example here (the one-liner) help?
https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition#ScriptedAttributeDefinition-Examples

That doesn't do anything other than (for an attribute definition with
id="Foo") Foo.addValue() either and worked fine for me.
-peter


More information about the users mailing list