Buggy code:
public class BuildIotTopology { private Logger logger = LoggerFactory . getLogger ( BuildTopology . class ) ; private LocalCluster localCluster = null ; private Config config ; private int id ; private Map < String , RMQContext > RMQContexts ; private Map < String , IRichSpout > spoutMap = new HashMap < > ( ) ; private Map < String , IRichBolt > boltMap = new HashMap < > ( ) ; private Map < String , String > KeyToComponentMap = new Constant_storm . KeyToComponentMap ( ) . map ; private Map < String , Scheme > schemeMap = new Schemes ( ) . schemeMap ; private String sensorid ; private ConnectionConfig connectionConfig ; private ConsumerConfig spoutConfig ; private StormTopology stormTopology ; private String toplogyName ; private Map < String , RabbitMQSpout > spoutMapFormer = new HashMap < String , RabbitMQSpout > ( ) ; private Map < String , BuildIotTopology . StormDeclarator > declaratorMap = new HashMap < String , BuildIotTopology . StormDeclarator > ( ) ; private IRichSpout odomSpout ; private IRichSpout scanSpout ; private IRichSpout particleSpout ; private IRichSpout poseShareSpout ; private IRichSpout startGoalSpout ; private TopologyBuilder builder = new TopologyBuilder ( ) ; public BuildIotTopology ( final Config config ) { } public BuildIotTopology ( final LocalCluster localCluster , Config config , String toplogyName ) { } public void submit ( ) { } public StormTopology getStormTopology ( ) { } public void shutdown ( ) { } public void setTopology ( ) { } private void buidSpouts ( ) { } private void buildTopology ( ) { builder . setBolt ( GLOBAL_PLANNER_COMPONENT , new GlobalPlannerBolt ( ) , 1 ) . fieldsGrouping ( BASE_CONFIG_COMPONENT , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) ; builder . setBolt ( ODOMETRY_TRANSFORM_COMPONENT , new OdometryTransformBolt ( ) , 1 ) . fieldsGrouping ( ODOMETRY_COMPONENT , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) ; builder . setBolt ( TIMER_COMPONENT , new TimerBolt ( ) , 1 ) . fieldsGrouping ( BASE_CONFIG_COMPONENT , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . allGrouping ( TIMER_SPOUT_COMPONENT ) ; builder . setBolt ( LOCAL_PLANNER_COMPONENT , new LocalPlannerBolt ( ) , 1 ) . fieldsGrouping ( GLOBAL_PLANNER_COMPONENT , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . fieldsGrouping ( ODOMETRY_TRANSFORM_COMPONENT , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . fieldsGrouping ( VELOCITY_COMPUTE_COMPONENT , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . fieldsGrouping ( TIMER_COMPONENT , CONTROLLER_TIMER_STREAM , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) ; builder . setBolt ( VELOCITY_COMMAND_PUBLISHER_COMPONENT , boltMap . get ( VELOCITY_COMMAND_PUBLISHER_COMPONENT ) , 1 ) . fieldsGrouping ( LOCAL_PLANNER_COMPONENT , VELOCITY_COMMAND_STREAM , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) ; builder . setBolt ( GET_OBSTACLES_COMPONENT , new GetObstacleBolt ( ) , 1 ) . fieldsGrouping ( SCAN_COMPONENT , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . allGrouping ( GET_ALL_AGENTS_COMPONENT ) ; builder . setBolt ( GET_ALL_AGENTS_COMPONENT , new GetAllAgentsBolt ( ) , 1 ) . shuffleGrouping ( AGENT_STATE_COMPONENT , RESET_STREAM ) . shuffleGrouping ( POSE_SHARE_COMPONENT ) ; builder . setBolt ( POSE_SHARE_PUB_COMPONENT , boltMap . get ( POSE_SHARE_PUB_COMPONENT ) , 1 ) . shuffleGrouping ( AGENT_COMPONENT , PUBLISHME_STREAM ) ; builder . setBolt ( GET_MINKOWSKI_FOOTPRINT_COMPONENT , new GetMinkowskiFootprintBolt ( ) , 1 ) . fieldsGrouping ( POSE_ARRAY_COMPONENT , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . fieldsGrouping ( AGENT_COMPONENT , FOOTPRINT_OWN_STREAM , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) ; builder . setBolt ( AGENT_STATE_COMPONENT , new AgentStateBolt ( ) , 1 ) . fieldsGrouping ( ODOMETRY_TRANSFORM_COMPONENT , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . fieldsGrouping ( GET_OBSTACLES_COMPONENT , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . fieldsGrouping ( GET_MINKOWSKI_FOOTPRINT_COMPONENT , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . fieldsGrouping ( LOCAL_PLANNER_COMPONENT , PREFERRED_VELOCITY_STREAM , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . fieldsGrouping ( LOCAL_PLANNER_COMPONENT , RESET_STREAM , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . allGrouping ( GET_ALL_AGENTS_COMPONENT ) . fieldsGrouping ( TIMER_COMPONENT , PUBLISH_ME_TIMER_STREAM , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) ; <START_BUG> builder . setBolt ( AGENT_COMPONENT , new AgentBolt ( ) , 1 ) . fieldsGrouping ( AGENT_STATE_COMPONENT , PUBLISHME_STREAM , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . fieldsGrouping ( AGENT_STATE_COMPONENT , CALCULATE_VELOCITY_CMD_STREAM , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) ; <END_BUG> builder . setBolt ( VO_LINES_COMPUTE_COMPONENT , new VOLinesComputeBolt_ ( ) , 4 ) . shuffleGrouping ( AGENT_COMPONENT , CALCULATE_VELOCITY_CMD_STREAM ) ; builder . setBolt ( VELOCITY_COMPUTE_COMPONENT , new VelocityComputeBolt ( ) , 2 ) . shuffleGrouping ( VO_LINES_COMPUTE_COMPONENT ) ; } private static class StormDeclarator implements Declarator { private final String exchange ; private final String queue ; private final String routingKey ; private final String exType ; public StormDeclarator ( RMQContext context ) { } public StormDeclarator ( String exchange , String queueName , String routingKey , String exType ) { } @ Override public void execute ( Channel channel ) { } } }

Fix:
builder . setBolt ( AGENT_COMPONENT , new AgentBolt_ ( ) , 1 ) . fieldsGrouping ( AGENT_STATE_COMPONENT , PUBLISHME_STREAM , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) . fieldsGrouping ( AGENT_STATE_COMPONENT , CALCULATE_VELOCITY_CMD_STREAM , new backtype . storm . tuple . Fields ( FIELDS . SENSOR_ID_FIELD ) ) ;