Why do I receive a Java exception when I open the Profiler on Mac?

22 次查看(过去 30 天)
Whenever I open the Profiler or make it the current window, I receive the following Java exception in the MATLAB Command Window. This happens in both MATLAB R2016b and R2017a on my Mac.
 
java.lang.NullPointerException
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:54)
at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:36)
at java.lang.reflect.Field.get(Field.java:379)
at sun.lwawt.macosx.CAccessible.getCAccessible(CAccessible.java:62)
at sun.lwawt.macosx.CAccessibility$30.call(CAccessibility.java:525)
at sun.lwawt.macosx.CAccessibility$30.call(CAccessibility.java:521)
at sun.lwawt.macosx.LWCToolkit$CallableWrapper.run(LWCToolkit.java:521)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:302)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:699)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:713)
at java.awt.EventQueue$4.run(EventQueue.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:710)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

采纳的回答

MathWorks Support Team
This error is likely being caused by a third-party accessibility tool on Mac, such as Moom or BetterSnapTool.
 
To see if a tool is enabled, follow these steps:
1. From the Apple menu, select System Preferences.
2. Open Security & Privacy.
3. Click the Privacy tab.
4. Select Accessibility in the list on the left.
 
If there are any tools enabled here, try unchecking them to resolve this incompatibility.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Java Package Integration 的更多信息

标签

尚未输入任何标签。

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by