Program: 29075
Project: 29075
Buggy source:
protected MQJMXConnectorInfo _getMQJMXConnectorInfo(String targetName,JmsService jmsService,Class mqRAClassName,ServerContext serverContext,Config config,Domain domain) throws ConnectorRuntimeException {
  try {
    String connectionURL=null;
    MQAddressList mqadList=new MQAddressList();
    if (getTypeForTarget(targetName) == CommandTarget.DAS) {
      connectionURL=getDefaultAddressList(jmsService).toString();
    }
 else {
      logger.log(Level.FINE,"String_Node_Str");
      logger.log(Level.FINE,"String_Node_Str");
      String domainurl=serverContext.getServerConfigURL();
      JmsService serverJmsService=getJmsServiceOfStandaloneServerInstance(targetName,config,domain);
      mqadList.setJmsService(serverJmsService);
      mqadList.setTargetName(targetName);
      mqadList.setup(false);
      connectionURL=mqadList.toString();
    }
    logger.log(Level.FINE,"String_Node_Str" + connectionURL);
    String adminUserName=null;
    String adminPassword=null;
    JmsHost jmsHost=mqadList.getDefaultJmsHost(jmsService);
    if (jmsHost != null) {
      adminUserName=jmsHost.getAdminUserName();
      adminPassword=JmsRaUtil.getUnAliasedPwd(jmsHost.getAdminPassword());
    }
 else {
      logger.log(Level.FINE,"String_Node_Str");
    }
    ResourceAdapter raInstance=getConfiguredRA(mqRAClassName,connectionURL,adminUserName,adminPassword);
    String jmxServiceURL=null, jmxServiceURLList=null;
    Map<String,?> jmxConnectorEnv=null;
    Method[] methds=raInstance.getClass().getMethods();
    for (int i=0; i < methds.length; i++) {
      Method m=methds[i];
      if (m.getName().equalsIgnoreCase("String_Node_Str" + JMXSERVICEURLLIST)) {
        jmxServiceURLList=(String)m.invoke(raInstance,new Object[]{});
      }
 else       if (m.getName().equalsIgnoreCase("String_Node_Str" + JMXCONNECTORENV)) {
        jmxConnectorEnv=(Map<String,?>)m.invoke(raInstance,new Object[]{});
      }
    }
    logger.log(Level.FINE,"String_Node_Str" + jmxServiceURLList);
    logger.log(Level.FINE,"String_Node_Str" + jmxConnectorEnv);
    jmxServiceURL=getFirstJMXServiceURL(jmxServiceURLList);
    MQJMXConnectorInfo mqInfo=new MQJMXConnectorInfo(targetName,ActiveJmsResourceAdapter.getBrokerInstanceName(jmsService),jmsService.getType(),jmxServiceURL,jmxConnectorEnv);
    return mqInfo;
  }
 catch (  Exception e) {
    e.printStackTrace();
    ConnectorRuntimeException cre=new ConnectorRuntimeException(e.getMessage());
    cre.initCause(e);
    throw cre;
  }
}

Fixed version (ground truth):
protected MQJMXConnectorInfo _getMQJMXConnectorInfo(String targetName,JmsService jmsService,Class mqRAClassName,ServerContext serverContext,Config config,Domain domain) throws ConnectorRuntimeException {
  try {
    String connectionURL=null;
    MQAddressList mqadList=new MQAddressList();
    if (getTypeForTarget(targetName) == CommandTarget.DAS) {
      connectionURL=getDefaultAddressList(jmsService).toString();
    }
 else {
      logger.log(Level.FINE,"String_Node_Str");
      logger.log(Level.FINE,"String_Node_Str");
      JmsService serverJmsService=getJmsServiceOfStandaloneServerInstance(targetName,config,domain);
      mqadList.setJmsService(serverJmsService);
      mqadList.setTargetName(targetName);
      mqadList.setup(false);
      connectionURL=mqadList.toString();
    }
    logger.log(Level.FINE,"String_Node_Str" + connectionURL);
    String adminUserName=null;
    String adminPassword=null;
    JmsHost jmsHost=mqadList.getDefaultJmsHost(jmsService);
    if (jmsHost != null) {
      adminUserName=jmsHost.getAdminUserName();
      adminPassword=JmsRaUtil.getUnAliasedPwd(jmsHost.getAdminPassword());
    }
 else {
      logger.log(Level.FINE,"String_Node_Str");
    }
    ResourceAdapter raInstance=getConfiguredRA(mqRAClassName,connectionURL,adminUserName,adminPassword);
    String jmxServiceURL=null, jmxServiceURLList=null;
    Map<String,?> jmxConnectorEnv=null;
    Method[] methds=raInstance.getClass().getMethods();
    for (int i=0; i < methds.length; i++) {
      Method m=methds[i];
      if (m.getName().equalsIgnoreCase("String_Node_Str" + JMXSERVICEURLLIST)) {
        jmxServiceURLList=(String)m.invoke(raInstance,new Object[]{});
      }
 else       if (m.getName().equalsIgnoreCase("String_Node_Str" + JMXCONNECTORENV)) {
        jmxConnectorEnv=(Map<String,?>)m.invoke(raInstance,new Object[]{});
      }
    }
    logger.log(Level.FINE,"String_Node_Str" + jmxServiceURLList);
    logger.log(Level.FINE,"String_Node_Str" + jmxConnectorEnv);
    jmxServiceURL=getFirstJMXServiceURL(jmxServiceURLList);
    MQJMXConnectorInfo mqInfo=new MQJMXConnectorInfo(targetName,ActiveJmsResourceAdapter.getBrokerInstanceName(jmsService),jmsService.getType(),jmxServiceURL,jmxConnectorEnv);
    return mqInfo;
  }
 catch (  Exception e) {
    e.printStackTrace();
    ConnectorRuntimeException cre=new ConnectorRuntimeException(e.getMessage());
    cre.initCause(e);
    throw cre;
  }
}