powertac/powertac-server — Issue #415: Visualizer receives redundant messages
Author: juricababic
Created: 2011-11-07 14:33:19+00:00
State: open

It seems like there is a bug in BrokerProxy Service (pt-server project).
Specifically, the following method:

public void sendMessage (Broker broker, Object messageObject);

This method sends a message for both broker and Visualizer, even though the purpose of this method is to send message to a specific broker. Consequently, the Visualizer will recieve the same message intended for brokers as much times as the number of registered brokers.

Possible fix is to delete the following line in sendMessage method: "visualizerProxyService.forwardMessage(messageObject);".