When submitting a PA job from Matlab (PAsolve()) the following exception is thrown: "Failed to execute task: java.lang.IllegalStateException: No valid Matlab configuration found, aborting".
It can be reproduced with the following code in a groovy task
import org.ow2.proactive.scheduler.ext.matlab.worker.util.*
// KO
println MatlabFinder.getInstance().findMatSci("9.0",new HashSet(), "7.5", null, "any", true)
// OK
println MatlabFinder.getInstance().findMatSci("9.0",new HashSet(), "9.0", "9.0", "any", true)
The execution environment:
MATLAB 2016a
Win 7 pro x64
PWS+connector 7.17
[53t0@IDO115.danobatgroup.koop;14:05:08] Failed to execute task: java.lang.IllegalStateException: No valid Matlab configuration found, aborting...
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:195)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:134)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.TaskLauncher.doTask(TaskLauncher.java:182)
[53t0@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[53t0@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[53t0@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[53t0@IDO115.danobatgroup.koop;14:05:08] at java.lang.reflect.Method.invoke(Method.java:498)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.mop.MethodCall.execute(MethodCall.java:353)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.request.RequestImpl.serveInternal(RequestImpl.java:214)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.request.RequestImpl.serve(RequestImpl.java:160)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serveInternal(BodyImpl.java:552)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serve(BodyImpl.java:485)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.AbstractBody.serve(AbstractBody.java:426)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.serve(Service.java:128)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:214)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:189)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.fifoServing(Service.java:150)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.ActiveBody$FIFORunActive.runActivity(ActiveBody.java:337)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.ActiveBody.run(ActiveBody.java:175)
[53t0@IDO115.danobatgroup.koop;14:05:08] at java.lang.Thread.run(Thread.java:745)
[53t0@IDO115.danobatgroup.koop;14:05:08] Caused by: org.ow2.proactive.scripting.ScriptException: java.lang.IllegalStateException: No valid Matlab configuration found, aborting...
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.java.JavaClassScriptEngine.eval(JavaClassScriptEngine.java:128)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.java.JavaClassScriptEngine.eval(JavaClassScriptEngine.java:157)
[53t0@IDO115.danobatgroup.koop;14:05:08] at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scripting.Script.execute(Script.java:319)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scripting.ScriptHandler.handle(ScriptHandler.java:76)
[53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:191)
[53t0@IDO115.danobatgroup.koop;14:05:08] ... 19 more
[53t1@IDO115.danobatgroup.koop;14:05:08] Failed to execute task: java.lang.IllegalStateException: No valid Matlab configuration found, aborting...
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:195)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:134)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.TaskLauncher.doTask(TaskLauncher.java:182)
[53t1@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[53t1@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[53t1@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[53t1@IDO115.danobatgroup.koop;14:05:08] at java.lang.reflect.Method.invoke(Method.java:498)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.mop.MethodCall.execute(MethodCall.java:353)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.request.RequestImpl.serveInternal(RequestImpl.java:214)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.request.RequestImpl.serve(RequestImpl.java:160)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serveInternal(BodyImpl.java:552)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serve(BodyImpl.java:485)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.AbstractBody.serve(AbstractBody.java:426)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.serve(Service.java:128)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:214)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:189)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.fifoServing(Service.java:150)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.ActiveBody$FIFORunActive.runActivity(ActiveBody.java:337)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.ActiveBody.run(ActiveBody.java:175)
[53t1@IDO115.danobatgroup.koop;14:05:08] at java.lang.Thread.run(Thread.java:745)
[53t1@IDO115.danobatgroup.koop;14:05:08] Caused by: org.ow2.proactive.scripting.ScriptException: java.lang.IllegalStateException: No valid Matlab configuration found, aborting...
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.java.JavaClassScriptEngine.eval(JavaClassScriptEngine.java:128)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.java.JavaClassScriptEngine.eval(JavaClassScriptEngine.java:157)
[53t1@IDO115.danobatgroup.koop;14:05:08] at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scripting.Script.execute(Script.java:319)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scripting.ScriptHandler.handle(ScriptHandler.java:76)
[53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:191)
[53t1@IDO115.danobatgroup.koop;14:05:08] ... 19 more
When submitting a PA job from Matlab (PAsolve()) the following exception is thrown: "Failed to execute task: java.lang.IllegalStateException: No valid Matlab configuration found, aborting".
Considering:
It can be reproduced with the following code in a groovy task
import org.ow2.proactive.scheduler.ext.matlab.worker.util.* // KO println MatlabFinder.getInstance().findMatSci("9.0",new HashSet(), "7.5", null, "any", true)
// OK
println MatlabFinder.getInstance().findMatSci("9.0",new HashSet(), "9.0", "9.0", "any", true)
The execution environment: MATLAB 2016a Win 7 pro x64 PWS+connector 7.17
[53t0@IDO115.danobatgroup.koop;14:05:08] Failed to execute task: java.lang.IllegalStateException: No valid Matlab configuration found, aborting... [53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:195) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:134) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.TaskLauncher.doTask(TaskLauncher.java:182) [53t0@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [53t0@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [53t0@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [53t0@IDO115.danobatgroup.koop;14:05:08] at java.lang.reflect.Method.invoke(Method.java:498) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.mop.MethodCall.execute(MethodCall.java:353) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.request.RequestImpl.serveInternal(RequestImpl.java:214) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.request.RequestImpl.serve(RequestImpl.java:160) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serveInternal(BodyImpl.java:552) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serve(BodyImpl.java:485) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.AbstractBody.serve(AbstractBody.java:426) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.serve(Service.java:128) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:214) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:189) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.fifoServing(Service.java:150) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.ActiveBody$FIFORunActive.runActivity(ActiveBody.java:337) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.ActiveBody.run(ActiveBody.java:175) [53t0@IDO115.danobatgroup.koop;14:05:08] at java.lang.Thread.run(Thread.java:745) [53t0@IDO115.danobatgroup.koop;14:05:08] Caused by: org.ow2.proactive.scripting.ScriptException: java.lang.IllegalStateException: No valid Matlab configuration found, aborting... [53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.java.JavaClassScriptEngine.eval(JavaClassScriptEngine.java:128) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.java.JavaClassScriptEngine.eval(JavaClassScriptEngine.java:157) [53t0@IDO115.danobatgroup.koop;14:05:08] at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scripting.Script.execute(Script.java:319) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scripting.ScriptHandler.handle(ScriptHandler.java:76) [53t0@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:191) [53t0@IDO115.danobatgroup.koop;14:05:08] ... 19 more [53t1@IDO115.danobatgroup.koop;14:05:08] Failed to execute task: java.lang.IllegalStateException: No valid Matlab configuration found, aborting... [53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:195) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:134) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.TaskLauncher.doTask(TaskLauncher.java:182) [53t1@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [53t1@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [53t1@IDO115.danobatgroup.koop;14:05:08] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [53t1@IDO115.danobatgroup.koop;14:05:08] at java.lang.reflect.Method.invoke(Method.java:498) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.mop.MethodCall.execute(MethodCall.java:353) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.request.RequestImpl.serveInternal(RequestImpl.java:214) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.request.RequestImpl.serve(RequestImpl.java:160) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serveInternal(BodyImpl.java:552) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serve(BodyImpl.java:485) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.AbstractBody.serve(AbstractBody.java:426) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.serve(Service.java:128) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:214) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:189) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.Service.fifoServing(Service.java:150) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.ActiveBody$FIFORunActive.runActivity(ActiveBody.java:337) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.objectweb.proactive.core.body.ActiveBody.run(ActiveBody.java:175) [53t1@IDO115.danobatgroup.koop;14:05:08] at java.lang.Thread.run(Thread.java:745) [53t1@IDO115.danobatgroup.koop;14:05:08] Caused by: org.ow2.proactive.scripting.ScriptException: java.lang.IllegalStateException: No valid Matlab configuration found, aborting... [53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.java.JavaClassScriptEngine.eval(JavaClassScriptEngine.java:128) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.java.JavaClassScriptEngine.eval(JavaClassScriptEngine.java:157) [53t1@IDO115.danobatgroup.koop;14:05:08] at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scripting.Script.execute(Script.java:319) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scripting.ScriptHandler.handle(ScriptHandler.java:76) [53t1@IDO115.danobatgroup.koop;14:05:08] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:191) [53t1@IDO115.danobatgroup.koop;14:05:08] ... 19 more