Program: 96590
Project: 96590
Buggy source:
public SnmpManagementServiceHandler(ServiceContext serviceContext,ManagementContext managementContext){
  this.serviceContext=serviceContext;
  this.managementContext=managementContext;
  this.managementContext.addGatewayManagementListener(new SNMPGatewayManagementListener());
  this.managementContext.addServiceManagementListener(new SNMPServiceManagementListener());
  this.managementContext.addSessionManagementListener(new SNMPSessionManagementListener());
  transportMapping=new ManagementTransport(managementContext);
  server=new DefaultMOServer();
  MOServer[] moServers=new MOServer[]{server};
  final Properties props=KaazingSNMPAgentProperties.getProperties();
  MOInputFactory configurationFactory=new MOInputFactory(){
    public MOInput createMOInput(){
      return new PropertyMOInput(props,SnmpManagementServiceHandler.this);
    }
  }
;
  MessageDispatcher messageDispatcher=new MessageDispatcherImpl();
  messageDispatcher.addTransportMapping(transportMapping);
  messageDispatcher.addTransportMapping(new ManagementTcpTransport(serviceContext,managementContext));
  messageDispatcher.addTransportMapping(new ManagementUdpTransport(serviceContext,managementContext));
  agent=new KaazingConfigManager(new OctetString(MPv3.createLocalEngineID()),messageDispatcher,null,moServers,null,configurationFactory,new DefaultMOPersistenceProvider(moServers,"String_Node_Str"));
  notifScheduler=serviceContext.getSchedulerProvider().getScheduler("String_Node_Str",true);
  summaryDataScheduler=serviceContext.getSchedulerProvider().getScheduler("String_Node_Str",false);
  agent.initialize();
  agent.configure();
  agent.launch();
}

Fixed version (ground truth):
public SnmpManagementServiceHandler(ServiceContext serviceContext,ManagementContext managementContext){
  this.serviceContext=serviceContext;
  this.managementContext=managementContext;
  this.managementContext.addGatewayManagementListener(new SNMPGatewayManagementListener());
  this.managementContext.addServiceManagementListener(new SNMPServiceManagementListener());
  this.managementContext.addSessionManagementListener(new SNMPSessionManagementListener());
  transportMapping=new ManagementTransport(managementContext);
  server=new DefaultMOServer();
  MOServer[] moServers=new MOServer[]{server};
  final Properties props=KaazingSNMPAgentProperties.getProperties();
  MOInputFactory configurationFactory=new MOInputFactory(){
    @Override public MOInput createMOInput(){
      return new PropertyMOInput(props,SnmpManagementServiceHandler.this);
    }
  }
;
  MessageDispatcher messageDispatcher=new MessageDispatcherImpl();
  messageDispatcher.addTransportMapping(transportMapping);
  messageDispatcher.addTransportMapping(new ManagementTcpTransport(serviceContext,managementContext));
  messageDispatcher.addTransportMapping(new ManagementUdpTransport(serviceContext,managementContext));
  agent=new KaazingConfigManager(new OctetString(MPv3.createLocalEngineID()),messageDispatcher,null,moServers,null,configurationFactory,new DefaultMOPersistenceProvider(moServers,"String_Node_Str"));
  notifScheduler=serviceContext.getSchedulerProvider().getScheduler("String_Node_Str",true);
  summaryDataScheduler=serviceContext.getSchedulerProvider().getScheduler("String_Node_Str",false);
  agent.initialize();
  agent.configure();
  agent.launch();
}