MATLAB: Am I unable to use function MATLABPOOL on the 64-bit MAC OS X 10.6.8 (Snow Leopard) machine after JAVA updated to version 1.6.0_39

distcompexceptionmatlabpoolnullParallel Computing Toolboxpointertypechecker

I am using MATLAB and Parallel Computing Toolbox on MAC 10.6.8 machine (64-bit). Recently I updated my JAVA version to 1.6.0_39 and suddenly MATLABPOOL stopped working.
For MATLAB R2011b and older releases, the error that I receive is:
>>matlabpool open local 2
Error using matlabpool (line 126)
The class distcomp.typechecker has no property or
method named 'getDefaultValue'.
On MATLABs R2012a and R2012b, the error message is:
>> matlabpool open local 2
Error using matlabpool (line 134)
Java exception occurred:
java.lang.NullPointerException
at java.util.logging.Logger.demandLogger (Logger.java:286)
at java.util.logging.Logger.getLogger (Logger.java:321)
when I try to connect to a MJS cluster, the error message is:
>> parcluster('myMJSProfile')
Error using parcluster (line 53)
Java exception occurred:
java.lang.ExceptionInInitializerError
...
Please note the two different error messages for the MATLABPOOL command. I would like to be able to use this function without any error messages.

Best Answer

This behavior occurs due to a bug in the way that MATLAB expects an older version of JAVA to work with the Parallel Computing toolbox and MATLAB Distributed Computing Server products. A fix for the issue can be found here: