1 Reply Latest reply on Aug 27, 2015 6:50 AM by Horia Chiorean

    infinispan CacheManager : javax.management.InstanceAlreadyExistsException

    Jason Harrop Newbie

      When I start Wildfly 8.2.1 (running ModeShape 4.3.0), I now get the stack trace below.

       

      Sorry, I'm new to ModeShape and Infispan.

       

      What do I do to fix this?

       

      thanks .. Jason

       

       

      10:18:41,532 INFO  [org.infinispan.jmx.JmxUtil] (default task-6) ISPN000138: Could not register object with name: org.infinispan:type=CacheManager,name="DefaultCacheManager",component=CacheManager: javax.management.InstanceAlreadyExistsException: org.infinispan:type=CacheManager,name="DefaultCacheManager",component=CacheManager

              at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) [rt.jar:1.8.0_51]

              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) [rt.jar:1.8.0_51]

              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) [rt.jar:1.8.0_51]

              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) [rt.jar:1.8.0_51]

              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) [rt.jar:1.8.0_51]

              at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) [rt.jar:1.8.0_51]

              at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.registerMBean(PluggableMBeanServerImpl.java:1493)

              at org.jboss.as.jmx.PluggableMBeanServerImpl.registerMBean(PluggableMBeanServerImpl.java:896)

              at org.infinispan.jmx.JmxUtil.registerMBean(JmxUtil.java:67) [infinispan-core.jar:7.2.0.Final]

              at org.infinispan.jmx.ComponentsJmxRegistration.registerMBeans(ComponentsJmxRegistration.java:64) [infinispan-core.jar:7.2.0.Final]

              at org.infinispan.jmx.AbstractJmxRegistration.registerMBeans(AbstractJmxRegistration.java:38) [infinispan-core.jar:7.2.0.Final]

              at org.infinispan.jmx.CacheManagerJmxRegistration.start(CacheManagerJmxRegistration.java:41) [infinispan-core.jar:7.2.0.Final]

              at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:625) [infinispan-core.jar:7.2.0.Final]

              at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:301) [infinispan-core.jar:7.2.0.Final]

              at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:271) [infinispan-core.jar:7.2.0.Final]

              at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:257) [infinispan-core.jar:7.2.0.Final]

              at org.modeshape.jboss.service.RepositoryService.getCacheContainer(RepositoryService.java:131) [modeshape-jbossas-subsystem-4.3.0.Final.jar:4.3.0.Final]

              at org.modeshape.jcr.RepositoryConfiguration.getCacheContainer(RepositoryConfiguration.java:982) [modeshape-jcr-4.3.0.Final.jar:4.3.0.Final]

              at org.modeshape.jcr.RepositoryConfiguration.getContentCacheContainer(RepositoryConfiguration.java:972) [modeshape-jcr-4.3.0.Final.jar:4.3.0.Final]

              at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:1074) [modeshape-jcr-4.3.0.Final.jar:4.3.0.Final]

              at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:978) [modeshape-jcr-4.3.0.Final.jar:4.3.0.Final]

              at org.modeshape.jcr.JcrRepository.doStart(JcrRepository.java:388) [modeshape-jcr-4.3.0.Final.jar:4.3.0.Final]

              at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:651) [modeshape-jcr-4.3.0.Final.jar:4.3.0.Final]

              at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:145) [modeshape-jcr-4.3.0.Final.jar:4.3.0.Final]

              at org.apache.chemistry.opencmis.jcr.JcrRepository.login(JcrRepository.java:130) [chemistry-opencmis-server-jcr-0.11.0-classes.jar:0.11.0]

              at org.modeshape.cmis.JcrService.login(JcrService.java:352) [modeshape-web-cmis-4.3.0.Final.jar:4.3.0.Final]

              at org.modeshape.cmis.JcrService.getObjectByPath(JcrService.java:256) [modeshape-web-cmis-4.3.0.Final.jar:4.3.0.Final]

              at org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper.getObjectByPath(ConformanceCmisServiceWrapper.java:933) [chemistry-opencmis-server-support-0.11.0.jar:0.11.0]

              at org.apache.chemistry.opencmis.server.impl.atompub.ObjectService$GetObjectByPath.serve(ObjectService.java:429) [chemistry-opencmis-server-bindings-0.11.0.jar:0.11.0]

              at org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:91) [chemistry-opencmis-server-bindings-0.11.0.jar:0.11.0]

              at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:226) [chemistry-opencmis-server-bindings-0.11.0.jar:0.11.0]

              at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.service(CmisAtomPubServlet.java:173) [chemistry-opencmis-server-bindings-0.11.0.jar:0.11.0]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

              at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:248) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:77) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:167) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:761) [undertow-core-1.1.8.Final.jar:1.1.8.Final]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_51]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_51]

              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_51]