java.lang.ClassCastException: [Ljavax.management.openmbean.CompositeData; cannot be cast to javax.management.openmbean.CompositeData

Coderanch | Peter van Nes | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    How to return non openType in MXBean

    Coderanch | 3 years ago | Peter van Nes
    java.lang.ClassCastException: [Ljavax.management.openmbean.CompositeData; cannot be cast to javax.management.openmbean.CompositeData

    Root Cause Analysis

    1. java.lang.ClassCastException

      [Ljavax.management.openmbean.CompositeData; cannot be cast to javax.management.openmbean.CompositeData

      at com.reddipped.sysstats.model.SystemInfoCollector.run()
    2. com.reddipped.sysstats
      SystemInfoCollector.run
      1. com.reddipped.sysstats.model.SystemInfoCollector.run(SystemInfoCollector.java:81)
      1 frame
    3. Java RT
      ScheduledThreadPoolExecutor$ScheduledFutureTask.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      4 frames