Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1187

java.lang.ClassNotFoundException: sun.misc.Cleaner

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta1, 1.4.21.Final
    • 1.4.20.Final
    • Core
    • None
    • 46476085

      When using Undertow 1.4.20 (as embedded Servlet engine), i get this exception when running our app under Java 9.=: java.lang.ClassNotFoundException: sun.misc.Cleaner

      Cause is this line in io.undertow.server.DirectByteBufferDeallocator:

      tmpCleanerClean = Class.forName("sun.misc.Cleaner").getMethod("clean");
      This class does indeed not exists anymore in Java 9. But a replacement is available: java.lang.ref.Cleaner

      Can i ignore this exception for now? Is there a timeline for fixing this (i.e. making undertow Java 9 compatible)?

      (copied from https://stackoverflow.com/questions/46476085)

            sdouglas1@redhat.com Stuart Douglas
            rkmuller Ronald Muller (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: