[
https://issues.apache.org/jira/browse/NETBEANS-6416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
anton updated NETBEANS-6416:
----------------------------
Description:
We're currently trying to migrate a Netbeans platform project from java 1.8 to
17, and are running into multiple Netbeans related problems. When launching the
application, the very first error that is occurring is the following:
{code:java}
SEVERE: No way to find original stream handler for jar protocol
java.lang.reflect.InaccessibleObjectException: Unable to make field transient
java.net.URLStreamHandler java.net.URL.handler accessible: module java.base
does not "opens java.net" to unnamed module @448139f0
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.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:59)
at org.netbeans.JarClassLoader.<clinit>(JarClassLoader.java:117)
at org.netbeans.MainImpl.execute(MainImpl.java:153)
at org.netbeans.MainImpl.main(MainImpl.java:60)
at org.netbeans.Main.main(Main.java:58){code}
{{{{}}{}}}I've tried adding {-}J{-}-add-opens java.base/java.net=ALL-UNNAMED to
the maven-compiler-plugin as a compiler argument in multiple modules to try and
fix the problem, but it doesn't seem to work.
was:
We're currently trying to migrate a Netbeans platform project from java 1.8 to
17, and are running into multiple Netbeans related problems. When launching the
application, the very first error that is occurring is the following:
{code:java}
SEVERE: No way to find original stream handler for jar protocol
java.lang.reflect.InaccessibleObjectException: Unable to make field transient
java.net.URLStreamHandler java.net.URL.handler accessible: module java.base
does not "opens java.net" to unnamed module @448139f0
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.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:59)
at org.netbeans.JarClassLoader.<clinit>(JarClassLoader.java:117)
at org.netbeans.MainImpl.execute(MainImpl.java:153)
at org.netbeans.MainImpl.main(MainImpl.java:60)
at org.netbeans.Main.main(Main.java:58){code}
{{{}{}}}I've tried adding -J--add-opens java.base/java.net=ALL-UNNAMED to the
maven-compiler-plugin in multiple modules to try and fix the problem, but it
doesn't seem to work.
> No way to find original stream handler for jar protocol
> -------------------------------------------------------
>
> Key: NETBEANS-6416
> URL: https://issues.apache.org/jira/browse/NETBEANS-6416
> Project: NetBeans
> Issue Type: Bug
> Components: platform - JDK Problems
> Affects Versions: 12.6
> Environment: Windows 10,
> Openjdk 17,
> Netbeans 12.6
> Netbeans API versions: RELEASE126
>
> Reporter: anton
> Priority: Major
>
> We're currently trying to migrate a Netbeans platform project from java 1.8
> to 17, and are running into multiple Netbeans related problems. When
> launching the application, the very first error that is occurring is the
> following:
> {code:java}
> SEVERE: No way to find original stream handler for jar protocol
> java.lang.reflect.InaccessibleObjectException: Unable to make field transient
> java.net.URLStreamHandler java.net.URL.handler accessible: module java.base
> does not "opens java.net" to unnamed module @448139f0
> 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.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:59)
> at org.netbeans.JarClassLoader.<clinit>(JarClassLoader.java:117)
> at org.netbeans.MainImpl.execute(MainImpl.java:153)
> at org.netbeans.MainImpl.main(MainImpl.java:60)
> at org.netbeans.Main.main(Main.java:58){code}
> {{{{}}{}}}I've tried adding {-}J{-}-add-opens java.base/java.net=ALL-UNNAMED
> to the maven-compiler-plugin as a compiler argument in multiple modules to
> try and fix the problem, but it doesn't seem to work.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
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