Upgrade of system from 5.5.2 -> 6.1 -> 6.5 resulting in failure of action "Execute Javascript code" with the following error:
2017-08-25 14:14:58,903 [job-9830408-jobServer-9830408-6:Copy of JS - recuperer la version de Build dans le RM(P16375927.F16375931.E16375932):Execute JavaScript code] ERROR (com.nolio.platform.shared.datamodel.Action:119) - Unexpected failure:java.lang.RuntimeException: java.lang.NoSuchMethodException: None of the fixed arity signatures [(java.lang.Class, int), (java.lang.Class, int[])] or the variable arity signatures [(java.lang.Class, int...)
] of the method java.lang.reflect.Array.newInstance match the argument types [jdk.internal.dynalink.beans.StaticClass, java.lang.Integer]
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:397)
During analysis it was found that one of the action packs post upgrade on NAC actionslib folder was still on version 6.1. In this example - nolio-actions-6.1.0.jar which is has the action "Execute Javascript code".
As there is a definition change in this jar, it is not able to match the signature resulting in the error during execution.
<Please see attached file for image>
,Note: No nolio-*.jar should be of version 6.1 on once the system is upgraded to 6.5.
Please follow the steps below to resolve the issue: