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

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
MathWorks Support Team 2017년 7월 28일

2 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2017a

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by