-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
7.0.0
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
openjdk version "16" 2021-03-16
OpenJDK Runtime Environment (build 16+36-2231)
OpenJDK 64-Bit Server VM (build 16+36-2231, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
The JMC fails with "java.lang.ClassNotFoundException: disallow".
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ export JDK_JAVA_OPTIONS="-Djava.security.manager=disallow"
$ ./jmc
ACTUAL -
org.osgi.framework.BundleException: Exception in org.eclipse.osgi.internal.framework.SystemBundleActivator.start() of bundle org.eclipse.osgi.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:864)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:792)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1015)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.initWorker(EquinoxBundle.java:197)
at org.eclipse.osgi.container.SystemModule.init(SystemModule.java:99)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.init(EquinoxBundle.java:280)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.init(EquinoxBundle.java:264)
at org.eclipse.osgi.launch.Equinox.init(Equinox.java:185)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:316)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:251)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
at org.eclipse.equinox.launcher.Main.main(Main.java:1420)
Caused by: org.osgi.framework.BundleException: Failed to create security manager
at org.eclipse.osgi.internal.framework.SystemBundleActivator.installSecurityManager(SystemBundleActivator.java:145)
at org.eclipse.osgi.internal.framework.SystemBundleActivator.start(SystemBundleActivator.java:67)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:843)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:835)
... 17 more
Caused by: java.lang.ClassNotFoundException: disallow
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:440)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:375)
at org.eclipse.osgi.internal.framework.SystemBundleActivator.installSecurityManager(SystemBundleActivator.java:142)
... 22 more
Exception in thread "Equinox Shutdown Hook" java.lang.IllegalStateException: Module has been uninstalled. osgi.identity; type="osgi.fragment"; version:Version="1.1.800.v20200511-1223"; osgi.identity="org.eclipse.osgi.compatibility.state" [id=1]
at org.eclipse.osgi.container.Module.checkValid(Module.java:560)
at org.eclipse.osgi.container.Module.getStartLevel(Module.java:253)
at org.eclipse.osgi.container.ModuleDatabase$Persistence.writeModule(ModuleDatabase.java:1242)
at org.eclipse.osgi.container.ModuleDatabase$Persistence.store(ModuleDatabase.java:1050)
at org.eclipse.osgi.container.ModuleDatabase.store(ModuleDatabase.java:886)
at org.eclipse.osgi.storage.Storage.save0(Storage.java:1284)
at org.eclipse.osgi.storage.Storage.save(Storage.java:1251)
at org.eclipse.osgi.internal.framework.StorageSaver$StorageSaverTask.run(StorageSaver.java:31)
at java.base/java.lang.Thread.run(Thread.java:833)