[JIRA] (JSCRIPTING-10) Graal-based "nashorn" plugin does not work for IdP 4.1.4 and Java 17 RC

Ian Young (Jira) jira at shibboleth.atlassian.net
Mon Aug 16 10:25:44 UTC 2021


Ian Young ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae127cb03-43ed-473d-b6ba-592949cb4be8 ) *created* an issue

IdP Plugin - Scripting ( https://shibboleth.atlassian.net/browse/JSCRIPTING?atlOrigin=eyJpIjoiMmIzYWNkZjBkZTY2NDlmYmI0MzQzNDJlYWJlZjJlYTUiLCJwIjoiaiJ9 ) / Bug ( https://shibboleth.atlassian.net/browse/JSCRIPTING-10?atlOrigin=eyJpIjoiMmIzYWNkZjBkZTY2NDlmYmI0MzQzNDJlYWJlZjJlYTUiLCJwIjoiaiJ9 ) JSCRIPTING-10 ( https://shibboleth.atlassian.net/browse/JSCRIPTING-10?atlOrigin=eyJpIjoiMmIzYWNkZjBkZTY2NDlmYmI0MzQzNDJlYWJlZjJlYTUiLCJwIjoiaiJ9 ) Graal-based "nashorn" plugin does not work for IdP 4.1.4 and Java 17 RC ( https://shibboleth.atlassian.net/browse/JSCRIPTING-10?atlOrigin=eyJpIjoiMmIzYWNkZjBkZTY2NDlmYmI0MzQzNDJlYWJlZjJlYTUiLCJwIjoiaiJ9 )

Issue Type: Bug Assignee: Rod Widdowson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=59fb32bbc24efb3c4ed3c977 ) Created: 16/Aug/21 6:25 AM Priority: Trivial Reporter: Ian Young ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae127cb03-43ed-473d-b6ba-592949cb4be8 )

In my installation of IdP 4.1.4, using Java 17 RC and the Graal-based plugin

idp-plugin-nashorn-dist-1.0.0.tar.gz

does not allow IdP startup. In the Jetty logs I get:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.ProtocolLookupFunction' defined in class path resource [net/shibboleth/idp/conf/audit-system.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.shibboleth.idp.profile.context.navigate.ScriptedContextLookupFunction]: Factory method 'inlineScript' threw exception; nested exception is java.lang.UnsupportedOperationException
...
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.shibboleth.idp.profile.context.navigate.ScriptedContextLookupFunction]: Factory method 'inlineScript' threw exception; nested exception is java.lang.UnsupportedOperationException
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
	... 61 common frames omitted
Caused by: java.lang.UnsupportedOperationException: null
	at org.graalvm.polyglot.Engine$PolyglotInvalid.getSourceSectionImpl(Engine.java:850)
	at org.graalvm.polyglot.Source.getImpl(Source.java:140)
	at org.graalvm.polyglot.Source$Builder.build(Source.java:920)

( https://shibboleth.atlassian.net/browse/JSCRIPTING-10#add-comment?atlOrigin=eyJpIjoiMmIzYWNkZjBkZTY2NDlmYmI0MzQzNDJlYWJlZjJlYTUiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/JSCRIPTING-10#add-comment?atlOrigin=eyJpIjoiMmIzYWNkZjBkZTY2NDlmYmI0MzQzNDJlYWJlZjJlYTUiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100172- sha1:c3c6042 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20210816/f3043784/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-6c0776cd-ff3d-4a86-ae7b-85c9e0b750aa
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20210816/f3043784/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-trivial-2f295c86-dbdf-41f5-b3b5-2a3e2f1bce45
Type: image/png
Size: 563 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20210816/f3043784/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-9a54505b-b4b1-4395-8393-f32aedd17aa3
Type: image/png
Size: 425 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20210816/f3043784/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-8e6fa0be-3419-4ec9-9ddc-f921fc75dae3
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20210816/f3043784/attachment-0007.png>


More information about the commits mailing list