[jira] [Comment Edited] (NETBEANS-5722) NPE on "Open Project ..." with CDE/Motif Look and Feel
[ https://issues.apache.org/jira/browse/NETBEANS-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420216#comment-17420216 ] Benjamin Asbach edited comment on NETBEANS-5722 at 9/26/21, 4:20 PM: - Based on my tests the "Open Project..." dialog is not pop up anywhere: * File / Open Project... * Toolbar Icon * Projects View / Right Click / Open Project... Tested with NetBeans 12.5, Java 16, Linux was (Author: asbachb): Based on my tests the "Open Project..." dialog is not pop up anywhere: * File / Open Project... * Toolbar Icon * Projects View / Right Click / Open Project... Tested with NetBeans 12.5 Java 16 > NPE on "Open Project ..." with CDE/Motif Look and Feel > -- > > Key: NETBEANS-5722 > URL: https://issues.apache.org/jira/browse/NETBEANS-5722 > Project: NetBeans > Issue Type: Bug > Components: ide - UI >Affects Versions: 12.4, 12.5 >Reporter: Mario Bruckschwaiger >Priority: Major > Attachments: IDE-Log.txt, UI-Log.txt > > > When selecting "Open Project ..." in the Projects-view with the CDE/Motif > Look and Feel, no dialog opens but the exception happens. No exception on > "New Project ..." or "New File ...", or when using a different Look and Feel. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Comment Edited] (NETBEANS-5722) NPE on "Open Project ..." with CDE/Motif Look and Feel
[ https://issues.apache.org/jira/browse/NETBEANS-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420332#comment-17420332 ] Benjamin Asbach edited comment on NETBEANS-5722 at 9/26/21, 5:19 PM: - I think this is caused due to the usage of *{{javax.swing.plaf.metal.MetalFileChooserUI}}* instead of *{{com.sun.java.swing.plaf.motif.MotifFileChooserUI}}*. was (Author: asbachb): I think this is caused due to the usage of `javax.swing.plaf.metal.MetalFileChooserUI` instead of `com.sun.java.swing.plaf.motif.MotifFileChooserUI`. > NPE on "Open Project ..." with CDE/Motif Look and Feel > -- > > Key: NETBEANS-5722 > URL: https://issues.apache.org/jira/browse/NETBEANS-5722 > Project: NetBeans > Issue Type: Bug > Components: ide - UI >Affects Versions: 12.4, 12.5 >Reporter: Mario Bruckschwaiger >Priority: Major > Attachments: IDE-Log.txt, UI-Log.txt > > > When selecting "Open Project ..." in the Projects-view with the CDE/Motif > Look and Feel, no dialog opens but the exception happens. No exception on > "New Project ..." or "New File ...", or when using a different Look and Feel. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Comment Edited] (NETBEANS-5722) NPE on "Open Project ..." with CDE/Motif Look and Feel
[ https://issues.apache.org/jira/browse/NETBEANS-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420333#comment-17420333 ] Benjamin Asbach edited comment on NETBEANS-5722 at 9/26/21, 5:20 PM: - {{*javax.swing.plaf.metal.MetalFileChooserUI*}} is choosen because of [https://github.com/apache/netbeans/blob/12.5/ide/o.n.swing.dirchooser/src/org/netbeans/swing/dirchooser/DelegatingChooserUI.java#L79] Exception cause {code:java} java.lang.IllegalAccessException: class org.netbeans.swing.dirchooser.DelegatingChooserUI cannot access class com.sun.java.swing.plaf.motif.MotifFileChooserUI (in module java.desktop) because module java.desktop does not export com.sun.java.swing.plaf.motif to unnamed module @54ee70d1 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) at org.netbeans.swing.dirchooser.DelegatingChooserUI.createUI(DelegatingChooserUI.java:75) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at java.base/sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:260) at java.desktop/javax.swing.UIDefaults.getUI(UIDefaults.java:806) at java.desktop/javax.swing.UIManager.getUI(UIManager.java:1068) at java.desktop/javax.swing.JFileChooser.updateUI(JFileChooser.java:1833) at java.desktop/javax.swing.JFileChooser.setup(JFileChooser.java:395) at java.desktop/javax.swing.JFileChooser.(JFileChooser.java:361) at java.desktop/javax.swing.JFileChooser.(JFileChooser.java:308) at org.netbeans.modules.project.ui.ProjectChooserAccessory$ProjectFileChooser.(ProjectChooserAccessory.java:507) at org.netbeans.modules.project.ui.ProjectChooserAccessory$ProjectFileChooser.(ProjectChooserAccessory.java:507) at org.netbeans.modules.project.ui.ProjectChooserAccessory.createProjectChooser(ProjectChooserAccessory.java:442) at org.netbeans.modules.project.ui.actions.OpenProject.actionPerformed(OpenProject.java:61) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:298) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6617) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342) at java.desktop/java.awt.Component.processEvent(Component.java:6382) at java.desktop/java.awt.Container.processEvent(Container.java:2264) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4993) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2322) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4825) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4934) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4563) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4504) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2308) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4825) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurit
[jira] [Comment Edited] (NETBEANS-5722) NPE on "Open Project ..." with CDE/Motif Look and Feel
[ https://issues.apache.org/jira/browse/NETBEANS-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420517#comment-17420517 ] Mario Bruckschwaiger edited comment on NETBEANS-5722 at 9/27/21, 7:27 AM: -- [~asbachb] you are right, it is JDK related. Works also for me with JDK11. Adding com.sun.java.swing.plaf.motif to exported modules fixes it for me for JDK17. Thanks. was (Author: mario.bruckschwaiger): [~asbachb] you are right, it is JDK related. Works also for me with JDK11. Adding com.sun.java.swing.plaf.motif to exported modules should fix it. Thanks. > NPE on "Open Project ..." with CDE/Motif Look and Feel > -- > > Key: NETBEANS-5722 > URL: https://issues.apache.org/jira/browse/NETBEANS-5722 > Project: NetBeans > Issue Type: Bug > Components: ide - UI >Affects Versions: 12.4, 12.5 >Reporter: Mario Bruckschwaiger >Assignee: Benjamin Asbach >Priority: Major > Labels: pull-request-available > Attachments: IDE-Log.txt, UI-Log.txt > > Time Spent: 10m > Remaining Estimate: 0h > > When selecting "Open Project ..." in the Projects-view with the CDE/Motif > Look and Feel, no dialog opens but the exception happens. No exception on > "New Project ..." or "New File ...", or when using a different Look and Feel. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists