[jira] [Commented] (NETBEANS-5598) IllegalAccessException on running Netbeans Platform Application in JDK 16

2021-04-21 Thread Marco Robiati (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326516#comment-17326516
 ] 

Marco Robiati commented on NETBEANS-5598:
-

What PR solved this?

> IllegalAccessException on running Netbeans Platform Application in JDK 16
> -
>
> Key: NETBEANS-5598
> URL: https://issues.apache.org/jira/browse/NETBEANS-5598
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.3, 12.4
>Reporter: Sandeep Mishra
>Priority: Major
>
> Create or Open an existing Netbeans Platform Application.
> Run the application with Java Platform set to JDK 16.
> The following exception occurs:
> {code:java}
> java.lang.IllegalAccessException: class org.netbeans.Module cannot access a 
> member of class java.lang.ClassLoader (in module java.base) with modifiers 
> "protected"
> at 
> java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:385)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:687)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:559) [catch] at 
> org.netbeans.Module.findResources(Module.java:571) at 
> org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605) at 
> org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332) at 
> org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77) at 
> org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322) at 
> org.openide.filesystems.FileUtil$2.run(FileUtil.java:413) at 
> org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:102) 
> at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:494) at 
> org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:397) at 
> org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:417) at 
> org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:319) at 
> org.netbeans.ModuleManager.enable(ModuleManager.java:1453) at 
> org.netbeans.ModuleManager.enable(ModuleManager.java:1254) at 
> org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315) at 
> org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251) at 
> org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298) at 
> org.netbeans.core.startup.Main.getModuleSystem(Main.java:156) at 
> org.netbeans.core.startup.Main.getModuleSystem(Main.java:125) at 
> org.netbeans.core.startup.Main.start(Main.java:282) at 
> org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98) at 
> java.base/java.lang.Thread.run(Thread.java:831) {code}
> This is happening because access to JDK Internals has been disallowed from 
> JDK 16 onwards.
> https://openjdk.java.net/jeps/396
> It used to show a warning in earlier JDK versions.
> There are few other places where the Netbeans Platform is hacking into JDK 
> internals:
>  
> {code:java}
> WARNING: Illegal reflective access by 
>  org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView 
>  
> (jar:file:/Users/albatem/netbeans-12.3/ide/modules/org-netbeans-spi-debugger-ui.jar!/)
>  
>  to field javax.swing.tree.FixedHeightLayoutCache.info
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.clearSelectionCache(DebugTreeView.java:150)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.resetSelection(DebugTreeView.java:140)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent.releaseTreeView(DebuggingViewComponent.java:661)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent.access$600(DebuggingViewComponent.java:104)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent$4.run(DebuggingViewComponent.java:423)
>  
>  WARNING: Illegal reflective access by org.openide.text.QuietEditorPane$1 
>  
> (jar:file:/Users/albatem/netbeans-12.3/platform/modules/org-openide-text.jar!/)
>  
>  to field sun.awt.im.InputContext.inputMethodWindowContext
>   at org.openide.text.QuietEditorPane$1.run(QuietEditorPane.java:268)
>   at 
>  org.openide.text.QuietEditorPane.removeNotify(QuietEditorPane.java:308)
>  
>  
>  WARNING: Illegal reflective access by 
>  org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView 
>  
> (jar:file:/Users/albatem/netbeans-12.3/ide/modules/org-netbeans-spi-debugger-ui.jar!/)
>  
>  to field javax.swing.tree.FixedHeightLayoutCache.info
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.clearSelectionCache(DebugTreeView.java:150)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.resetSelection(DebugTreeView.java:140)
>   at 
>  
> 

[jira] [Commented] (NETBEANS-5598) IllegalAccessException on running Netbeans Platform Application in JDK 16

2021-04-20 Thread Jaroslav Tulach (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17325865#comment-17325865
 ] 

Jaroslav Tulach commented on NETBEANS-5598:
---

It would be great to have a .travis build testing on JDK16 - looks like the 
16th JDK is significantly different to previous ones and many unit tests are 
likely to fail.

> IllegalAccessException on running Netbeans Platform Application in JDK 16
> -
>
> Key: NETBEANS-5598
> URL: https://issues.apache.org/jira/browse/NETBEANS-5598
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.3, 12.4
>Reporter: Sandeep Mishra
>Priority: Major
>
> Create or Open an existing Netbeans Platform Application.
> Run the application with Java Platform set to JDK 16.
> The following exception occurs:
> {code:java}
> java.lang.IllegalAccessException: class org.netbeans.Module cannot access a 
> member of class java.lang.ClassLoader (in module java.base) with modifiers 
> "protected"
> at 
> java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:385)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:687)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:559) [catch] at 
> org.netbeans.Module.findResources(Module.java:571) at 
> org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605) at 
> org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332) at 
> org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77) at 
> org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322) at 
> org.openide.filesystems.FileUtil$2.run(FileUtil.java:413) at 
> org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:102) 
> at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:494) at 
> org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:397) at 
> org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:417) at 
> org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:319) at 
> org.netbeans.ModuleManager.enable(ModuleManager.java:1453) at 
> org.netbeans.ModuleManager.enable(ModuleManager.java:1254) at 
> org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315) at 
> org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251) at 
> org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298) at 
> org.netbeans.core.startup.Main.getModuleSystem(Main.java:156) at 
> org.netbeans.core.startup.Main.getModuleSystem(Main.java:125) at 
> org.netbeans.core.startup.Main.start(Main.java:282) at 
> org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98) at 
> java.base/java.lang.Thread.run(Thread.java:831) {code}
> This is happening because access to JDK Internals has been disallowed from 
> JDK 16 onwards.
> https://openjdk.java.net/jeps/396
> It used to show a warning in earlier JDK versions.
> There are few other places where the Netbeans Platform is hacking into JDK 
> internals:
>  
> {code:java}
> WARNING: Illegal reflective access by 
>  org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView 
>  
> (jar:file:/Users/albatem/netbeans-12.3/ide/modules/org-netbeans-spi-debugger-ui.jar!/)
>  
>  to field javax.swing.tree.FixedHeightLayoutCache.info
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.clearSelectionCache(DebugTreeView.java:150)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.resetSelection(DebugTreeView.java:140)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent.releaseTreeView(DebuggingViewComponent.java:661)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent.access$600(DebuggingViewComponent.java:104)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent$4.run(DebuggingViewComponent.java:423)
>  
>  WARNING: Illegal reflective access by org.openide.text.QuietEditorPane$1 
>  
> (jar:file:/Users/albatem/netbeans-12.3/platform/modules/org-openide-text.jar!/)
>  
>  to field sun.awt.im.InputContext.inputMethodWindowContext
>   at org.openide.text.QuietEditorPane$1.run(QuietEditorPane.java:268)
>   at 
>  org.openide.text.QuietEditorPane.removeNotify(QuietEditorPane.java:308)
>  
>  
>  WARNING: Illegal reflective access by 
>  org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView 
>  
> (jar:file:/Users/albatem/netbeans-12.3/ide/modules/org-netbeans-spi-debugger-ui.jar!/)
>  
>  to field javax.swing.tree.FixedHeightLayoutCache.info
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.clearSelectionCache(DebugTreeView.java:150)
>   at 
>  
> 

[jira] [Commented] (NETBEANS-5598) IllegalAccessException on running Netbeans Platform Application in JDK 16

2021-04-20 Thread Svatopluk Dedic (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17325789#comment-17325789
 ] 

Svatopluk Dedic commented on NETBEANS-5598:
---

The application lacks appropriate *add-opens* etc in its etc/???.conf launcher 
config. See NETBEANS-5594, similar issue. Harness could eventually support some 
generation (?) of module system directive based on used classes  + 
synchronize with NB itself on the minimum required directives for the platform.

 

> IllegalAccessException on running Netbeans Platform Application in JDK 16
> -
>
> Key: NETBEANS-5598
> URL: https://issues.apache.org/jira/browse/NETBEANS-5598
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.3, 12.4
>Reporter: Sandeep Mishra
>Priority: Major
>
> Create or Open an existing Netbeans Platform Application.
> Run the application with Java Platform set to JDK 16.
> The following exception occurs:
> {code:java}
> java.lang.IllegalAccessException: class org.netbeans.Module cannot access a 
> member of class java.lang.ClassLoader (in module java.base) with modifiers 
> "protected"
> at 
> java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:385)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:687)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:559) [catch] at 
> org.netbeans.Module.findResources(Module.java:571) at 
> org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605) at 
> org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332) at 
> org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77) at 
> org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322) at 
> org.openide.filesystems.FileUtil$2.run(FileUtil.java:413) at 
> org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:102) 
> at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:494) at 
> org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:397) at 
> org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:417) at 
> org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:319) at 
> org.netbeans.ModuleManager.enable(ModuleManager.java:1453) at 
> org.netbeans.ModuleManager.enable(ModuleManager.java:1254) at 
> org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315) at 
> org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251) at 
> org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298) at 
> org.netbeans.core.startup.Main.getModuleSystem(Main.java:156) at 
> org.netbeans.core.startup.Main.getModuleSystem(Main.java:125) at 
> org.netbeans.core.startup.Main.start(Main.java:282) at 
> org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98) at 
> java.base/java.lang.Thread.run(Thread.java:831) {code}
> This is happening because access to JDK Internals has been disallowed from 
> JDK 16 onwards.
> https://openjdk.java.net/jeps/396
> It used to show a warning in earlier JDK versions.
> There are few other places where the Netbeans Platform is hacking into JDK 
> internals:
>  
> {code:java}
> WARNING: Illegal reflective access by 
>  org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView 
>  
> (jar:file:/Users/albatem/netbeans-12.3/ide/modules/org-netbeans-spi-debugger-ui.jar!/)
>  
>  to field javax.swing.tree.FixedHeightLayoutCache.info
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.clearSelectionCache(DebugTreeView.java:150)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.resetSelection(DebugTreeView.java:140)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent.releaseTreeView(DebuggingViewComponent.java:661)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent.access$600(DebuggingViewComponent.java:104)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent$4.run(DebuggingViewComponent.java:423)
>  
>  WARNING: Illegal reflective access by org.openide.text.QuietEditorPane$1 
>  
> (jar:file:/Users/albatem/netbeans-12.3/platform/modules/org-openide-text.jar!/)
>  
>  to field sun.awt.im.InputContext.inputMethodWindowContext
>   at org.openide.text.QuietEditorPane$1.run(QuietEditorPane.java:268)
>   at 
>  org.openide.text.QuietEditorPane.removeNotify(QuietEditorPane.java:308)
>  
>  
>  WARNING: Illegal reflective access by 
>  org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView 
>  
> (jar:file:/Users/albatem/netbeans-12.3/ide/modules/org-netbeans-spi-debugger-ui.jar!/)
>  
>  to field javax.swing.tree.FixedHeightLayoutCache.info
>   at 
>  
> 

[jira] [Commented] (NETBEANS-5598) IllegalAccessException on running Netbeans Platform Application in JDK 16

2021-04-19 Thread Sandeep Mishra (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17324920#comment-17324920
 ] 

Sandeep Mishra commented on NETBEANS-5598:
--

Tested on 12.4-beta 1

> IllegalAccessException on running Netbeans Platform Application in JDK 16
> -
>
> Key: NETBEANS-5598
> URL: https://issues.apache.org/jira/browse/NETBEANS-5598
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.3, 12.4
>Reporter: Sandeep Mishra
>Priority: Major
> Attachments: image-2021-04-19-14-43-21-207.png
>
>
> Create or Open an existing Netbeans Platform Application.
> Run the application with Java Platform set to JDK 16.
> The following exception occurs:
> {code:java}
> java.lang.IllegalAccessException: class org.netbeans.Module cannot access a 
> member of class java.lang.ClassLoader (in module java.base) with modifiers 
> "protected"
> at 
> java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:385)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:687)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:559) [catch] at 
> org.netbeans.Module.findResources(Module.java:571) at 
> org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605) at 
> org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332) at 
> org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77) at 
> org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322) at 
> org.openide.filesystems.FileUtil$2.run(FileUtil.java:413) at 
> org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:102) 
> at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:494) at 
> org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:397) at 
> org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:417) at 
> org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:319) at 
> org.netbeans.ModuleManager.enable(ModuleManager.java:1453) at 
> org.netbeans.ModuleManager.enable(ModuleManager.java:1254) at 
> org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315) at 
> org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251) at 
> org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298) at 
> org.netbeans.core.startup.Main.getModuleSystem(Main.java:156) at 
> org.netbeans.core.startup.Main.getModuleSystem(Main.java:125) at 
> org.netbeans.core.startup.Main.start(Main.java:282) at 
> org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98) at 
> java.base/java.lang.Thread.run(Thread.java:831) {code}
> This is happening because access to JDK Internals has been disallowed from 
> JDK 16 onwards.
> https://openjdk.java.net/jeps/396
> It used to show a warning in earlier JDK versions.
> There are few other places where the Netbeans Platform is hacking into JDK 
> internals:
>  
> {code:java}
> WARNING: Illegal reflective access by 
>  org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView 
>  
> (jar:file:/Users/albatem/netbeans-12.3/ide/modules/org-netbeans-spi-debugger-ui.jar!/)
>  
>  to field javax.swing.tree.FixedHeightLayoutCache.info
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.clearSelectionCache(DebugTreeView.java:150)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.resetSelection(DebugTreeView.java:140)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent.releaseTreeView(DebuggingViewComponent.java:661)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent.access$600(DebuggingViewComponent.java:104)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent$4.run(DebuggingViewComponent.java:423)
>  
>  WARNING: Illegal reflective access by org.openide.text.QuietEditorPane$1 
>  
> (jar:file:/Users/albatem/netbeans-12.3/platform/modules/org-openide-text.jar!/)
>  
>  to field sun.awt.im.InputContext.inputMethodWindowContext
>   at org.openide.text.QuietEditorPane$1.run(QuietEditorPane.java:268)
>   at 
>  org.openide.text.QuietEditorPane.removeNotify(QuietEditorPane.java:308)
>  
>  
>  WARNING: Illegal reflective access by 
>  org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView 
>  
> (jar:file:/Users/albatem/netbeans-12.3/ide/modules/org-netbeans-spi-debugger-ui.jar!/)
>  
>  to field javax.swing.tree.FixedHeightLayoutCache.info
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.clearSelectionCache(DebugTreeView.java:150)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.resetSelection(DebugTreeView.java:140)
>   at 
>  
> 

[jira] [Commented] (NETBEANS-5598) IllegalAccessException on running Netbeans Platform Application in JDK 16

2021-04-19 Thread Geertjan Wielenga (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17324916#comment-17324916
 ] 

Geertjan Wielenga commented on NETBEANS-5598:
-

12.3 doesn't support JDK 16 and 12.4 doesn't exist.

> IllegalAccessException on running Netbeans Platform Application in JDK 16
> -
>
> Key: NETBEANS-5598
> URL: https://issues.apache.org/jira/browse/NETBEANS-5598
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.3, 12.4
>Reporter: Sandeep Mishra
>Priority: Major
> Attachments: image-2021-04-19-14-43-21-207.png
>
>
> Create or Open an existing Netbeans Platform Application.
> Run the application with Java Platform set to JDK 16.
> The following exception occurs:
> {code:java}
> java.lang.IllegalAccessException: class org.netbeans.Module cannot access a 
> member of class java.lang.ClassLoader (in module java.base) with modifiers 
> "protected"
> at 
> java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:385)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:687)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:559) [catch] at 
> org.netbeans.Module.findResources(Module.java:571) at 
> org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605) at 
> org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332) at 
> org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77) at 
> org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322) at 
> org.openide.filesystems.FileUtil$2.run(FileUtil.java:413) at 
> org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:102) 
> at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:494) at 
> org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:397) at 
> org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:417) at 
> org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:319) at 
> org.netbeans.ModuleManager.enable(ModuleManager.java:1453) at 
> org.netbeans.ModuleManager.enable(ModuleManager.java:1254) at 
> org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315) at 
> org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251) at 
> org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298) at 
> org.netbeans.core.startup.Main.getModuleSystem(Main.java:156) at 
> org.netbeans.core.startup.Main.getModuleSystem(Main.java:125) at 
> org.netbeans.core.startup.Main.start(Main.java:282) at 
> org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98) at 
> java.base/java.lang.Thread.run(Thread.java:831) {code}
> This is happening because access to JDK Internals has been disallowed from 
> JDK 16 onwards.
> https://openjdk.java.net/jeps/396
> It used to show a warning in earlier JDK versions.
> There are few other places where the Netbeans Platform is hacking into JDK 
> internals:
>  
> {code:java}
> WARNING: Illegal reflective access by 
>  org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView 
>  
> (jar:file:/Users/albatem/netbeans-12.3/ide/modules/org-netbeans-spi-debugger-ui.jar!/)
>  
>  to field javax.swing.tree.FixedHeightLayoutCache.info
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.clearSelectionCache(DebugTreeView.java:150)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.resetSelection(DebugTreeView.java:140)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent.releaseTreeView(DebuggingViewComponent.java:661)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent.access$600(DebuggingViewComponent.java:104)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebuggingViewComponent$4.run(DebuggingViewComponent.java:423)
>  
>  WARNING: Illegal reflective access by org.openide.text.QuietEditorPane$1 
>  
> (jar:file:/Users/albatem/netbeans-12.3/platform/modules/org-openide-text.jar!/)
>  
>  to field sun.awt.im.InputContext.inputMethodWindowContext
>   at org.openide.text.QuietEditorPane$1.run(QuietEditorPane.java:268)
>   at 
>  org.openide.text.QuietEditorPane.removeNotify(QuietEditorPane.java:308)
>  
>  
>  WARNING: Illegal reflective access by 
>  org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView 
>  
> (jar:file:/Users/albatem/netbeans-12.3/ide/modules/org-netbeans-spi-debugger-ui.jar!/)
>  
>  to field javax.swing.tree.FixedHeightLayoutCache.info
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.clearSelectionCache(DebugTreeView.java:150)
>   at 
>  
> org.netbeans.modules.debugger.ui.views.debugging.DebugTreeView.resetSelection(DebugTreeView.java:140)
>