Program: 124774
Project: 124774
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();
  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]);
}

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 (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();
      Object mapRTicketDuration=serviceProperties.getMaprTDuration();
      try {
        ReflectionUtils.invokeStaticMethod("String_Node_Str",classLoader,"String_Node_Str",new Object[]{mapRTicketCluster,mapRTicketDuration});
      }
 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();
    Object mapRTicketDuration=serviceProperties.getMaprTDuration();
    try {
      String decryptedPassword=PasswordEncryptUtil.encryptPassword(mapRTicketPassword);
      ReflectionUtils.invokeStaticMethod("String_Node_Str",classLoader,"String_Node_Str",new Object[]{false},Boolean.class);
      ReflectionUtils.invokeStaticMethod("String_Node_Str",classLoader,"String_Node_Str",new Object[]{mapRTicketCluster,mapRTicketUsername,decryptedPassword,mapRTicketDuration});
    }
 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]);
}