Stupid bug.
Fixed obvious division by zero.
Better debug message.
Trying upgrading ActiveMQ to 5.7
Fixing wrong import.