Error while migrating Camunda from 7.14.0 to 7.17.0 with springboot 2.7.0

We are trying to migrate from camunda 7.14 to 7.17 with springboot version 2.7.0.

We got issues related to java script engine ,i.e, JavaScript engine was null.

So added all the graalvm dependencies separately in pom.xml(as given below),after that we are seeing below exception .Please help us resolve this issue.

Payload: [CodedMessage{code='unknown_error', message='Internal Server Error', arguments=[]}]

org.camunda.bpm.engine.ScriptEvaluationException: Unable to evaluate script while executing activity ‘umsDeclararionSubmissionAutoApproval1’ in the process definition with id ‘umsDeclarationSubmission:13:cb5793c2-22c1-11ed-8bd5-e2cbcdc4791f’:org.graalvm.polyglot.PolyglotException: ReferenceError: xUserId is not defined
at org.camunda.bpm.engine.impl.scripting.SourceExecutableScript.evaluate(SourceExecutableScript.java:71)
at org.camunda.bpm.engine.impl.scripting.ExecutableScript.execute(ExecutableScript.java:63)

org.graalvm.js js-scriptengine 21.1.0
	<dependency>
		<groupId>com.ibm.icu</groupId>
		<artifactId>icu4j</artifactId>
		<version>68.2</version>
	</dependency>

	<dependency>
		<groupId>org.graalvm.js</groupId>
		<artifactId>js</artifactId>
		<version>21.1.0</version>
	</dependency>

	<dependency>
		<groupId>org.graalvm.regex</groupId>
		<artifactId>regex</artifactId>
		<version>21.1.0</version>
	</dependency>

	<dependency>
		<groupId>org.graalvm.truffle</groupId>
		<artifactId>truffle-api</artifactId>
		<version>21.1.0</version>
	</dependency>

Just to make sure, Can you try spring boot 2.6.x e.g 2.6.11 because as per below Matrix , camunda 7.17 supports only 2.6.X

Thanks for your reply ,

I have tried springboot 2.6.11 as well iam getting the same error.

2022-08-23 16:34:03,208 [ERROR] [053-exec-1] org.camunda.bpm.engine.context : ENGINE-16004 Exception while closing command context: Unable to evaluate script while executing activity ‘umsDeclararionSubmissionAutoApproval1’ in the process definition with id ‘umsDeclarationSubmission:13:cb5793c2-22c1-11ed-8bd5-e2cbcdc4791f’:org.graalvm.polyglot.PolyglotException: ReferenceError: xUserId is not defined
org.camunda.bpm.engine.ScriptEvaluationException: Unable to evaluate script while executing activity ‘umsDeclararionSubmissionAutoApproval1’ in the process definition with id ‘umsDeclarationSubmission:13:cb5793c2-22c1-11ed-8bd5-e2cbcdc4791f’:org.graalvm.polyglot.PolyglotException: ReferenceError: xUserId is not defined
at org.camunda.bpm.engine.impl.scripting.SourceExecutableScript.evaluate(SourceExecutableScript.java:71)

Can you share your script?

graalvm seems to be working correctly, but it can’t find the variable xUserId that you’re using in the script.