Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6432

NoSuchMethodException: sun.misc.Unsafe.defineAnonymousClass with Felix 7.0.0 and JDK17b25

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • framework-7.0.0
    • None
    • Framework
    • 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

          Activity

            People

              Unassigned Unassigned
              lhochet Ludovic HOCHET
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: