java.io.InvalidObjectException: Failed to invoke from(CompositeData)

JDK Bug System | Tomáš Hůrka | 3 months ago
  1. 0

    When running JMX client on JDK 8 and JMX server on JDK 9 build 133 it becomes impossible to use 'ThreadMXBean.dumpAllThreads()'. Any attempt ends with: java.lang.IllegalArgumentException: Unexpected composite type for ThreadInfo at sun.management.ThreadInfoCompositeData.validateCompositeData(ThreadInfoCompositeData.java:372) at sun.management.ThreadInfoCompositeData.getInstance(ThreadInfoCompositeData.java:68) at java.lang.management.ThreadInfo.<init>(ThreadInfo.java:263) at java.lang.management.ThreadInfo.from(ThreadInfo.java:794) Caused: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeBuilderViaFrom.fromCompositeData(DefaultMXBeanMappingFactory.java:1018) Caused: java.io.InvalidObjectException: Failed to invoke from(CompositeData) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory.invalidObjectException(DefaultMXBeanMappingFactory.java:1457) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeBuilderViaFrom.fromCompositeData(DefaultMXBeanMappingFactory.java:1021) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeMapping.fromNonNullOpenValue(DefaultMXBeanMappingFactory.java:919) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$NonNullMXBeanMapping.fromOpenValue(DefaultMXBeanMappingFactory.java:133) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$ArrayMapping.fromNonNullOpenValue(DefaultMXBeanMappingFactory.java:584) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$NonNullMXBeanMapping.fromOpenValue(DefaultMXBeanMappingFactory.java:133) at com.sun.jmx.mbeanserver.ConvertingMethod.fromOpenReturnValue(ConvertingMethod.java:131) at com.sun.jmx.mbeanserver.MXBeanProxy.invoke(MXBeanProxy.java:168) at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:258) Caused: java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy16.dumpAllThreads(Unknown Source)

    JDK Bug System | 3 months ago | Tomáš Hůrka
    java.io.InvalidObjectException: Failed to invoke from(CompositeData)
  2. 0

    Cannot open some applications in VisualVM

    Stack Overflow | 3 years ago | serdar
    java.io.InvalidObjectException: Failed to invoke from(CompositeData)
  3. 0

    Memory utilization and Threads exception

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.reflect.UndeclaredThrowableException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.io.InvalidObjectException with JMX MXBean with CompositeData

    Stack Overflow | 3 years ago | TheBloodGuy
    java.io.InvalidObjectException: Do not know how to make a javax.management.openmbean.CompositeType from a CompositeData: no method from(CompositeData); no constructor has @ConstructorProperties annotation; does not have a public no-arg constructor; not an interface
  6. 0

    JMX MXBean proxy InvalidObjectException

    Stack Overflow | 4 years ago | huican
    java.io.InvalidObjectException: Do not know how to make a com.acme.AcmeObject from a CompositeData: no method from(CompositeData); no constructor has @ConstructorProperties annotation; does not have a public no-arg constructor; contains methods other than getters (getStatus)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.InvalidObjectException

      Failed to invoke from(CompositeData)

      at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory.invalidObjectException()
    2. Java RT
      MBeanServerInvocationHandler.invoke
      1. com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory.invalidObjectException(DefaultMXBeanMappingFactory.java:1457)
      2. com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeBuilderViaFrom.fromCompositeData(DefaultMXBeanMappingFactory.java:1021)
      3. com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeMapping.fromNonNullOpenValue(DefaultMXBeanMappingFactory.java:919)
      4. com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$NonNullMXBeanMapping.fromOpenValue(DefaultMXBeanMappingFactory.java:133)
      5. com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$ArrayMapping.fromNonNullOpenValue(DefaultMXBeanMappingFactory.java:584)
      6. com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$NonNullMXBeanMapping.fromOpenValue(DefaultMXBeanMappingFactory.java:133)
      7. com.sun.jmx.mbeanserver.ConvertingMethod.fromOpenReturnValue(ConvertingMethod.java:131)
      8. com.sun.jmx.mbeanserver.MXBeanProxy.invoke(MXBeanProxy.java:168)
      9. javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:258)
      9 frames