[jira] [Commented] (NETBEANS-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco commented on NETBEANS-5594:
---

I'm having the same issues with the final 12.4 version on windows 10 running 
openjdk 16.0.1 and using RELEASE 123 (any release is the same).

Actually the default app test fauls. If I disable the thes and run/debug, the 
app is ot able to run properly   

 !netbeans_error_01.PNG! 

 !netbeans_error_02.PNG! 

 !netbeans_error_03.PNG! 

 [^netbeans_error.txt] 

> 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, 
> netbeans_error.txt, netbeans_error.txt, netbeans_error_01.PNG, 
> netbeans_error_01.PNG, netbeans_error_02.PNG, netbeans_error_02.PNG, 
> netbeans_error_03.PNG
>
>
> 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



[jira] [Commented] (NETBEANS-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-04-27 Thread Svatopluk Dedic (Jira)


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

Svatopluk Dedic commented on NETBEANS-5594:
---

This was fixed in master:
 * upgraded Felix library, as 6.3 had a bug in JDK16 environment. Not sure 
where it was exactly broken, but its proxied URLStreamHandlerFactory threw 
MalformedURLs for http(s).
 * synced add-opens in harness with the ones in the NetBeans ide build

Fixes are in 12.4 RC1, will be part of 12.4 release.

> 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



[jira] [Commented] (NETBEANS-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-04-27 Thread Sebastian Jaenicke (Jira)


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

Sebastian Jaenicke commented on NETBEANS-5594:
--

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 
-J--add-opens=java.base/sun.security.ssl=ALL-UNNAMED 
-J--add-opens=java.base/java.net=ALL-UNNAMED 
-J--add-opens=java.base/java.lang.ref=ALL-UNNAMED 
-J--add-opens=java.base/java.lang=ALL-UNNAMED 
-J--add-opens=java.base/java.security=ALL-UNNAMED 
-J--add-opens=java.base/java.util=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing=ALL-UNNAMED 
-J--add-opens=java.desktop/java.awt=ALL-UNNAMED 
-J--add-opens=java.desktop/java.awt.event=ALL-UNNAMED 
-J--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED 
-J--add-opens=jdk.jshell/jdk.jshell=ALL-UNNAMED -J--add-modules=jdk.jshell 
-J--add-exports=java.desktop/sun.awt=ALL-UNNAMED 
-J--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED 
-J--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED 
-J--add-exports=java.desktop/sun.swing=ALL-UNNAMED 
-J--add-exports=java.desktop/sun.awt.im=ALL-UNNAMED 
-J--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED 
-J--add-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. So, how do I get access

to sun.net.www.protocol?

 

> 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



[jira] [Commented] (NETBEANS-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-04-23 Thread Jan Lahoda (Jira)


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

Jan Lahoda commented on NETBEANS-5594:
--

I suspect we don't need the (pseudo-)illegal access here. I am doing some 
experiments, we will see.

> 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
>
>
> 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



[jira] [Commented] (NETBEANS-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-04-22 Thread Sebastian Jaenicke (Jira)


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

Sebastian Jaenicke commented on NETBEANS-5594:
--

Also, whenever the application is started, the following files are created in 
the current directory:

 

-rw-rw-r-- 1 sj sj 52 Apr 20 11:08 all-clusters.dat
-rw-rw-r-- 1 sj sj 8824 Apr 20 11:08 all-files.dat
-rw-rw-r-- 1 sj sj 61173 Apr 20 11:08 all-installer.dat
-rw-rw-r-- 1 sj sj 92643 Apr 20 11:08 all-layers.dat
-rw-rw-r-- 1 sj sj 0 Apr 20 11:08 all-local-layers.dat
-rw-rw-r-- 1 sj sj 236222 Apr 20 11:08 all-manifests.dat
-rw-rw-r-- 1 sj sj 135354 Apr 20 11:08 all-modules.dat
-rw-rw-r-- 1 sj sj 12170549 Apr 20 11:08 all-resources.dat
drwxrwxr-x 2 sj sj 4096 Apr 22 11:58 lastModified
-rw-rw-r-- 1 sj sj 7290 Apr 20 11:08 localeVariants
drwxrwxr-x 158 sj sj 4096 Apr 22 11:59 netigso
-rw-rw-r-- 1 sj sj 38862 Apr 20 11:08 netigso-bundles
-rw-rw-r-- 1 sj sj 1925 Apr 20 11:08 package-attrs.dat

 

Might this be the cause?

> 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
>
>
> 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



[jira] [Commented] (NETBEANS-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-04-20 Thread Svatopluk Dedic (Jira)


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

Svatopluk Dedic commented on NETBEANS-5594:
---

You must change your {{etc/.conf}} to add relevant 
*add-opens* for JDK11+. Refer to *etc/netbeans.conf* in NetBeans 12.4 
installation.

> 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
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2
>
>
> 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



[jira] [Commented] (NETBEANS-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-04-20 Thread Sebastian Jaenicke (Jira)


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

Sebastian Jaenicke commented on NETBEANS-5594:
--

Netbeans IDE (12.3) runs fine on JDK 8 and 16.

 

Regarding the NBP app on JDK 8 - different set of exception, still related to 
Window System, it seems - see attached log.[^jdk8-messages.log]

> 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
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2
>
>
> 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



[jira] [Commented] (NETBEANS-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-04-19 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga commented on NETBEANS-5594:
-

Try JDK 8, to see if that works.

If NetBeans IDE itself (which is also a NetBeans Platform application) runs 
without a problem for you, then that's also interesting info.

> 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
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: messages.log2
>
>
> 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



[jira] [Commented] (NETBEANS-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-04-19 Thread Sebastian Jaenicke (Jira)


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

Sebastian Jaenicke commented on NETBEANS-5594:
--

Same issue with JDK 15.0.2

> 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
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: messages.log2
>
>
> 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