How to deal with Exception in thread "AWT-EventQueue-0": java.lang.IllegalArgumentException: 'frame' cannot be null error
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,I have been geeting this error when trying ro execute a matlab script on my mac.I have tried sveral ways shown there :https://uk.mathworks.com/matlabcentral/answers/276006-how-to-solve-the-error-exception-in-thread-awt-eventqueue-0-java-lang-illegalargumentexception-c
I don't know if it is because i am using mac os , I was not able to solve my prloblem using those methods.I installed the jdk1.8.0-202 and my matlab version is 9.11.0.1769968 (R2021b) My mac version is 11.6
"Exception in thread "AWT-EventQueue-0": java.lang.IllegalArgumentException: 'frame' cannot be null"
at com.mathworks.mlwidgets.dialog.PathChange.<init>(PathChange.java:137)
at com.mathworks.mlwidgets.dialog.PathChange.<init>(PathChange.java:128)
at com.mathworks.mde.editor.plugins.matlab.EditorSaveRunAndPublishUtils.doConfigurationActionAfterPromptingAboutPath(EditorSaveRunAndPublishUtils.java:261)
at com.mathworks.mde.editor.plugins.matlab.EditorSaveRunAndPublishUtils.saveFileAndDoConfigurationAction(EditorSaveRunAndPublishUtils.java:113)
at com.mathworks.mde.editor.plugins.matlab.MatlabPluginUtils.executeDefaultConfiguration(MatlabPluginUtils.java:98)
at com.mathworks.mde.editor.plugins.editordataservice.LegacyJavaExecutionFeature$1$1.run(LegacyJavaExecutionFeature.java:52)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
1 commentaire
Kshitij Chhabra
le 11 Oct 2021
Hi Yunxin,
I understand that you have already tried modifying the java versions in your system, but the error still persists. Could you please provide the script/minimal example so that we can try reproducing the error at our end?
Réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!