org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [Statistics[start time=1473339335820,sessions opened=1,sessions closed=1,transactions=1,successful transactions=1,optimistic lock failures=0,flushes=0,connections obtained=1,statements prepared=1,statements closed=0,second level cache puts=0,second level cache hits=0,second level cache misses=0,entities loaded=0,entities updated=0,entities inserted=0,entities deleted=0,entities fetched=0,collections loaded=0,collections updated=0,collections removed=0,collections recreated=0,collections fetched=0,naturalId queries executed to database=0,naturalId cache puts=0,naturalId cache hits=0,naturalId cache misses=0,naturalId max query time=0,queries executed to database=1,query cache puts=0,query cache hits=0,query cache misses=0,update timestamps cache puts=0,update timestamps cache hits=0,update timestamps cache misses=0,max query time=18]] with key 'com.vervewireless.dao.hibernate:type=HibernateStatistics,name=SessionFactoryStatistics'; nested exception is org.springframework.jmx.export.MBeanExportException: Could not create ModelMBean for managed resource [Statistics[start time=1473339335820,sessions opened=1,sessions closed=1,transactions=1,successful transactions=1,optimistic lock failures=0,flushes=0,connections obtained=1,statements prepared=1,statements closed=0,second level cache puts=0,second level cache hits=0,second level cache misses=0,entities loaded=0,entities updated=0,entities inserted=0,entities deleted=0,entities fetched=0,collections loaded=0,collections updated=0,collections removed=0,collections recreated=0,collections fetched=0,naturalId queries executed to database=0,naturalId cache puts=0,naturalId cache hits=0,naturalId cache misses=0,naturalId max query time=0,queries executed to database=1,query cache puts=0,query cache hits=0,query cache misses=0,update timestamps cache puts=0,update timestamps cache hits=0,update timestamps cache misses=0,max query time=18]] with key 'com.vervewireless.dao.hibernate:type=HibernateStatistics,name=SessionFactoryStatistics'; nested exception is org.springframework.jmx.export.metadata.InvalidMetadataException: No ManagedResource attribute found for class: class org.hibernate.stat.internal.ConcurrentStatisticsImpl

Stack Overflow | karan | 3 months ago
  1. 0

    Exception in thread "main" org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean

    Stack Overflow | 3 months ago | karan
    org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [Statistics[start time=1473339335820,sessions opened=1,sessions closed=1,transactions=1,successful transactions=1,optimistic lock failures=0,flushes=0,connections obtained=1,statements prepared=1,statements closed=0,second level cache puts=0,second level cache hits=0,second level cache misses=0,entities loaded=0,entities updated=0,entities inserted=0,entities deleted=0,entities fetched=0,collections loaded=0,collections updated=0,collections removed=0,collections recreated=0,collections fetched=0,naturalId queries executed to database=0,naturalId cache puts=0,naturalId cache hits=0,naturalId cache misses=0,naturalId max query time=0,queries executed to database=1,query cache puts=0,query cache hits=0,query cache misses=0,update timestamps cache puts=0,update timestamps cache hits=0,update timestamps cache misses=0,max query time=18]] with key 'com.vervewireless.dao.hibernate:type=HibernateStatistics,name=SessionFactoryStatistics'; nested exception is org.springframework.jmx.export.MBeanExportException: Could not create ModelMBean for managed resource [Statistics[start time=1473339335820,sessions opened=1,sessions closed=1,transactions=1,successful transactions=1,optimistic lock failures=0,flushes=0,connections obtained=1,statements prepared=1,statements closed=0,second level cache puts=0,second level cache hits=0,second level cache misses=0,entities loaded=0,entities updated=0,entities inserted=0,entities deleted=0,entities fetched=0,collections loaded=0,collections updated=0,collections removed=0,collections recreated=0,collections fetched=0,naturalId queries executed to database=0,naturalId cache puts=0,naturalId cache hits=0,naturalId cache misses=0,naturalId max query time=0,queries executed to database=1,query cache puts=0,query cache hits=0,query cache misses=0,update timestamps cache puts=0,update timestamps cache hits=0,update timestamps cache misses=0,max query time=18]] with key 'com.vervewireless.dao.hibernate:type=HibernateStatistics,name=SessionFactoryStatistics'; nested exception is org.springframework.jmx.export.metadata.InvalidMetadataException: No ManagedResource attribute found for class: class org.hibernate.stat.internal.ConcurrentStatisticsImpl
  2. 0

    MXBean already registered with name spring.application (Spring Auto Reconfiguration 1.10.0)

    Stack Overflow | 1 year ago | Michael Engler
    org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.apache.tomcat.dbcp.dbcp2.BasicDataSource@787bb40b] with key '__cloudDataSource'; nested exception is javax.management.InstanceAlreadyExistsException: MXBean already registered with name spring.application:type=DataSource,name=dataSource
  3. 0

    Spring cloud config /refresh crashes when spring.main.sources is set

    Stack Overflow | 11 months ago | Jay Mann
    org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.springframework.cloud.context.environment.EnvironmentManager@76d00da2] with key 'environmentManager'; nested exception is javax.management.InstanceAlreadyExistsException: org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    /refresh can crash when 'spring.main.sources' property is set

    GitHub | 11 months ago | jmandawg
    org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.springframework.cloud.context.environment.EnvironmentManager@76d00da2] with key 'environmentManager'; nested exception is javax.management.InstanceAlreadyExistsException: org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager
  6. 0

    Spring Boot , JNDI lookup database with application.properties

    Stack Overflow | 4 months ago | JimHawkins
    org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.apache.tomcat.dbcp.dbcp2.BasicDataSource@49f798a4] with key 'permDbJpaDataSource'; nested exception is javax.management.InstanceAlreadyExistsException: Catalina:type=DataSource,host=localhost,context=/permDb,class=javax.sql.DataSource,name="jdbc/permDb"

    3 unregistered visitors
    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. org.springframework.jmx.export.metadata.InvalidMetadataException

      No ManagedResource attribute found for class: class org.hibernate.stat.internal.ConcurrentStatisticsImpl

      at org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler.populateMBeanDescriptor()
    2. Spring Context
      MBeanExporter.afterSingletonsInstantiated
      1. org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler.populateMBeanDescriptor(MetadataMBeanInfoAssembler.java:305)
      2. org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler.getMBeanInfo(AbstractMBeanInfoAssembler.java:70)
      3. org.springframework.jmx.export.MBeanExporter.getMBeanInfo(MBeanExporter.java:842)
      4. org.springframework.jmx.export.MBeanExporter.createAndConfigureMBean(MBeanExporter.java:815)
      5. org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:677)
      6. org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:621)
      7. org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:550)
      8. org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:432)
      8 frames
    3. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:796)
      1 frame
    4. Spring Context
      ClassPathXmlApplicationContext.<init>
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)
      3. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      4. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
      4 frames
    5. com.vervewireless.ingester
      IngesterCamel.main
      1. com.vervewireless.ingester.exec.IngesterCamel.main(IngesterCamel.java:40)
      1 frame