org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.springframework.cloud.context.environment.EnvironmentManager@19480877] with key 'environmentManager'; nested exception is javax.management.InstanceAlreadyExistsException: org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager

GitHub | wcrowell | 7 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

    Setting spring.jmx.default-domain To Unique Values For cas-server-webapp and cas-management-webapp For CAS 5

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

    [cas-user] Suggestion: Setting spring.jmx.default-domain To Unique Values For cas-server-webapp and cas-management-webapp For CAS 5

    Google Groups | 7 months ago | William
    org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.springframework.cloud.context.environment.EnvironmentManager@19480877] with key 'environmentManager'; nested exception is javax.management.InstanceAlreadyExistsException: org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager

    Root Cause Analysis

    1. org.springframework.jmx.export.UnableToRegisterMBeanException

      Unable to register MBean [org.springframework.cloud.context.environment.EnvironmentManager@19480877] with key 'environmentManager'; nested exception is javax.management.InstanceAlreadyExistsException: org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager

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