tmulle commented on issue #4242:
URL: https://github.com/apache/netbeans/issues/4242#issuecomment-2103274179

   So, I just updated my NB application to `VERSION210` and it's failing 
opening toplevel windows and my file project dialog with a failed to opens 
error even though I know it's there in my `etc/myapp.conf` folder when I run it 
from the command line from the `target` directory.
   
   It also fails when trying to `RUN` the app from the context menu in NetBeans 
21 itself.
   
   I even copied the `netbeans.conf` file from my IDE since it also had the 
same `opens` statements.
   
   Any ideas?
   
   ```
   java.lang.reflect.InaccessibleObjectException: Unable to make field private 
java.security.ProtectionDomain[] java.security.AccessControlContext.context 
accessible: module java.base does not "opens java.security" to unnamed module 
@249590cd
        at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at 
java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
        at 
org.netbeans.core.execution.AccController.getContextField(AccController.java:50)
        at 
org.netbeans.core.execution.AccController.getDomains(AccController.java:58)
        at 
org.netbeans.core.execution.AccController.getIOPermissionCollection(AccController.java:78)
        at 
org.netbeans.core.execution.AccController.getIOPermissionCollection(AccController.java:72)
        at 
org.netbeans.core.execution.SecMan.checkTopLevelWindow(SecMan.java:105)
        at org.netbeans.core.execution.SecMan.checkPermission(SecMan.java:97)
        at 
org.netbeans.TopSecurityManager.checkTopLevelWindow(TopSecurityManager.java:208)
        at 
org.netbeans.TopSecurityManager.checkPermission(TopSecurityManager.java:484)
        at java.desktop/java.awt.Window.setWarningString(Window.java:1408)
        at java.desktop/java.awt.Window.init(Window.java:508)
        at java.desktop/java.awt.Window.<init>(Window.java:453)
        at java.desktop/java.awt.Window.<init>(Window.java:608)
        at java.desktop/javax.swing.JWindow.<init>(JWindow.java:209)
        at 
java.desktop/javax.swing.Popup$HeavyWeightWindow.<init>(Popup.java:238)
        at java.desktop/javax.swing.Popup.createComponent(Popup.java:220)
        at java.desktop/javax.swing.Popup.reset(Popup.java:157)
        at 
java.desktop/javax.swing.PopupFactory$HeavyWeightPopup.getHeavyWeightPopup(PopupFactory.java:409)
        at 
java.desktop/javax.swing.PopupFactory.getHeavyWeightPopup(PopupFactory.java:336)
        at java.desktop/javax.swing.PopupFactory.getPopup(PopupFactory.java:291)
        at 
java.desktop/javax.swing.PopupFactory$1.getHeavyWeightPopup(PopupFactory.java:81)
        at 
java.desktop/com.apple.laf.ScreenPopupFactory.getPopup(ScreenPopupFactory.java:59)
        at 
java.desktop/javax.swing.plaf.PopupMenuUI.getPopup(PopupMenuUI.java:71)
        at java.desktop/javax.swing.JPopupMenu.showPopup(JPopupMenu.java:850)
        at java.desktop/javax.swing.JPopupMenu.setVisible(JPopupMenu.java:803)
        at java.desktop/javax.swing.JPopupMenu.show(JPopupMenu.java:977)
        at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1029)
        at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1046)
        at 
org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1538)
        at 
org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:170)
        at 
org.openide.awt.MouseUtils$PopupMouseAdapter.mousePressed(MouseUtils.java:160)
        at 
java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:288)
        at 
java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:287)
        at 
java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:287)
        at 
java.desktop/java.awt.Component.processMouseEvent(Component.java:6623)
        at 
java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389)
        at java.desktop/java.awt.Component.processEvent(Component.java:6391)
        at java.desktop/java.awt.Container.processEvent(Container.java:2266)
        at 
java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
        at 
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
        at 
java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
        at 
java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4572)
        at 
java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
        at 
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
        at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
        at 
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
   [catch] at 
java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
        at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
        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)
        ```
        
        


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to