org.springframework.jmx.export.MBeanExportException: Could not create ModelMBean for managed resource [ConsoleMsgMBeanInfo={fssModProductState_MsgMBean}] with key 'bean:name=fssModProductState_MsgMBean'; nested exception is javax.management.IntrospectionException: type mismatch between getter and setter

Spring JIRA | jerryscott2014 | 3 years ago
  1. 0

    spring3.2.5 seems more strict with in createAndConfigMBean during MBeanExporter does(when invoke the registerBeans), here comes my stack trace: org.springframework.jmx.export.MBeanExportException: Could not create ModelMBean for managed resource [ConsoleMsgMBeanInfo={fssModProductState_MsgMBean}] with key 'bean:name=fssModProductState_MsgMBean'; nested exception is javax.management.IntrospectionException: type mismatch between getter and setter at org.springframework.jmx.export.MBeanExporter.createAndConfigureMBean(MBeanExporter.java:797) at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:654) at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:598) at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:527) at org.springframework.jmx.export.MBeanExporter.afterPropertiesSet(MBeanExporter.java:413) at com.xyt.channel.server.service.listener.AbstractMBeanLoadEventListener.processAppEvent(Unknown Source) at com.xyt.channel.server.service.listener.AbstractMBeanLoadEventListener.processAppEvent(Unknown Source) at com.xyt.channel.component.event.AbstractChannelEventObserver.observeChannelEvent(Unknown Source) at com.xyt.channel.wko.service.main.ChannelEnvConfiguration$1.startChannelService(Unknown Source) at com.xyt.channel.wko.service.main.ChannelWkoServiceMain.startChannelService(Unknown Source) at com.xyt.channel.server.service.main.AbstractChannelServiceMain.startChannelService(Unknown Source) at com.xyt.channel.wko.service.main.ChannelWkoServiceMain.main(Unknown Source) Caused by: javax.management.IntrospectionException: type mismatch between getter and setter at javax.management.MBeanAttributeInfo.attributeType(MBeanAttributeInfo.java:340) at javax.management.MBeanAttributeInfo.(MBeanAttributeInfo.java:183) at javax.management.modelmbean.ModelMBeanAttributeInfo.(ModelMBeanAttributeInfo.java:202) at org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler.getAttributeInfo(AbstractReflectiveMBeanInfoAssembler.java:315) at org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler.getMBeanInfo(AbstractMBeanInfoAssembler.java:64) at org.springframework.jmx.export.MBeanExporter.getMBeanInfo(MBeanExporter.java:819) at org.springframework.jmx.export.MBeanExporter.createAndConfigureMBean(MBeanExporter.java:792) As shown above, when I went back to spring3.2.4 or lower edition, the error stacktrace would not appear. I hope some could point out my mistake whether I had set wrong MBean Name.

    Spring JIRA | 3 years ago | jerryscott2014
    org.springframework.jmx.export.MBeanExportException: Could not create ModelMBean for managed resource [ConsoleMsgMBeanInfo={fssModProductState_MsgMBean}] with key 'bean:name=fssModProductState_MsgMBean'; nested exception is javax.management.IntrospectionException: type mismatch between getter and setter
  2. 0

    spring3.2.5 seems more strict with in createAndConfigMBean during MBeanExporter does(when invoke the registerBeans), here comes my stack trace: org.springframework.jmx.export.MBeanExportException: Could not create ModelMBean for managed resource [ConsoleMsgMBeanInfo={fssModProductState_MsgMBean}] with key 'bean:name=fssModProductState_MsgMBean'; nested exception is javax.management.IntrospectionException: type mismatch between getter and setter at org.springframework.jmx.export.MBeanExporter.createAndConfigureMBean(MBeanExporter.java:797) at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:654) at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:598) at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:527) at org.springframework.jmx.export.MBeanExporter.afterPropertiesSet(MBeanExporter.java:413) at com.xyt.channel.server.service.listener.AbstractMBeanLoadEventListener.processAppEvent(Unknown Source) at com.xyt.channel.server.service.listener.AbstractMBeanLoadEventListener.processAppEvent(Unknown Source) at com.xyt.channel.component.event.AbstractChannelEventObserver.observeChannelEvent(Unknown Source) at com.xyt.channel.wko.service.main.ChannelEnvConfiguration$1.startChannelService(Unknown Source) at com.xyt.channel.wko.service.main.ChannelWkoServiceMain.startChannelService(Unknown Source) at com.xyt.channel.server.service.main.AbstractChannelServiceMain.startChannelService(Unknown Source) at com.xyt.channel.wko.service.main.ChannelWkoServiceMain.main(Unknown Source) Caused by: javax.management.IntrospectionException: type mismatch between getter and setter at javax.management.MBeanAttributeInfo.attributeType(MBeanAttributeInfo.java:340) at javax.management.MBeanAttributeInfo.(MBeanAttributeInfo.java:183) at javax.management.modelmbean.ModelMBeanAttributeInfo.(ModelMBeanAttributeInfo.java:202) at org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler.getAttributeInfo(AbstractReflectiveMBeanInfoAssembler.java:315) at org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler.getMBeanInfo(AbstractMBeanInfoAssembler.java:64) at org.springframework.jmx.export.MBeanExporter.getMBeanInfo(MBeanExporter.java:819) at org.springframework.jmx.export.MBeanExporter.createAndConfigureMBean(MBeanExporter.java:792) As shown above, when I went back to spring3.2.4 or lower edition, the error stacktrace would not appear. I hope some could point out my mistake whether I had set wrong MBean Name.

    Spring JIRA | 3 years ago | jerryscott2014
    org.springframework.jmx.export.MBeanExportException: Could not create ModelMBean for managed resource [ConsoleMsgMBeanInfo={fssModProductState_MsgMBean}] with key 'bean:name=fssModProductState_MsgMBean'; nested exception is javax.management.IntrospectionException: type mismatch between getter and setter
  3. 0

    How to expose methods of a class dynamically.. using Model Mbean???

    Oracle Community | 1 decade ago | 843798
    java.lang.RuntimeException: javax.management.IntrospectionException: bad getter arg count
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception when adding o.e.j.s.DoSFilter as managed attribute

    Eclipse Bugzilla | 6 years ago | mgorovoy
    javax.management.IntrospectionException: type mismatch between getter and setter
  6. 0

    Compression service not working

    Google Groups | 3 years ago | stbender
    javax.management.IntrospectionException: Failedto find PropertyEditorfortype:org.dcm4chex.archive.ejb.interfaces.FileDTO

    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. javax.management.IntrospectionException

      type mismatch between getter and setter

      at javax.management.MBeanAttributeInfo.attributeType()
    2. Java RT
      ModelMBeanAttributeInfo.<init>
      1. javax.management.MBeanAttributeInfo.attributeType(MBeanAttributeInfo.java:340)
      2. javax.management.MBeanAttributeInfo.<init>(MBeanAttributeInfo.java:183)
      3. javax.management.modelmbean.ModelMBeanAttributeInfo.<init>(ModelMBeanAttributeInfo.java:202)
      3 frames
    3. Spring Context
      MBeanExporter.createAndConfigureMBean
      1. org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler.getAttributeInfo(AbstractReflectiveMBeanInfoAssembler.java:315)
      2. org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler.getMBeanInfo(AbstractMBeanInfoAssembler.java:64)
      3. org.springframework.jmx.export.MBeanExporter.getMBeanInfo(MBeanExporter.java:819)
      4. org.springframework.jmx.export.MBeanExporter.createAndConfigureMBean(MBeanExporter.java:792)
      4 frames