jtreg plugin for IntelliJ IDEA - report of NullPointerException

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Jun 18 00:46:22 UTC 2020


(adding ide-support)

Hi,
this has been reported before:

https://mail.openjdk.java.net/pipermail/jtreg-dev/2020-May/000826.html

John proposed a fix there which looks promising - I was also trying to 
find a suitable icon, but could not locate it; I will test John's fix 
and propose a fix.

Cheers
Maurizio


On 17/06/2020 18:47, Chris W. Johnson wrote:
> I'm using IntelliJ IDEA 2020.1.2 (Ultimate Edition), build #IU-201.7846.76. I have no idea whether the issue is specific to the version of IntelliJ, because this is my first attempt to use the jtreg plugin.
>
> BTW, I encountered a build problem on line 232 of "JTRegServiceConfigurable":
>
>              return antTarget instanceof MetaTarget ? AntIcons.MetaTarget : AntIcons.Target;
>
> The problem is the "AntIcons" class doesn't include a "Target" field (I'm guessing it did in the past). I made the build work substituting "AntIcons.Task", on the assumption the worst effect would be an inappropriate icon appearing in the GUI.
>
> Unfortunately, the plugin produces the NullPointerException show below during IntelliJ startup, before I ever see its GUI. Enclosed are the logs and diagnostic data gathered by IntelliJ.
>
> Thanks for your efforts.
>
> ----Chris
>
>
>
> java.lang.IllegalArgumentException: Argument for @NotNull parameter 'module' of com/intellij/openapi/roots/ModuleRootManager.getInstance must not be null
> 	at com.intellij.openapi.roots.ModuleRootManager.$$$reportNull$$$0(ModuleRootManager.java)
> 	at com.intellij.openapi.roots.ModuleRootManager.getInstance(ModuleRootManager.java)
> 	at com.oracle.plugin.jtreg.components.JTRegFileManagerListener$TestRootManager.rootModel(JTRegFileManagerListener.java:182)
> 	at com.oracle.plugin.jtreg.components.JTRegFileManagerListener.processFileOpened(JTRegFileManagerListener.java:139)
> 	at com.oracle.plugin.jtreg.components.JTRegFileManagerListener.lambda$fileOpened$0(JTRegFileManagerListener.java:113)
> 	at com.intellij.openapi.project.DumbServiceImpl.lambda$smartInvokeLater$8(DumbServiceImpl.java:623)
> 	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
> 	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
> 	at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310)
> 	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80)
> 	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128)
> 	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
> 	at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184)
> 	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
> 	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
> 	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
> 	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
> 	at java.base/java.security.AccessController.doPrivileged(Native Method)
> 	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
> 	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
> 	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974)
> 	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847)
> 	at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
> 	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741)
> 	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
> 	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
> 	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
> 	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
> 	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
> 	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
> 	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
> 	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> 	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
>
>
>
> Chris W. Johnson
> chriswjohnson at mac.com
> http://www.panojohnson.com/
>
>


More information about the ide-support-dev mailing list