Java error on "Execute JavaScript code" action post upgrade to RA 6.5

Document ID : KB000007991
Last Modified Date : 25/07/2018
Show Technical Document Details
Issue:

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)
 

Environment:
Release Automation 6.5
Cause:

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.

User-added image

Resolution:

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:

  1. Create a back up of all nolio-*-6.1.0.jar files in actionslib directory on the Management Server (outside the RA install directory)
  2. Check for appropriate nolio-*-6.5.0.jars on the Management Server and copy the respective jar to the client machine used to access Release Operation Center (ROC). Ex:  webapps/datamanagement/WEB-INF/lib/nolio-actions-6.5.0.jar
  3. Login to ROC and navigate to Administration -> Action Management -> Installed Packs and try to upload the nolio-actions-6.5.0.jar manually by clicking import from the path where jar file was copied in step 2