aacli Scripted attribute
Athanasios Douitsis
aduitsis at gmail.com
Thu Oct 29 12:17:12 EDT 2015
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.
Kind regards,
Athanasios
On Thu, Oct 29, 2015 at 5:54 PM, Peter Schober <peter.schober at univie.ac.at>
wrote:
> * Athanasios Douitsis <aduitsis at gmail.com> [2015-10-29 16:51]:
> > <Script><![CDATA[
> > var BasicAttribute =
> Java.type("edu.internet2.middleware.shibboleth.common.attribute.provider.BasicAttribute");
> > if (null == testing) testing = new
> BasicAttribute("testing");
> > testing.getValues().add("whatever");
> > ]]></Script>
>
> You don't need the first two lines of that.
> The v3 wiki has documentation on the Rhino/Nashorn changes
> specifically, plus simple examples for Nashorn/Java8 at the end.
> -peter
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
--
Athanasios Douitsis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20151029/19075829/attachment.html>
More information about the users
mailing list