[infinispan-issues] [JBoss JIRA] (ISPN-10122) Unable to start application using Infinispan on Client/Server mode with JMX enabled

Katia Aresti (Jira) issues at jboss.org
Mon Apr 8 09:54:07 EDT 2019


     [ https://issues.jboss.org/browse/ISPN-10122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Katia Aresti reassigned ISPN-10122:
-----------------------------------

    Assignee: Katia Aresti


> Unable to start application using Infinispan on Client/Server mode with JMX enabled
> -----------------------------------------------------------------------------------
>
>                 Key: ISPN-10122
>                 URL: https://issues.jboss.org/browse/ISPN-10122
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Spring Integration
>    Affects Versions: 2.1.4.Final
>            Reporter: Katia Aresti
>            Assignee: Katia Aresti
>            Priority: Major
>
> A Spring-Boot application using Infinispan Client/Server with JMX enabled for the Infinispan Client won't start, unless you disable jmx spring.jmx.enabled=false.
> Infinispan already registers a bean that is registered by Spring, so we get the following exception on start:
> {code}
> org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.infinispan.client.hotrod.RemoteCacheManager at 1d67f4e9] with key 'remoteCacheManager'; nested exception is javax.management.InstanceAlreadyExistsException: MXBean already registered with name org.infinispan:type=HotRodClient,name=Default
>         at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
>         at org.springframework.jmx.export.MBeanExporter.lambda$registerBeans$2(MBeanExporter.java:551) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
>         at java.base/java.util.HashMap.forEach(HashMap.java:1336) ~[na:na]
>         at org.
> {code}
> https://github.com/spring-projects/spring-boot/issues/16482



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list