Problem with matlabpool - Error in matlabpool (line 127)

1 view (last 30 days)
Hi everyone
I can’t open matlabpool, when I try I get the following error message:
>> matlabpool open
The class "parallel.internal.apishared.ProfileConfigHelper" is undefined. Perhaps Java is not running.
Error in matlabpool (line 127) pch = ProfileConfigHelper.buildDefault();
I’ve check for specific Java feature and they are available in the current MATLAB session so it seems to me that java is running (see below)
I am running matlab R2012b (see full version below) in a linux computer cluster; nevertheless I am only trying to run it locally in a node with several cores. In my attempt to solve this problem I have been searching the web and it seems that there are some issues regarding Parallel Computing Toolbox and java but I can’t find a solution for my problem. Is anyone familiar with this? Any help will be appreciated Many thanks in advance.
>> javachk('awt')
ans =
0x1 struct array with fields: message identifier
>> javachk('jvm')
ans =
0x1 struct array with fields: message identifier
>> javachk('swing')
ans =
0x1 struct array with fields: message identifier
>> javachk('desktop')
ans =
0x1 struct array with fields: message identifier
>> ver ------------------------------------------------------------------------------------------------------- MATLAB Version: 8.0.0.783 (R2012b) Operating System: Linux 2.6.18-92.1.13.el5 #1 SMP Wed Sep 24 19:32:05 EDT 2008 x86_64 Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot™ 64-Bit Server VM mixed mode ------------------------------------------------------------------------------------------------------- MATLAB Version 8.0 (R2012b) MATLAB Compiler Version 4.18 (R2012b) Multi-Parametric Toolbox Version 2.6.2 (R2006b) Optimization Toolbox Version 6.2.1 (R2012b) Parallel Computing Toolbox Version 6.1 (R2012b) Symbolic Math Toolbox Version 5.9 (R2012b) YALMIP Version 3 (R14SP3)
  1 Comment
Manuel
Manuel on 6 Jun 2013
Hi everyone!
Since I posted my problem opening matlabpool I have been trying to execute 'matlabpool open' without success until today. For a totally unknown reazon to me the problem have solved itself. hmmm, yes, I did nothing and today I succeeded on opening a matlabpool. Hopefully the problem is gone forever and is not going to show up randomly.

Sign in to comment.

Answers (1)

Shashank Prasanna
Shashank Prasanna on 4 Jun 2013
Navigate to Parallel on the toolstrip > Manage Cluster Profiles
Confirm that you see 'local' and any other profiles you may have created and validate them by checking the green check mark. What you do see? Does it error?
  2 Comments
Manuel
Manuel on 4 Jun 2013
Edited: Manuel on 4 Jun 2013
I see no profiles at all.
As soon as I click on parallel > Manage Cluster Profiles I get a long error list:
com.mathworks.jmi.MatlabException: Undefined function 'parallel.internal.ui.MatlabProfileManager.initialize' for input arguments of type 'com.mathworks.toolbox.distcomp.ui.profile.model.MatlabProfileManager'. at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method) at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:219) at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120) at com.mathworks.jmi.Matlab.mtFeval(Matlab.java:1540) at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:197) at com.mathworks.toolbox.distcomp.ui.profile.model.MatlabProfileManager$2.runOnMatlabThread(MatlabProfileManager.java:88) at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79) at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:364) Attempt to reference field of non-structure array.
Error in parallel.internal.ui.ValidationManager (line 31) obj.Validator.addlistener('ValidationStarted', ...
com.mathworks.jmi.MatlabException: Attempt to reference field of non-structure array. at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method) at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:219) at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120) at com.mathworks.jmi.Matlab.mtFevalConsoleOutput(Matlab.java:1608) at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:195) at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:172) at com.mathworks.toolbox.distcomp.ui.profile.model.ValidationManager$1.runOnMatlabThread(ValidationManager.java:44) at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79) at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:364)
Shashank Prasanna
Shashank Prasanna on 6 Jun 2013
That seems to be like corrupt installation of Parallel Computing Toolbox. There should always be a local profile which you cannot delete. Try reinstalling the toolbox.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!