Geronimo
  1. Geronimo
  2. GERONIMO-4761

MBean not found exception: agent-car-jmx

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 2.1.5, 2.2
    • Fix Version/s: 2.1.5, 2.2, 3.0.0
    • Component/s: monitoring
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      From console

    • Patch Info:
      Patch Available

      Description

      1. Log in to console and go to Monitoring portlet,
      2. Click Add a new server and choose protocol as JMX
      3. Fill in other fields as requested, then click Add

      Exception thrown from command line:

      java.lang.Exception: [ERROR] Required mbean not found: agent-car-jmx
      	at org.apache.geronimo.monitoring.console.MRCConnector.<init>(MRCConnector.java:123)
      	at org.apache.geronimo.monitoring.console.MRCConnector.<init>(MRCConnector.java:55)
      	at jsp.WEB_002dINF.view.monitoringNormal_jsp._jspService(monitoringNormal_jsp.java:271)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
      	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
      	at org.apache.pluto.internal.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:106)
      	at org.apache.geronimo.monitoring.console.MonitoringPortlet.normalView(MonitoringPortlet.java:455)
      	at org.apache.geronimo.monitoring.console.MonitoringPortlet.doEdit(MonitoringPortlet.java:412)
      	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:253)
      	at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
      	at org.apache.geronimo.console.BasePortlet.render(BasePortlet.java:153)
      	at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:208)
      	at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
      	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
      	at org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)
      	at org.apache.pluto.core.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:101)
      	at org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:172)
      	at org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:152)
      	at jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(portlet_002dskin_jsp.java:102)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
      	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
      	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
      	at jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspx_meth_c_005fforEach_005f0(default_002dtheme_jsp.java:215)
      	at jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspService(default_002dtheme_jsp.java:120)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
      	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
      	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
      	at org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:151)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.geronimo.console.filter.PlutoURLRebuildFilter.doFilter(PlutoURLRebuildFilter.java:48)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:125)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      	at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
      	at org.apache.geronimo.tomcat.security.SecurityValve.invoke(SecurityValve.java:88)
      	at org.apache.geronimo.tomcat.security.jacc.JACCSecurityValve.invoke(JACCSecurityValve.java:52)
      	at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:420)
      	at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:361)
      	at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
      	at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      	at java.lang.Thread.run(Thread.java:735)
       ....
      

        Issue Links

          Activity

          Hide
          Jack Cai added a comment -

          The JMX agent is not installed by default. Please install it first. See: http://cwiki.apache.org/GMOxDOC22/monitoring-components-on-geronimo-server.html

          Show
          Jack Cai added a comment - The JMX agent is not installed by default. Please install it first. See: http://cwiki.apache.org/GMOxDOC22/monitoring-components-on-geronimo-server.html
          Hide
          Chi Runhua added a comment - - edited

          Thanks Jack for the info. After I installed the agent-car-jmx plugin, everything works well now.

          Anyway, I'd like to improve the description of exception as followed. In this way, user will get clear information about what the prerequisites is.

          ...
          if(PATH == null) {
                                  throw new Exception("[ERROR] Required mbean not found: agent-car-jmx. Install agent-car-jmx plugin first.");
                                   }
          

          If the solution is acceptable, please help to commit the patch.

          Jeff C

          Show
          Chi Runhua added a comment - - edited Thanks Jack for the info. After I installed the agent-car-jmx plugin, everything works well now. Anyway, I'd like to improve the description of exception as followed. In this way, user will get clear information about what the prerequisites is. ... if (PATH == null ) { throw new Exception( "[ERROR] Required mbean not found: agent-car-jmx. Install agent-car-jmx plugin first." ); } If the solution is acceptable, please help to commit the patch. Jeff C
          Hide
          Chi Runhua added a comment -

          Improve description of the exception.

          Show
          Chi Runhua added a comment - Improve description of the exception.
          Hide
          Chi Runhua added a comment -

          Downgrade the priority to Minor because it's about update of description.

          Show
          Chi Runhua added a comment - Downgrade the priority to Minor because it's about update of description.
          Hide
          Rex Wang added a comment -

          why not privide error messages on the page? I think giving user a exception stack is also not a good experience.
          -Rex

          Show
          Rex Wang added a comment - why not privide error messages on the page? I think giving user a exception stack is also not a good experience. -Rex
          Hide
          Shawn Jiang added a comment -

          This become invalid after following JIRA is fixed.

          https://issues.apache.org/jira/browse/GERONIMO-4883

          Show
          Shawn Jiang added a comment - This become invalid after following JIRA is fixed. https://issues.apache.org/jira/browse/GERONIMO-4883

            People

            • Assignee:
              Shawn Jiang
              Reporter:
              Chi Runhua
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development