Running any Parallel Computing Toolbox code using a Java Virtual Machine (JVM) version of 1.6.0_39 or later might cause a NullPointerException to be thrown by the JVM. For example:
>> matlabpool open
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)
Another symptom of this issue is a failure to connect to an MJS cluster, for example:
This is a bug in the JVM update, and affects all versions of Parallel Computing Toolbox.
Workaround
To work around this issue, follow these installation instructions.
Log in to an account with appropriate permissions to overwrite files in your MATLAB installation. On Linux systems, this is typically the root account.
Locate your MATLAB installation by typing matlabroot at the MATLAB command prompt. This folder is referred to as <MATLAB> in subsequent steps.
Exit MATLAB.
Download the attached .zip file associated with this Bug Report and store the file in the <MATLAB> folder.
Make a backup copy of each of the files listed in the.zip file. To see the contents of the.zip file:
Windows Systems*: Open the .zip file and look at the contents.
Linux/Macintosh Systems: Type the following in a shell (Linux) or in a terminal window (Macintosh):
unzip -l <MATLAB>/<.zip file>
Extract the files from the.zip file.
Windows Systems*:
Open the .zip file.
Extract the contents of the file to your <MATLAB> folder.
Linux/Macintosh Systems: Type the following in a shell (Linux) or in a terminal window (Macintosh):
cd <MATLAB>
unzip <.zip file>
Delete the .zip file in the <MATLAB> folder.
*Notes for Windows systems:
If you see “Error: Access is denied” when attempting to extract the .zip file, you might need to start WinZip in administrator mode. Do this by navigating to WinZip.exe or the WinZip Start menu entry, right-clicking on it, and selecting Run as administrator.
From within WinZip, find and open the downloaded .zip file.
Extract the contents of the file to your <MATLAB> folder.
Change Log:
February 21, 2013:
attachment_919688_12b_2013-02-21.zip: initial version, works on R2012b only
attachment_919688_11b_12a_2013-02-21.zip: initial version, works on R2011b and R2012a
attachment_919688_10b_11a_2013-02-21.zip: initial version, works on R2010b and R2011a
February 27, 2013:
attachment_919688_12b_2013-02-27.zip: updated with fix for MJS, works on R2012b only
attachment_919688_11b_12a_2013-02-27.zip: updated with fix for MJS, works on R2011b and R2012a
attachment_919688_10b_11a_2013-02-27.zip: updated with fix for MJS, works on R2010b and R2011a
March 8, 2013:
attachment_919688_12b_13a_2013-03-08.zip: added patch for R2013a release, works on R2012b and R2013a
Fix
This bug was fixed as of R2013b(6.3).
If you have a current subscription to MathWorks Software Maintenance Service (SMS), you can download product updates. If not, learn more about MathWorks SMS.