Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6702

OperatingSystemMXBean class cast exception when loaded under IBM JVM

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.14.0
    • 1.15.0
    • None

    Description

      Related to: https://issues.apache.org/jira/browse/DRILL-6289

       

      https://github.com/apache/drill/blob/1.14.0/common/src/main/java/org/apache/drill/exec/metrics/CpuGaugeSet.java#L28

       

      Exception in thread "main" java.lang.ExceptionInInitializerError

          at java.lang.J9VMInternals.ensureError(J9VMInternals.java:141)

          at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:130)

          at org.apache.drill.exec.metrics.DrillMetrics.getRegistry(DrillMetrics.java:111)

          at org.apache.drill.exec.memory.AllocationManager.<clinit>(AllocationManager.java:64)

          at org.apache.drill.exec.memory.BaseAllocator.<clinit>(BaseAllocator.java:48)

          at org.apache.drill.exec.memory.RootAllocatorFactory.newRoot(RootAllocatorFactory.java:45)

          at org.apache.drill.exec.memory.RootAllocatorFactory.newRoot(RootAllocatorFactory.java:40)

          ...

      Caused by: java.lang.ClassCastException: com.ibm.lang.management.ExtendedOperatingSystem incompatible with com.sun.management.OperatingSystemMXBean

          at org.apache.drill.exec.metrics.CpuGaugeSet.<init>(CpuGaugeSet.java:40)

          at org.apache.drill.exec.metrics.DrillMetrics$RegistryHolder.registerSystemMetrics(DrillMetrics.java:63)

          at org.apache.drill.exec.metrics.DrillMetrics$RegistryHolder.<clinit>(DrillMetrics.java:53)

      Attachments

        Issue Links

          Activity

            People

              kkhatua Kunal Khatua
              robertw Rob Wu
              Arina Ielchiieva Arina Ielchiieva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: