Program: 124763
Project: 124763
Buggy source:
@Override protected Object check(HadoopServiceProperties serviceProperties,ClassLoader classLoader) throws Exception {
  Object configuration=Class.forName("String_Node_Str",true,classLoader).newInstance();
  Object conf=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{configuration});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",serviceProperties.getJobTracker()});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  setHadoopProperties(conf,serviceProperties);
  boolean useKrb=serviceProperties.isUseKrb();
  boolean useMaprTicket=serviceProperties.isMaprT();
  if (useKrb) {
    String mrPrincipal=serviceProperties.getJtOrRmPrincipal();
    ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",mrPrincipal});
    boolean useKeytab=serviceProperties.isUseKeytab();
    if (useKeytab) {
      String keytabPrincipal=serviceProperties.getKeytabPrincipal();
      String keytab=serviceProperties.getKeytab();
      ReflectionUtils.invokeStaticMethod("String_Node_Str",classLoader,"String_Node_Str",new String[]{keytabPrincipal,keytab});
    }
    if (useMaprTicket) {
      System.setProperty("String_Node_Str","String_Node_Str");
      System.setProperty("String_Node_Str","String_Node_Str");
      System.setProperty("String_Node_Str","String_Node_Str");
      System.setProperty("String_Node_Str","String_Node_Str");
      String mapRTicketCluster=serviceProperties.getMaprTCluster();
      String mapRTicketDuration=serviceProperties.getMaprTDuration();
      Long desiredTicketDurInSecs=86400L;
      if (mapRTicketDuration != null && StringUtils.isNotBlank(mapRTicketDuration)) {
        desiredTicketDurInSecs=Long.parseLong(mapRTicketDuration);
      }
      try {
        Object mapRClientConfig=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{});
        ReflectionUtils.invokeMethod(mapRClientConfig,"String_Node_Str",new Object[]{mapRTicketCluster,desiredTicketDurInSecs});
      }
 catch (      Exception e) {
        throw new SQLException(e);
      }
    }
  }
  if (useMaprTicket) {
    System.setProperty("String_Node_Str","String_Node_Str");
    System.setProperty("String_Node_Str","String_Node_Str");
    System.setProperty("String_Node_Str","String_Node_Str");
    String mapRTicketUsername=serviceProperties.getUserName();
    String mapRTicketPassword=serviceProperties.getMaprTPassword();
    String mapRTicketCluster=serviceProperties.getMaprTCluster();
    String mapRTicketDuration=serviceProperties.getMaprTDuration();
    Long desiredTicketDurInSecs=86400L;
    if (mapRTicketDuration != null && StringUtils.isNotBlank(mapRTicketDuration)) {
      desiredTicketDurInSecs=Long.parseLong(mapRTicketDuration);
    }
    try {
      String decryptedPassword=PasswordEncryptUtil.encryptPassword(mapRTicketPassword);
      Object mapRClientConfig=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{});
      ReflectionUtils.invokeMethod(mapRClientConfig,"String_Node_Str",new Object[]{false},boolean.class);
      ReflectionUtils.invokeMethod(mapRClientConfig,"String_Node_Str",new Object[]{mapRTicketCluster,mapRTicketUsername,decryptedPassword,desiredTicketDurInSecs});
    }
 catch (    Exception e) {
      throw new SQLException(e);
    }
  }
  Object jc=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{conf});
  return ReflectionUtils.invokeMethod(jc,"String_Node_Str",new Object[0]);
}

Fixed version (ground truth):
@Override protected Object check(HadoopServiceProperties serviceProperties,ClassLoader classLoader) throws Exception {
  Object configuration=Class.forName("String_Node_Str",true,classLoader).newInstance();
  Object conf=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{configuration});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",serviceProperties.getJobTracker()});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  setHadoopProperties(conf,serviceProperties);
  boolean useKrb=serviceProperties.isUseKrb();
  boolean useMaprTicket=serviceProperties.isMaprT();
  if (useMaprTicket) {
    setMaprTicketConfig(serviceProperties,classLoader,useKrb);
  }
  if (useKrb) {
    String mrPrincipal=serviceProperties.getJtOrRmPrincipal();
    ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",mrPrincipal});
    boolean useKeytab=serviceProperties.isUseKeytab();
    if (useKeytab) {
      String keytabPrincipal=serviceProperties.getKeytabPrincipal();
      String keytab=serviceProperties.getKeytab();
      ReflectionUtils.invokeStaticMethod("String_Node_Str",classLoader,"String_Node_Str",new String[]{keytabPrincipal,keytab});
    }
  }
  Object jc=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{conf});
  return ReflectionUtils.invokeMethod(jc,"String_Node_Str",new Object[0]);
}