Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
framework-7.0.0
-
None
-
None
Description
When running our application with JDK17b25 we get the following exception:
java.lang.NoSuchMethodException: sun.misc.Unsafe.defineAnonymousClass(java.lang.Class,[B,[Ljava.lang.Object;) at java.base/java.lang.Class.getMethod(Class.java:2227) at org.apache.felix.framework.util.SecureAction.getAccessor(SecureAction.java:1134) at org.apache.felix.framework.util.SecureAction.<clinit>(SecureAction.java:86) at org.apache.felix.framework.Felix.<clinit>(Felix.java:114) at org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:30) at <our application> java.lang.NoSuchMethodException: sun.misc.Unsafe.defineAnonymousClass(java.lang.Class,[B,[Ljava.lang.Object;) at java.base/java.lang.Class.getMethod(Class.java:2227) at org.apache.felix.framework.util.SecureAction.getAccessor(SecureAction.java:1134) at org.apache.felix.framework.util.SecureAction.setAccesssible(SecureAction.java:998) at org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender.<clinit>(ClassPathExtenderFactory.java:55) at org.apache.felix.framework.ExtensionManager.<clinit>(ExtensionManager.java:152) at org.apache.felix.framework.Felix.initializeFrameworkProperties(Felix.java:4881) at org.apache.felix.framework.Felix.<init>(Felix.java:405) at org.apache.felix.framework.Felix.<init>(Felix.java:355) at org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:30) at <our application>
Attachments
Issue Links
- is fixed by
-
FELIX-6430 Felix uses sun.misc.Unsafe, crashed on JDK 17
- Closed