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 | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Spring Boot , JNDI lookup database with application.properties

    Stack Overflow | 9 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 | 2 years 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 | 1 year 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 | 1 year 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

    Tomcat - Deploying application - datasource issue

    Stack Overflow | 2 months ago | Heril Muratovic
    org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [HikariDataSource (HikariPool-0)] with key 'dataSource'; nested exception is javax.management.InstanceAlreadyExistsException: com.zaxxer.hikari:name=dataSource,type=HikariDataSource

    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