[ https://issues.apache.org/jira/browse/NETBEANS-5594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17333262#comment-17333262 ]
Sebastian Jaenicke edited comment on NETBEANS-5594 at 4/27/21, 2:31 PM: ------------------------------------------------------------------------ Oh well, with default_options="-branding mgx_gui -J-Xms512m -J-Xmx2048m -J-Dfelix.log.level=OFF -J-Dorg.netbeans.core.netigso.Netigso.level=OFF -J-XX:+IgnoreUnrecognizedVMOptions -Jadd-opens=java.base/sun.security.ssl=ALL-UNNAMED -Jadd-opens=java.base/java.net=ALL-UNNAMED -Jadd-opens=java.base/java.lang.ref=ALL-UNNAMED -Jadd-opens=java.base/java.lang=ALL-UNNAMED -Jadd-opens=java.base/java.security=ALL-UNNAMED -Jadd-opens=java.base/java.util=ALL-UNNAMED -Jadd-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED -Jadd-opens=java.desktop/javax.swing.text=ALL-UNNAMED -Jadd-opens=java.desktop/javax.swing=ALL-UNNAMED -Jadd-opens=java.desktop/java.awt=ALL-UNNAMED -Jadd-opens=java.desktop/java.awt.event=ALL-UNNAMED -Jadd-opens=java.prefs/java.util.prefs=ALL-UNNAMED -Jadd-opens=jdk.jshell/jdk.jshell=ALL-UNNAMED -Jadd-modules=jdk.jshell -Jadd-exports=java.desktop/sun.awt=ALL-UNNAMED -Jadd-exports=java.desktop/java.awt.peer=ALL-UNNAMED -Jadd-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED -Jadd-exports=java.desktop/sun.swing=ALL-UNNAMED -Jadd-exports=java.desktop/sun.awt.im=ALL-UNNAMED -Jadd-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED -Jadd-exports=java.management/sun.management=ALL-UNNAMED -J-add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED" , I now consistently get a MalformedURLException on both Linux and macOS (both JDK16) failing to recognize http and https as valid protocols. [^messages3.log] The Felix FAQ has an entry regarding unrecognized protocols for 'Non-Sun JREs' which doesn't seem to apply here. According to the Java documentation at [https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/net/URL.html |https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/net/URL.html] Protocol handlers for the following protocols are guaranteed to exist on the search path: * {{http}} * {{https}} * {{file}} * {{jar}} So, what am I missing here? was (Author: sjaenick): Oh well, with default_options="-branding mgx_gui -J-Xms512m -J-Xmx2048m -J-Dfelix.log.level=OFF -J-Dorg.netbeans.core.netigso.Netigso.level=OFF -J-XX:+IgnoreUnrecognizedVMOptions -Jadd-opens=java.base/sun.security.ssl=ALL-UNNAMED -Jadd-opens=java.base/java.net=ALL-UNNAMED -Jadd-opens=java.base/java.lang.ref=ALL-UNNAMED -Jadd-opens=java.base/java.lang=ALL-UNNAMED -Jadd-opens=java.base/java.security=ALL-UNNAMED -Jadd-opens=java.base/java.util=ALL-UNNAMED -Jadd-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED -Jadd-opens=java.desktop/javax.swing.text=ALL-UNNAMED -Jadd-opens=java.desktop/javax.swing=ALL-UNNAMED -Jadd-opens=java.desktop/java.awt=ALL-UNNAMED -Jadd-opens=java.desktop/java.awt.event=ALL-UNNAMED -Jadd-opens=java.prefs/java.util.prefs=ALL-UNNAMED -Jadd-opens=jdk.jshell/jdk.jshell=ALL-UNNAMED -Jadd-modules=jdk.jshell -Jadd-exports=java.desktop/sun.awt=ALL-UNNAMED -Jadd-exports=java.desktop/java.awt.peer=ALL-UNNAMED -Jadd-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED -Jadd-exports=java.desktop/sun.swing=ALL-UNNAMED -Jadd-exports=java.desktop/sun.awt.im=ALL-UNNAMED -Jadd-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED -Jadd-exports=java.management/sun.management=ALL-UNNAMED -J-add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED" , I now consistently get a MalformedURLException on both Linux and macOS (both JDK16) failing to recognize http and https as valid protocols. [^messages3.log] The Felix FAQ has an entry regarding unrecognized protocols for 'Non-Sun JREs' which doesn't seem to apply here. According to the Java documentation at [https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/net/URL.html |https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/net/URL.html] Protocol handlers for the following protocols are guaranteed to exist on the search path: * {{http}} * {{https}} * {{file}} * {{jar}} > NBP12.3 application on JDK16/mac OS: Cannot load even default layout > -------------------------------------------------------------------- > > Key: NETBEANS-5594 > URL: https://issues.apache.org/jira/browse/NETBEANS-5594 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Harness > Affects Versions: 12.3 > Reporter: Sebastian Jaenicke > Priority: Critical > Attachments: jdk8-messages.log, messages.log2, messages3.log > > > NBP application using 12.3, JDK 16, runs fine on Linux. > On mac OS (Big Sur), I first got lots of relection-related exceptions from > NbInstaller, e.g.: > java.lang.reflect.InaccessibleObjectException: Unable to make protected > java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) > throws java.io.IOException accessible: module java.base does not "opens > java.lang" to unnamed module @4ccc0db7 > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357) > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) > at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) > at java.base/java.lang.reflect.Method.setAccessible(Method.java:193) > [catch] at org.netbeans.Module.findResources(Module.java:567) > 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) > > so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf. > Now, after completely removing the user_dir, I get > * a popup warning: 'Cannot load even default layout, using internally > predefined configuration.' > * a NullPointerException related to FileObject.isValid() > UI window itself is opened, but remains empty. I'm attaching the full > messages.log file, > any ideas would be greatly appreciated. > -- 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