Can't find scripting engine for 'javascript': scriptEngine is null

2,626 views
Skip to first unread message

Balaji Balasubramanian

unread,
Oct 26, 2015, 1:36:40 AM10/26/15
to camunda BPM users
I Guys,

I am a newbie... my environment is

Java version :   JDK 1.8 with scala

Camunda version :  7.3.0
camunda-bom       
camunda-engine    
camunda-engine-plugin-spin   
camunda-engine-plugin-connect
camunda-connect-http-client"        -       "1.0.1",
 
When I try to star process instance

val processInstance =  runtimeService.startProcessInstanceByKey("HATExtensionCall")

I get the following exception. Please  correct me where I am doing mistake or did i missed any libraries. I spent days and got stuckup.
Note : I am using  camunda-bom   import

Please do let me know if you need my code.

 Oct 26, 2015 1:19:21 PM org.camunda.bpm.engine.impl.interceptor.CommandContext close
SEVERE: Error while closing command context
org.camunda.bpm.engine.exception.NullValueException: Can't find scripting engine for 'javascript': scriptEngine is null
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:422)
at org.camunda.bpm.engine.impl.util.EnsureUtil.generateException(EnsureUtil.java:283)
at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotNull(EnsureUtil.java:44)
at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotNull(EnsureUtil.java:39)
at org.camunda.bpm.engine.impl.scripting.engine.ScriptingEngines.getScriptEngineForLanguage(ScriptingEngines.java:148)
at org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment.execute(ScriptingEnvironment.java:71)
at org.camunda.bpm.engine.impl.delegate.ScriptInvocation.invoke(ScriptInvocation.java:34)
at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:39)
at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
at org.camunda.bpm.engine.impl.scripting.ScriptValueProvider.getValue(ScriptValueProvider.java:39)
at org.camunda.bpm.engine.impl.core.variable.mapping.OutputParameter.execute(OutputParameter.java:45)


Thanks Regards,
BalaB

ComputeTask.bpmn
parseHoliday.js

Balaji Balasubramanian

unread,
Oct 26, 2015, 4:12:45 AM10/26/15
to camunda BPM users
issue resolved., 

 changed the ouputparameter to 

 <camunda:outputParameter name="isHoliday">${JSON(response)}</camunda:outputParameter>

and added a missing dependency 

"org.camunda.spin" % "camunda-spin-dataformat-json-jackson" % "1.1.0"


its working fine now. I get response data in my delegate.

Sebastian Menski

unread,
Oct 26, 2015, 4:15:35 AM10/26/15
to camunda BPM users
Hi BalaB,

which JDK vendor do you use? Oracle JDK, OpenJDK, Apple JDK?

Cheers,
Sebastian
Reply all
Reply to author
Forward
0 new messages