NPE on Mac

[Environment]

IntelliJ IDEA 2016.2.3 EAP Build #IU-162.1812.2
JDK: 1.8.0_102
VM: Java HotSpot(TM) 64-Bit Server VM
Vendor: Oracle Corporation
OS: Mac OS X

[Issue]

I always see the following NPE in logs (a lot of them) after starting my plugin. Anyone can give an idea what this is about?  I even don't know if it is coming from my code.

java.lang.NullPointerException
at sun.lwawt.macosx.CAccessible.getAccessibleContext(CAccessible.java:99)
at sun.lwawt.macosx.CAccessibility$16.call(CAccessibility.java:289)
at sun.lwawt.macosx.CAccessibility$16.call(CAccessibility.java:287)
at sun.lwawt.macosx.LWCToolkit$CallableWrapper.run(LWCToolkit.java:597)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
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:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:829)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:665)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
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)

 

5 comments
Comment actions Permalink

I see that you are using Oracle JDK. They still have this bug. Try to use bundled JetBrains Runtime.

0
Comment actions Permalink

Hi Denis, How can I configure my Run Configuration to use the bundled JRE?

1
Comment actions Permalink

On my computer:
Project Structure > SDK's > add new JDK > /Applications/IntelliJ IDEA 15.app/Contents/jre/jdk
Then modify IntelliJ Platform Plugin SDK with this new JDK or create new.

0
Comment actions Permalink

Hi Denis,

I tried to switch booting JDK following the guide you provided.  It works for the main IDE window but it doesn't work for the "plugin sandbox" IDE, (the new IDE instance started when I run/debug an IDEA plugin project).  

I can see there's a new file named 'idea.jdk' generated in my plugin-sandbox/config directory, the content is only one line, 'jre/jdk'. But the plugin debug instance is always started using Oracle JDK, nowhere to configure it to use IDEA bundled JDK.

Help?

Ming

0

Please sign in to leave a comment.