You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/06/29 17:37:16 UTC

DO NOT REPLY [Bug 39933] New: - Divide by zero exception when viewing ClusterReceiver with JMX

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39933>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39933

           Summary: Divide by zero exception when viewing ClusterReceiver
                    with JMX
           Product: Tomcat 5
           Version: 5.5.12
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina:Cluster
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mdabbs@vibephone.com


While troubleshooting a clustering issue, I installed JMX (for JDK 1.4) as per
the instructions at http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
to be able to monitor the activity.  When clicking on the link for
Catalina:type=ClusterReceiver,host=localhost I was getting a Divide by Zero
exception in the catalina.out log.  The message was:

catalina.out:javax.management.RuntimeOperationsException: Exception invoking
method avgTotalReceivedBytes nested runtime exception is
java.lang.ArithmeticException: / by zero

Presumably this was because no traffic had been received yet.  Once I got
clustering working, and traffic was being sent/received, I no longer received
this error.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39933] - Divide by zero exception when viewing ClusterReceiver with JMX

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39933>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39933





------- Additional Comments From rainer.jung@kippdata.de  2006-06-29 16:02 -------
Do you have a stack?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39933] - Divide by zero exception when viewing ClusterReceiver with JMX

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39933>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39933





------- Additional Comments From mdabbs@vibephone.com  2006-06-29 16:04 -------
javax.management.RuntimeOperationsException: Exception invoking method
avgTotalReceivedBytes nested runtime exception is java.lang.ArithmeticException:
/ by zero
java.lang.ArithmeticException: / by zero
        at
org.apache.catalina.cluster.tcp.ClusterReceiverBase.getAvgTotalReceivedBytes(ClusterReceiverBase.java:271)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.commons.modeler.BaseModelMBean.getAttribute(BaseModelMBean.java:346)
        at
mx4j.server.interceptor.InvokerMBeanServerInterceptor.getAttribute(InvokerMBeanServerInterceptor.java:248)
        at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:135)
        at
mx4j.server.interceptor.SecurityMBeanServerInterceptor.getAttribute(SecurityMBeanServerInterceptor.java:106)
        at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:135)
        at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:135)
        at
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.getAttribute(ContextClassLoaderMBeanServerInterceptor.java:269)
        at mx4j.server.MX4JMBeanServer.getAttribute(MX4JMBeanServer.java:965)
        at
mx4j.tools.adaptor.http.MBeanCommandProcessor.createMBeanElement(MBeanCommandProcessor.java:119)
        at
mx4j.tools.adaptor.http.MBeanCommandProcessor.executeRequest(MBeanCommandProcessor.java:56)
        at mx4j.tools.adaptor.http.HttpAdaptor$HttpClient.run(HttpAdaptor.java:980)


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39933] - Divide by zero exception when viewing ClusterReceiver with JMX

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39933>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39933


rainer.jung@kippdata.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From rainer.jung@kippdata.de  2006-06-29 20:55 -------
Fixed in subversion HEAD of tc5.5.x.
I searched the whole cluster module and fixed all similar places.
Your analysis was correct, thanks for reporting this!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org