フィルターのクリア

How to deal with Exception in thread "AWT-EventQueue-0": java.lang.​IllegalArg​umentExcep​tion: 'frame' cannot be null error

5 ビュー (過去 30 日間)
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 件のコメント
Kshitij Chhabra
Kshitij Chhabra 2021 年 10 月 11 日
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?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by