Java error in editor in R2013b

11 views (last 30 days)
Heber Farnsworth
Heber Farnsworth on 25 Sep 2013
Commented: Sean de Wolski on 22 Apr 2014
New computer running windows 7 enterprise. I Installed Matlab 2013b. Whenever I launch the editor I get the following error
Undefined function 'rmiml.getAll' for input arguments of type 'char'.
Undefined function 'rmiml.visibleInToolstrip' for input arguments of type 'char'.
Undefined function 'rmiml.visibleInToolstrip' for input arguments of type 'char'.
Undefined function 'rmiml.visibleInToolstrip' for input arguments of type 'char'.
java.lang.NullPointerException at com.mathworks.toolbox.simulink.slvnv.RmiEditorToolstripContributor$4$1.runOnAWTEventDispatchThread(RmiEditorToolstripContributor.java:173) at com.mathworks.jmi.MatlabWorker$1.run(MatlabWorker.java:67) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.lang.NullPointerException at com.mathworks.toolbox.simulink.slvnv.RmiEditorToolstripContributor$4$1.runOnAWTEventDispatchThread(RmiEditorToolstripContributor.java:173) at com.mathworks.jmi.MatlabWorker$1.run(MatlabWorker.java:67) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.lang.NullPointerException at com.mathworks.toolbox.simulink.slvnv.RmiEditorToolstripContributor$4$1.runOnAWTEventDispatchThread(RmiEditorToolstripContributor.java:173) at com.mathworks.jmi.MatlabWorker$1.run(MatlabWorker.java:67) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
  2 Comments
Scott
Scott on 24 Oct 2013
I am getting the same. Windows 7 Pro. Previous installation was R2013a.
Scott
Scott on 11 Nov 2013
Just a note to the original poster: This problem was resolved for me by uninstalling and reinstalling R2013b.

Sign in to comment.

Answers (1)

Michael
Michael on 2 Apr 2014
I had the same error, and it stopped my own GUI-based programmes running to boot.
My problem started when I launched an old version (2011a) to test some code. I had changed some paths during my testing. I then followed Scott's advice about re-installing, but the error still happened. I then uninstalled all versions of Matlab from my machine, taking care to clear out all settings and to delete folder remnants after the uninstaller finished.
I re-installed 2013b, but still had the same problem! Then I noticed my old paths still existed. I deleted my pathdef file that was sitting in Documents/Matlab folder, restarted Matlab, and all is good!
  2 Comments
Denis Pierrot
Denis Pierrot on 22 Apr 2014
That worked for me. Thanks a lot.
Sean de Wolski
Sean de Wolski on 22 Apr 2014
Yes, the following should resolve it:
restoredefaultpath;
rehash toolboxcache;
If it does,
savepath

Sign in to comment.

Categories

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

Community Treasure Hunt

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

Start Hunting!