You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Tom M. (JIRA)" <ji...@apache.org> on 2014/07/01 17:29:24 UTC

[jira] [Updated] (AMQ-5140) ArithmeticException: / by zero in HealthView.healthList() when using JMX-Health-Operations

     [ https://issues.apache.org/jira/browse/AMQ-5140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom M. updated AMQ-5140:
------------------------

    Attachment: activemq.schedulerSupport.xml

> ArithmeticException: / by zero in HealthView.healthList() when using JMX-Health-Operations
> ------------------------------------------------------------------------------------------
>
>                 Key: AMQ-5140
>                 URL: https://issues.apache.org/jira/browse/AMQ-5140
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker, JMX
>    Affects Versions: 5.8.0
>         Environment: ActiveMQ 5.8.0, hawtio 1.3.0
>            Reporter: Tom M.
>             Fix For: 5.10.0
>
>         Attachments: activemq.schedulerSupport.xml
>
>
> Using hawtio, navigate to activeMQ, select Health in Tree, then Operations.
> Both operations Health() and Health list() lead to the exception, although in the attributes section everything is fine!?
> Status: Good 
> {noformat}
> java.lang.ArithmeticException: / by zero
> 	at org.apache.activemq.broker.jmx.HealthView.healthList(HealthView.java:158)
> 	at org.apache.activemq.broker.jmx.HealthView.health(HealthView.java:51)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at sun.reflect.misc.Trampoline.invoke(Unknown Source)
> 	at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
> 	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
> 	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
> 	at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
> 	at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
> 	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
> 	at javax.management.StandardMBean.invoke(Unknown Source)
> 	at org.apache.activemq.broker.jmx.AnnotatedMBean.invoke(AnnotatedMBean.java:198)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
> 	at org.jolokia.handler.ExecHandler.doHandleRequest(ExecHandler.java:98)
> 	at org.jolokia.handler.ExecHandler.doHandleRequest(ExecHandler.java:40)
> 	at org.jolokia.handler.JsonRequestHandler.handleRequest(JsonRequestHandler.java:89)
> 	at org.jolokia.backend.MBeanServerExecutorLocal.handleRequest(MBeanServerExecutorLocal.java:109)
> 	at org.jolokia.backend.MBeanServerHandler.dispatchRequest(MBeanServerHandler.java:102)
> 	at org.jolokia.backend.LocalRequestDispatcher.dispatchRequest(LocalRequestDispatcher.java:98)
> 	at org.jolokia.backend.BackendManager.callRequestDispatcher(BackendManager.java:409)
> 	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:137)
> 	at org.jolokia.http.AgentServlet$2.handleRequest(AgentServlet.java:399)
> 	at org.jolokia.http.AgentServlet.handle(AgentServlet.java:287)
> 	at org.jolokia.http.AgentServlet.doPost(AgentServlet.java:256)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)
> 	at io.hawt.web.AuthenticationFilter$2.run(AuthenticationFilter.java:143)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Unknown Source)
> 	at io.hawt.web.AuthenticationFilter.executeAs(AuthenticationFilter.java:140)
> 	at io.hawt.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:108)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
> 	at io.hawt.web.CORSFilter.doFilter(CORSFilter.java:42)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
> 	at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:193)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:534)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:363)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931)
> 	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
> 	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> 	at java.lang.Thread.run(Unknown Source)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)