You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On starting any cloud service, like eureka the spring boot startup failed with the following error: opens java.net to unnamed module. Started the eureka with the following cmd: spring cloud eureka.
Specs:
Spring CLI v2.6.3 (installed via brew)
Spring Cloud CLI v2.2.4.RELEASE (tried different versions)
Running on a MacBook Pro m1 pro
openjdk version "11.0.12" 2021-07-20
2022-01-28 15:44:58.070 ERROR 22915 --- [ main] o.s.c.deployer.thin.ThinJarAppWrapper : Cannot deploy org.springframework.cloud.launcher:spring-cloud-launcher-eureka:jar:2.2.4.RELEASE
java.lang.reflect.InaccessibleObjectException: Unable to make field private static volatile java.net.URLStreamHandlerFactory java.net.URL.factory accessible: module java.base does not "opens java.net" to unnamed module @4a68135e
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) ~[na:na]
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) ~[na:na]
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) ~[na:na]
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) ~[na:na]
at org.springframework.util.ReflectionUtils.makeAccessible(ReflectionUtils.java:782) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]
at org.springframework.cloud.deployer.thin.ThinJarAppWrapper.setField(ThinJarAppWrapper.java:164) ~[spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na]
at org.springframework.cloud.deployer.thin.ThinJarAppWrapper.reset(ThinJarAppWrapper.java:158) ~[spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na]
at org.springframework.cloud.deployer.thin.ThinJarAppWrapper.createContextRunnerClass(ThinJarAppWrapper.java:147) ~[spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na]
at org.springframework.cloud.deployer.thin.ThinJarAppWrapper.run(ThinJarAppWrapper.java:88) ~[spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na]
at org.springframework.cloud.deployer.thin.AbstractThinJarSupport.deploy(AbstractThinJarSupport.java:60) ~[spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na]
at org.springframework.cloud.deployer.thin.ThinJarAppDeployer.deploy(ThinJarAppDeployer.java:63) ~[spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na]
at org.springframework.cloud.launcher.deployer.Deployer.deployInternal(Deployer.java:203) ~[spring-cloud-launcher-deployer-2.2.4.RELEASE.jar:2.2.4.RELEASE]
at org.springframework.cloud.launcher.deployer.Deployer.deploy(Deployer.java:108) ~[spring-cloud-launcher-deployer-2.2.4.RELEASE.jar:2.2.4.RELEASE]
at org.springframework.cloud.launcher.deployer.DeployerApplication.launch(DeployerApplication.java:140) ~[spring-cloud-launcher-deployer-2.2.4.RELEASE.jar:2.2.4.RELEASE]
at org.springframework.cloud.launcher.deployer.DeployerApplication.run(DeployerApplication.java:68) ~[spring-cloud-launcher-deployer-2.2.4.RELEASE.jar:2.2.4.RELEASE]
at org.springframework.cloud.launcher.deployer.DeployerApplication.main(DeployerApplication.java:58) ~[spring-cloud-launcher-deployer-2.2.4.RELEASE.jar:2.2.4.RELEASE]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) ~[spring-boot-loader-2.1.9.RELEASE.jar:2.1.9.RELEASE]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) ~[spring-boot-loader-2.1.9.RELEASE.jar:2.1.9.RELEASE]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) ~[spring-boot-loader-2.1.9.RELEASE.jar:2.1.9.RELEASE]
at org.springframework.boot.loader.thin.ThinJarLauncher.launch(ThinJarLauncher.java:193) ~[spring-boot-thin-launcher-1.0.22.RELEASE.jar:1.0.22.RELEASE]
at org.springframework.boot.loader.thin.ThinJarLauncher.main(ThinJarLauncher.java:140) ~[spring-boot-thin-launcher-1.0.22.RELEASE.jar:1.0.22.RELEASE]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.boot.loader.wrapper.ThinJarWrapper.launch(ThinJarWrapper.java:140) ~[spring-cloud-launcher-eureka-2.2.4.RELEASE.jar:2.2.4.RELEASE]
at org.springframework.boot.loader.wrapper.ThinJarWrapper.main(ThinJarWrapper.java:107) ~[spring-cloud-launcher-eureka-2.2.4.RELEASE.jar:2.2.4.RELEASE]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.cloud.launcher.cli.LauncherCommand$LauncherOptionHandler.run(LauncherCommand.java:115) ~[na:na]
at org.springframework.boot.cli.command.options.OptionHandler.run(OptionHandler.java:105) ~[na:na]
at org.springframework.boot.cli.command.OptionParsingCommand.run(OptionParsingCommand.java:54) ~[na:na]
at org.springframework.boot.cli.command.CommandRunner.run(CommandRunner.java:219) ~[na:na]
at org.springframework.boot.cli.command.CommandRunner.runAndHandleErrors(CommandRunner.java:171) ~[na:na]
at org.springframework.boot.cli.SpringCli.main(SpringCli.java:64) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[spring-boot-loader-2.1.9.RELEASE.jar:2.1.9.RELEASE]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[spring-boot-loader-2.1.9.RELEASE.jar:2.1.9.RELEASE]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[spring-boot-loader-2.1.9.RELEASE.jar:2.1.9.RELEASE]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) ~[spring-boot-loader-2.1.9.RELEASE.jar:2.1.9.RELEASE]
2022-01-28 15:44:58.077 INFO 22915 --- [ main] o.s.cloud.launcher.deployer.Deployer : Status of f7d320a2967c57cc7c16683714e85ab5: failed
Could someone help me out with this issue?
Thanks!
The text was updated successfully, but these errors were encountered:
On starting any cloud service, like eureka the spring boot startup failed with the following error: opens java.net to unnamed module. Started the eureka with the following cmd: spring cloud eureka.
Specs:
Could someone help me out with this issue?
Thanks!
The text was updated successfully, but these errors were encountered: