[OPENICF-961] Java Framework: Add unit test for Javascript executor factory Created: 28/Sep/18  Updated: 29/Oct/18  Resolved: 02/Oct/18

Status: Closed
Project: OpenICF
Component/s: Connector Framework
Affects Version/s: framework-1.5.5.0
Fix Version/s: framework-1.5.6.0

Type: Improvement Priority: Minor
Reporter: Gael Allioux Assignee: Gael Allioux
Resolution: Fixed Votes: 0
Labels: IDM6.5, MAGELLAN
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to OPENICF-971 Disable Javascript engine in ICF Closed
Target Version/s:
Verified Version/s:

 Description   

Groovy script executor is tested but not Javascript.

This error appears in IDM when a script executor is called the first time:

 

java.lang.IllegalStateException: JavaScript Engine is not found
at org.identityconnectors.common.script.javascript.JavaScriptExecutorFactory.<init>(JavaScriptExecutorFactory.java:42)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.identityconnectors.common.script.ScriptExecutorFactory.getFactoryCache(ScriptExecutorFactory.java:73)
at org.identityconnectors.common.script.ScriptExecutorFactory.newInstance(ScriptExecutorFactory.java:165)
at org.forgerock.openicf.connectors.salesforce.SalesforceConnector.runScriptOnConnector(SalesforceConnector.java:330)
at


Generated at Thu Jan 28 15:05:31 UTC 2021 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.