Why am I unable to use function MATLABPOOL on my 64-bit MAC OS X 10.6.8 (Snow Leopard) machine after JAVA updated to version 1.6.0_39?

4 views (last 30 days)
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: 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: 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: 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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 31 May 2023
Edited: MathWorks Support Team on 31 May 2023
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:

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2012b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!