Java Mac OSX 10.6 Update 12 Problem with Matlabpool?

조회 수: 1 (최근 30일)
Jason
Jason 2013년 2월 6일
답변: jacob lalaounis 2015년 7월 9일
I recently installed an automatic update for Java (yesterday). And since doing so, I am getting the following error when I attempt to run computations in parallel using matlabpool:
"??? Error using ==> matlabpool at 125 Java exception occurred: java.lang.NullPointerException at java.util.logging.Logger.demandLogger(Logger.java:286) at java.util.logging.Logger.getLogger(Logger.java:321)
Error in ==> LR_SL at 50 matlabpool open 4;"
Before installing this update to Java, I have had no problems running matlabpool in the local configuration. It seems that this error is thrown in the subroutine iVerifyJava().
I am running Matlab 2010b. I have tried running the matlabpool command in 2010a, but to no avail.
Any help would be greatly appreciated.
Thanks!

답변 (16개)

Andreas Goser
Andreas Goser 2013년 2월 22일
MathWorks Development created a patch for this. It will be published soon - together with a related issue. I will post the link to this bug report and patch as soon as it is available. If the workarounds don't work for you, or you have an urgent need for the patch, please contact Technical Support and refer to this thread and they will provide the patch.
  댓글 수: 10
Saurabh Bhatia
Saurabh Bhatia 2014년 4월 15일
Is there a fix for 2010a?
Wynn
Wynn 2014년 6월 27일
Just repeating the previous requests for a 2010a fix. This is the most recent available version of 32-bit MATLAB for Mac, so I need to use this version.

댓글을 달려면 로그인하십시오.


Danny
Danny 2013년 2월 7일
It seems I have the same problem.
'matlabpool' command doesn't work anymore after I've installed Mac OS X Java update yesterday.
The environment is, Mac OS X 10.6.8, Java 1.6.0_39 (build 1.6.0_39-b04-442-10M4008), Matlab 2012a and 2012b.
But I guess I managed to fix the problem.
First, start up the Matlab.
Before executing your codes (probably containing 'matlabpool' command), just run the Cluster Profile Manager'. (In the menu, 'Parallel' >> 'Manage Cluster Profiles')
Then, close the Cluster Profile Manager. You don't have to do anything in it. Just open and close.
Now, try to run your codes.
This has fixed my problem though I have no idea why it works.
Good luck.
  댓글 수: 5
Theda
Theda 2013년 6월 25일
This trick used to work fine for me in the past, now every time I open "Parallel -> Manage Configurations", I get the following error:
_??? The class distcomp.typechecker has no property or method named 'getDefaultValue'.
Error in ==> distcomp.configsection.configsection at 50 obj.PropValue{i} = distcomp.typechecker.getDefaultValue(obj.Types{i});
Error in ==> distcomp.configuration.pConstructFromClassTypes at 39 obj.findResource = distcomp.configsection('findResource', props, types, isRW);
Error in ==> distcomp.configuration.pInitializeFromName at 21 obj.pConstructFromClassTypes(type);
Error in ==> distcomp.configuration.getJavaReference at 15 conf.pInitializeFromName(name);_
I use R2010a, so the bug report does not work for me. Does anyone else have found another way to go about this?
Tiago
Tiago 2014년 2월 15일
Amazing, it actually works!!! Great. Type 'prefdir', go to that folder and delete file parallel.setting. Initiate MATLAB, go to 'parallel' and 'manage cluster profiles', then close it. Matlab will create a new parallel.setting file inside prefdir folder. Then you can use parallel computing. Worked for me!! Thanks!!! Environment: MacOS 10.9.1, JAVA 1.7.0_51-b13, MATLAB 2013a. Cheeeeeeers!!!

댓글을 달려면 로그인하십시오.


Andreas Goser
Andreas Goser 2013년 2월 7일
This issue was brought to the attention of MathWorks Technical Support earlier this week. This issue is reproducible and being investigated together with Development. In case you contact MathWorks Technical Support, you can refer to this thread and 'SR 1-LF8FNT'.
  댓글 수: 2
Andreas Goser
Andreas Goser 2013년 2월 7일
In addition, we tried to apply Danny's workaround and this one also works here.
Andi
Andi 2013년 2월 8일
On R2012 or R2011?

댓글을 달려면 로그인하십시오.


Thomas
Thomas 2013년 2월 6일
What java version are you at.
Open terminal and type
java -version
I tested with
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
on R 2010b sp1 --- R2012b (all releases in between)
on OSX 10.7.5 and on OSX 10.6.8 and the local matlabpool works fine on both.
  댓글 수: 2
Thomas
Thomas 2013년 2월 7일
편집: Thomas 2013년 2월 7일
I guess updating to JAVA 1.6.0_39 causes matlabpool to break on Matlab R2011b and older. Maltabpool works fine on R 2012a. I would hold off upgrading if one is on 2011b or older till a solutions is found.
Even on R2012a I have to run the validation of the local configuration before I can use matlabpool every time I start MATLAB.
Andi
Andi 2013년 2월 7일
Thomas, do you know if it's safe to install Java 1.6.0_37 after I've installed 0_39? Do I have to uninstall 0_39?

댓글을 달려면 로그인하십시오.


Jason
Jason 2013년 2월 13일
Hi all, Glad to see there's a common audience for this. The 'trick' of validating upon startup seems to work, but this is unnecessarily cumbersome. It is a downgrade, rather than an upgrade.
Mathworks people, do you have an automated work-around for this? Perhaps a way to run the validation upon startup? Even still, this is time-consuming for launching Matlab so a proper fix for this Java incompatibility would be best. Please update on when this will be happening.
  댓글 수: 1
Andreas Goser
Andreas Goser 2013년 2월 18일
Development is working on this. I will keep you updated.

댓글을 달려면 로그인하십시오.


Hiroki
Hiroki 2013년 2월 7일
I am also getting the same error on OSX 10.6.8. Java for Mac OSX 10.6 Update 12 came with:
java version "1.6.0_39"
Java(TM) SE Runtime Environment (build 1.6.0_39-b04-442-10M4008)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-442, mixed mode)

Thomas
Thomas 2013년 2월 8일
I have the latest version of Java and had no luck until uninstalling R2011B and updating to R2012B. At this point, I had to run a validation before the system ran correctly. FYI

Reynaldo
Reynaldo 2013년 2월 22일
편집: Reynaldo 2013년 2월 22일
The trick Danny proposed works for me too. I am using 1.6.0_41. Please notify us as soon as a fix is found!

Jason
Jason 2013년 2월 22일
Thanks, all, for responding on this. But is there any way to have the parallel work without having to run validation manually upon startup??
  댓글 수: 1
Jason Ross
Jason Ross 2013년 2월 22일
See Andreas' response above -- a patch is in the works, or you can contact Technical Support directly.

댓글을 달려면 로그인하십시오.


Jon
Jon 2013년 3월 25일
I just did everything as explained above, updated toolbox cache in the preferences and tried matlabpool and got:
Error using matlabpool (line 134) Undefined function 'distcomp.fileserializer' for input arguments of type 'distcomp.filestorage'.
I cannot find this file anywhere. Any ideas?
Best Jon
  댓글 수: 3
Jason Ross
Jason Ross 2013년 3월 27일
There is a patch available now. See
Akitada
Akitada 2013년 3월 27일
That perfectly worked for me. Thanks!

댓글을 달려면 로그인하십시오.


Ferenc
Ferenc 2013년 3월 25일
Hello,
I am getting these errors with Matlab 2013a on OS X 10.8.2.
>> matlabpool
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)
>> matlabpool
Starting matlabpool using the 'local' profile ... Warning: an error occurred while parsing class distcomp.fileserializer:
Attempt to reference field of non-structure array.
> In distcomp.filestorage.filestorage at 49
In CJSCluster>CJSCluster.CJSCluster at 487
In Local.Local>Local.Local at 302
In parcluster at 51
In ProfileConfigHelper>ProfileConfigHelper.buildScheduler at 76
In MatlabpoolHelper>MatlabpoolHelper.parseMatlabpoolInputs at 290
In MatlabpoolHelper>MatlabpoolHelper.parseInputsAndCheckOutputsForFunction at 100
In matlabpool at 130
Error using matlabpool (line 134)
Undefined function 'distcomp.fileserializer' for input arguments of type
'distcomp.filestorage'.
>> matlabpool
Starting matlabpool using the 'local' profile ...
Error using matlabpool (line 134)
Undefined function 'distcomp.fileserializer' for input arguments of type
'distcomp.filestorage'.
Can anyone help?
Thanks, Ferenc

Koji
Koji 2013년 5월 14일
Hi,
I am trying to work on Distributed Computing Toolbox 3.2 (R2007b) installed on OSX 10.8.3, and I think I am having a similar JVM problem:
-------------
>> matlabpool
??? Undefined function or variable 'distcomp.interactiveclient'.
Error in ==> matlabpool at 82
client = distcomp.getInteractiveObject();
>>
-------
I know a bug report is here:
but a patch for R2007b looks remaining undeveloped.
Can anyone help me?
Best wishes,
Koji
  댓글 수: 2
Thomas Ibbotson
Thomas Ibbotson 2013년 5월 14일
Hi Koji,
I'm afraid there's no patch available for R2007b. Your only options are to either upgrade your version of MATLAB or downgrade your version of the JVM.
Tom
Koji
Koji 2013년 5월 14일
Hi Tom,
Thank you for your suggestions. Do you have a recommendation for a version of JVM? My OSX currently has 1.6.0_45.
Thanks again,
Koji

댓글을 달려면 로그인하십시오.


Joost
Joost 2013년 5월 29일
Matlab 2013a generates a series of java errors when attempting to open the editor. This is what I get:
java.lang.NullPointerException at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:36) at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:18) at java.lang.reflect.Field.get(Field.java:358) at apple.awt.CAccessibility.getAccessibleRoleFor(CAccessibility.java:200) at apple.awt.CAccessibility$11.call(CAccessibility.java:215) at apple.awt.CAccessibility$11.call(CAccessibility.java:212) at apple.awt.CToolkit$CallableWrapper.run(CToolkit.java:1125) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) at apple.awt.CToolkit$CPeerEvent.dispatch(CToolkit.java:1215) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:708) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:669) at java.awt.EventQueue$2.run(EventQueue.java:667) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:678) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
As a result, I can no longer use Matlab. I have removed matlab entirely and reinstalled it without effect. I have applied the fix mentioned above, no positive result.
Hopefully someone can help because I am dead in the water right now.
I am using java 7 update 21, OSX 10.8.3

GradStudent
GradStudent 2014년 2월 12일
편집: GradStudent 2014년 2월 12일
Just open the cluster manager, allow it to (automatically) create a local cluster, and then run the verification tests. More info here: http://www.mathworks.com/help/distcomp/clusters-and-cluster-profiles.html
I applied the patch, and Matlab wouldn't open (Mac OS 10.8.5, java version "1.6.0_65" - java 7, update 51). Only deleting matlab and reinstalling it fixed the problem (I had no indication what the problem was).
  댓글 수: 2
David
David 2014년 12월 9일
편집: David 2014년 12월 9일
I have R2013a, OSX 10.7.5, and cluster manager wouldn't validate. I received several errors. I followed the bug report fix you linked and resolved my problem. But I see you have a newer version of OSX. So…
Oi
Oi 2015년 1월 12일
Same problem here

댓글을 달려면 로그인하십시오.


Brian
Brian 2014년 5월 15일
Can't use matlabpool too on Mac OS 10.9.2, R2013a student version, with :
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
The trick proposed By Blake worked once but now i'm getting several errors when I try to use matlabpool or even when I just open the cluster manager. I also tried the patch but it didn't fix the problem.
Since I updated java I have many problems. For instance, I can't open matlab through the spotlight, I have to use the sudo sh command in the terminal!
Should I try to reinstall an older version of java ?
  댓글 수: 1
Radwa
Radwa 2015년 1월 7일
I have R2012a and MAC 10.6.8 I upgrade java to update 17 , and matlab didn't open should I downgrade it?

댓글을 달려면 로그인하십시오.


jacob lalaounis
jacob lalaounis 2015년 7월 9일
Hi all,
I used this http://www.mathworks.com/support/bugreports/919688 and now Matlab does not work, i am using Matlab 2012.a on Mac OSX 10.9.5
If you have find a solution, it would be great to share, thank you in advance, Jacob

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by