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"

Stack Overflow | JimHawkins | 4 months ago
  1. 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"
  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

    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

    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.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"

      at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance()
    2. Spring Context
      MBeanExporter.afterSingletonsInstantiated
      1. org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625)[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
      2. org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:550)[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
      3. org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:432)[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
      3 frames