You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/07/14 14:17:20 UTC

[jira] [Commented] (AMQ-6357) shutdown due to a local error: java.lang.ArithmeticException: / by zero

    [ https://issues.apache.org/jira/browse/AMQ-6357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15376992#comment-15376992 ] 

ASF subversion and git services commented on AMQ-6357:
------------------------------------------------------

Commit 42dabb7a7a7f981eb57d46663456ac1d7c912acb in activemq's branch refs/heads/master from [~cshannon]
[ https://git-wip-us.apache.org/repos/asf?p=activemq.git;h=42dabb7 ]

https://issues.apache.org/jira/browse/AMQ-6357

Preventing a divide by 0 error by taking a local reference to the
prefetch size to guarantee that the value doesn't change after the > 0
check


> shutdown due to a local error: java.lang.ArithmeticException: / by zero
> -----------------------------------------------------------------------
>
>                 Key: AMQ-6357
>                 URL: https://issues.apache.org/jira/browse/AMQ-6357
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.13.0
>         Environment: # /local/jdk/bin/java -version
> java version "1.8.0_45"
> Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
> # uname -a
> Linux esb-test-mq01 3.13.0-91-generic #138-Ubuntu SMP Fri Jun 24 17:00:34 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
> # lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 14.04.4 LTS
> Release:        14.04
> Codename:       trusty
> Activemq 5.13.0
>            Reporter: Johan Carlquist
>            Assignee: Christopher L. Shannon
>         Attachments: TRACE.log, activemq.xml
>
>
> We have two brokers esb-test-mq01 and esb-test-mq02 configured in a
> network of brokers. In front of the brokers we have a load balancer
> that spreads the connecting clients between the brokers.
> The brokers connect to each other directly without the load balancer.
> Sometimes (we havn't found any patterns for when it occurs) one of the
> connections between the brokers closes down with the following message:
> "Network connection between vm://esb-test-mq01.it.su.se#18 and ssl://
> esb-test-mq02.it.su.se/77.238.37.208:61616 shutdown due to a local error:
> java.lang.ArithmeticException: / by zero"
> After this the faulty broker never calls back. We have finally caught this
> division with TRACE turned on, but we can't make anything out of the
> logs. (See attatched log file)
> Tim said on activemq-users to include as much information as I can but
> I can't figure out anything more specific for our setup. I think activemq.xml 
> says it all (and it is attatched to this issue).
> Let us know if there is any other information we can provide you with.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)