ow2-proactive / connector-matlab-scilab

ProActive connector for Matlab & Scilab
http://proactive.activeeon.com/
GNU Affero General Public License v3.0
2 stars 13 forks source link

"Timer-0" java.lang.NullPointerException when using Matlab in interactive mode #293

Open mbenguig opened 7 years ago

mbenguig commented 7 years ago

When enabling 'UseMatlabControl'

PAoptions('UseMatlabControl',1)

Tasks exécutions become unstable. Submitting a simple helloworld job could lead to

hello [157t0@XPS-P31F;17:28:47] Exception in thread "Timer-0" java.lang.NullPointerException [157t0@XPS-P31F;17:28:47] at matlabcontrol.RemoteMatlabProxyFactory.connectionLost(RemoteMatlabProxyFactory.java:459) [157t0@XPS-P31F;17:28:47] at matlabcontrol.RemoteMatlabProxyFactory.checkConnections(RemoteMatlabProxyFactory.java:582) [157t0@XPS-P31F;17:28:47] at matlabcontrol.RemoteMatlabProxyFactory.access$4(RemoteMatlabProxyFactory.java:564) [157t0@XPS-P31F;17:28:47] at matlabcontrol.RemoteMatlabProxyFactory$3.run(RemoteMatlabProxyFactory.java:478) [157t0@XPS-P31F;17:28:47] at java.util.TimerThread.mainLoop(Timer.java:555) [157t0@XPS-P31F;17:28:47] at java.util.TimerThread.run(Timer.java:505)

Before considering the issue, we could adapt MatlabConnectionMCImpl.java to a newer version of matlabcontrol (4.1.0 against 3.1.0)