Program: 104173
Project: 104173
Buggy source:
/** 
 * Initializes this network address manager service implementation and starts all processes/threads associated with this address manager, such as a stun firewall/nat detector, keep alive threads, binding lifetime discovery threads and etc. The method may also be used after a call to stop() as a reinitialization technique.
 */
public void start(){
  String stunAddressStr=null;
  int port=-1;
  stunAddressStr=NetaddrActivator.getConfigurationService().getString(PROP_STUN_SERVER_ADDRESS);
  String portStr=NetaddrActivator.getConfigurationService().getString(PROP_STUN_SERVER_PORT);
  this.localHostFinderSocket=initRandomPortSocket();
  if (stunAddressStr == null || portStr == null) {
    useStun=false;
    stunServerAddress=new StunAddress(DEFAULT_STUN_SERVER_ADDRESS,DEFAULT_STUN_SERVER_PORT);
    logger.info("String_Node_Str" + stunAddressStr + "String_Node_Str"+ portStr+ "String_Node_Str");
  }
 else {
    try {
      port=Integer.valueOf(portStr).intValue();
    }
 catch (    NumberFormatException ex) {
      logger.error(portStr + "String_Node_Str" + "String_Node_Str",ex);
      port=3478;
    }
    stunServerAddress=new StunAddress(stunAddressStr,port);
    detector=new SimpleAddressDetector(stunServerAddress);
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + "String_Node_Str" + stunAddressStr + "String_Node_Str"+ port);
    }
    detector.start();
    logger.debug("String_Node_Str");
    NetaddrActivator.getConfigurationService().addVetoableChangeListener(PROP_STUN_SERVER_ADDRESS,this);
    NetaddrActivator.getConfigurationService().addVetoableChangeListener(PROP_STUN_SERVER_PORT,this);
    launchStunServerTest();
  }
}

Fixed version (ground truth):
/** 
 * Initializes this network address manager service implementation and starts all processes/threads associated with this address manager, such as a stun firewall/nat detector, keep alive threads, binding lifetime discovery threads and etc. The method may also be used after a call to stop() as a reinitialization technique.
 */
public void start(){
  String stunAddressStr=null;
  int port=-1;
  stunAddressStr=NetaddrActivator.getConfigurationService().getString(PROP_STUN_SERVER_ADDRESS);
  String portStr=NetaddrActivator.getConfigurationService().getString(PROP_STUN_SERVER_PORT);
  this.localHostFinderSocket=initRandomPortSocket();
  if (stunAddressStr == null || portStr == null) {
    useStun=false;
    logger.info("String_Node_Str" + stunAddressStr + "String_Node_Str"+ portStr+ "String_Node_Str");
  }
 else {
    try {
      port=Integer.valueOf(portStr).intValue();
    }
 catch (    NumberFormatException ex) {
      logger.info(portStr + "String_Node_Str" + "String_Node_Str",ex);
      port=DEFAULT_STUN_SERVER_PORT;
    }
    stunServerAddress=new StunAddress(stunAddressStr,port);
    detector=new SimpleAddressDetector(stunServerAddress);
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + "String_Node_Str" + stunAddressStr + "String_Node_Str"+ port);
    }
    detector.start();
    logger.debug("String_Node_Str");
    NetaddrActivator.getConfigurationService().addVetoableChangeListener(PROP_STUN_SERVER_ADDRESS,this);
    NetaddrActivator.getConfigurationService().addVetoableChangeListener(PROP_STUN_SERVER_PORT,this);
    launchStunServerTest();
  }
}