Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5850

javax.management.openmbean.KeyAlreadyExistsException thrown at JMX org.apache.karaf - services

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2
    • Fix Version/s: jboss-fuse-6.3
    • Component/s: Karaf
    • Labels:
      None
    • Sprint:
      Sprint 6 - towards CR1

      Description

      In Hawtio JMX tab, accessing org.apache.karaf -> services shows the following error stacktrace in the Karaf console (which is not written to fuse.log):

      javax.management.openmbean.KeyAlreadyExistsException: Argument value's index, calculated according to this TabularData instance's tabularType, already refers to a value in this table.
      	at javax.management.openmbean.TabularDataSupport.checkValueAndIndex(TabularDataSupport.java:898)
      	at javax.management.openmbean.TabularDataSupport.internalPut(TabularDataSupport.java:358)
      	at javax.management.openmbean.TabularDataSupport.put(TabularDataSupport.java:350)
      	at org.apache.karaf.management.mbeans.services.internal.ServicesMBeanImpl.getServices(ServicesMBeanImpl.java:86)
      	at org.apache.karaf.management.mbeans.services.internal.ServicesMBeanImpl.getServices(ServicesMBeanImpl.java:42)
      	at sun.reflect.GeneratedMethodAccessor403.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
      	at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
      	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
      	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
      	at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
      	at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)
      	at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:206)
      	at javax.management.StandardMBean.getAttribute(StandardMBean.java:372)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)
      	at org.jolokia.handler.ReadHandler$2.execute(ReadHandler.java:60)
      	at org.jolokia.backend.executor.AbstractMBeanServerExecutor.call(AbstractMBeanServerExecutor.java:90)
      	at org.jolokia.handler.ReadHandler.getAttribute(ReadHandler.java:235)
      	at org.jolokia.handler.ReadHandler.fetchAttributes(ReadHandler.java:189)
      	at org.jolokia.handler.ReadHandler.doHandleRequest(ReadHandler.java:118)
      	at org.jolokia.handler.ReadHandler.doHandleRequest(ReadHandler.java:37)
      	at org.jolokia.handler.JsonRequestHandler.handleRequest(JsonRequestHandler.java:161)
      	at org.jolokia.backend.MBeanServerHandler.dispatchRequest(MBeanServerHandler.java:154)
      	at org.jolokia.backend.LocalRequestDispatcher.dispatchRequest(LocalRequestDispatcher.java:99)
      	at org.jolokia.backend.BackendManager.callRequestDispatcher(BackendManager.java:411)
      	at org.jolokia.backend.BackendManager.handleRequest(BackendManager.java:158)
      	at org.jolokia.http.HttpRequestHandler.executeRequest(HttpRequestHandler.java:197)
      	at org.jolokia.http.HttpRequestHandler.handlePostRequest(HttpRequestHandler.java:131)
      	at org.jolokia.http.AgentServlet$3.handleRequest(AgentServlet.java:420)
      	at org.jolokia.http.AgentServlet.handleSecurely(AgentServlet.java:313)
      	at org.jolokia.http.AgentServlet.handle(AgentServlet.java:284)
      	at org.jolokia.http.AgentServlet.doPost(AgentServlet.java:252)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
      	at io.hawt.web.AuthenticationFilter$2.run(AuthenticationFilter.java:166)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at javax.security.auth.Subject.doAs(Subject.java:422)
      	at io.hawt.web.AuthenticationFilter.executeAs(AuthenticationFilter.java:163)
      	at io.hawt.web.AuthenticationFilter.access$000(AuthenticationFilter.java:28)
      	at io.hawt.web.AuthenticationFilter$1.execute(AuthenticationFilter.java:139)
      	at io.hawt.system.Authenticator.authenticate(Authenticator.java:99)
      	at io.hawt.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:136)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at io.hawt.web.XFrameOptionsFilter.doFilter(XFrameOptionsFilter.java:28)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at io.hawt.web.CORSFilter.doFilter(CORSFilter.java:42)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at io.hawt.web.CacheHeadersFilter.doFilter(CacheHeadersFilter.java:37)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at io.hawt.web.SessionExpiryFilter.process(SessionExpiryFilter.java:106)
      	at io.hawt.web.SessionExpiryFilter.doFilter(SessionExpiryFilter.java:46)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at io.hawt.web.RedirectFilter.process(RedirectFilter.java:73)
      	at io.hawt.web.RedirectFilter.doFilter(RedirectFilter.java:38)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:276)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      	at org.eclipse.jetty.server.Server.handle(Server.java:499)
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
      	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      	at java.lang.Thread.run(Thread.java:745)
      

      Note that the same issue can be reproduced only using JConsole and accessing org.apache.karaf -> services, so it must be a problem with Karaf, not Hawtio.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tadayosi Tadayoshi Sato
                  Reporter:
                  tadayosi Tadayoshi Sato
                  Tester:
                  Lukáš Löwinger
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: