Program: 81755
Project: 81755
Buggy source:
/** 
 * Creates a job for the linked data server
 * @see
 * @since 1.0
 */
private void createJobLDS(){
  HttpSession session=ServletActionContext.getRequest().getSession();
  int addedId=0;
  Connection connection=null;
  connection=new DBConnectionManager().getConnection();
  Statement statement;
  try {
    statement=connection.createStatement();
    ResultSet rs=statement.executeQuery("String_Node_Str");
    if (rs.next()) {
      PreparedStatement preparedStatement=connection.prepareStatement("String_Node_Str",PreparedStatement.RETURN_GENERATED_KEYS);
      preparedStatement.setString(1,rs.getString("String_Node_Str"));
      preparedStatement.setInt(2,rs.getInt("String_Node_Str"));
      preparedStatement.setString(3,rs.getString("String_Node_Str"));
      preparedStatement.setString(4,rs.getString("String_Node_Str"));
      preparedStatement.setString(5,rs.getString("String_Node_Str"));
      preparedStatement.setString(6,rs.getString("String_Node_Str"));
      preparedStatement.setString(7,rs.getString("String_Node_Str"));
      preparedStatement.setString(8,rs.getString("String_Node_Str"));
      preparedStatement.setString(9,rs.getString("String_Node_Str"));
      preparedStatement.executeUpdate();
      ResultSet rs2=preparedStatement.getGeneratedKeys();
      if (rs2.next()) {
        addedId=(int)rs2.getInt(1);
      }
      rs2.close();
      preparedStatement.close();
      URL url;
      HttpURLConnection conn=null;
      try {
        url=new URL("String_Node_Str");
        conn=(HttpURLConnection)url.openConnection();
        conn.setDoOutput(true);
        conn.setRequestMethod("String_Node_Str");
        conn.setRequestProperty("String_Node_Str","String_Node_Str");
        String param="String_Node_Str" + addedId;
        conn.setDoOutput(true);
        DataOutputStream wr=new DataOutputStream(conn.getOutputStream());
        wr.writeBytes(param);
        wr.flush();
        wr.close();
        if (conn.getResponseCode() != HttpURLConnection.HTTP_CREATED) {
          throw new RuntimeException("String_Node_Str" + conn.getResponseCode());
        }
 else {
          session.setAttribute("String_Node_Str",addedId);
        }
        conn.disconnect();
        session.setAttribute("String_Node_Str",true);
        setLdsStarted(true);
        getInfoLDS();
      }
 catch (      MalformedURLException e) {
        logger.error(MessageCatalog._00014_MALFORMED_URL_EXCEPTION,e);
      }
catch (      IOException e) {
        logger.error(MessageCatalog._00012_IO_EXCEPTION,e);
      }
    }
    rs.close();
    statement.close();
    connection.close();
  }
 catch (  SQLException e) {
    logger.error(MessageCatalog._00011_SQL_EXCEPTION,e);
  }
}

Fixed version (ground truth):
/** 
 * Creates a job for the linked data server
 * @see
 * @since 1.0
 */
private void createJobLDS(){
  HttpSession session=ServletActionContext.getRequest().getSession();
  int addedId=0;
  Connection connection=null;
  connection=new DBConnectionManager().getConnection();
  Statement statement;
  try {
    statement=connection.createStatement();
    ResultSet rs=statement.executeQuery("String_Node_Str");
    if (rs.next()) {
      PreparedStatement preparedStatement=connection.prepareStatement("String_Node_Str",PreparedStatement.RETURN_GENERATED_KEYS);
      preparedStatement.setString(1,rs.getString("String_Node_Str"));
      preparedStatement.setInt(2,rs.getInt("String_Node_Str"));
      preparedStatement.setString(3,rs.getString("String_Node_Str"));
      preparedStatement.setString(4,rs.getString("String_Node_Str"));
      preparedStatement.setString(5,rs.getString("String_Node_Str"));
      preparedStatement.setString(6,rs.getString("String_Node_Str"));
      preparedStatement.setString(7,rs.getString("String_Node_Str"));
      preparedStatement.setString(8,rs.getString("String_Node_Str"));
      preparedStatement.setString(9,rs.getString("String_Node_Str"));
      preparedStatement.executeUpdate();
      ResultSet rs2=preparedStatement.getGeneratedKeys();
      if (rs2.next()) {
        addedId=(int)rs2.getInt(1);
      }
      rs2.close();
      preparedStatement.close();
      URL url;
      HttpURLConnection conn=null;
      try {
        url=new URL("String_Node_Str");
        conn=(HttpURLConnection)url.openConnection();
        conn.setDoOutput(true);
        conn.setRequestMethod("String_Node_Str");
        conn.setRequestProperty("String_Node_Str","String_Node_Str");
        String param="String_Node_Str" + addedId;
        conn.setDoOutput(true);
        DataOutputStream wr=new DataOutputStream(conn.getOutputStream());
        wr.writeBytes(param);
        wr.flush();
        wr.close();
        if (conn.getResponseCode() != HttpURLConnection.HTTP_CREATED) {
          throw new RuntimeException("String_Node_Str" + conn.getResponseCode());
        }
 else {
          session.setAttribute("String_Node_Str",addedId);
        }
        conn.disconnect();
        session.setAttribute("String_Node_Str",true);
        setLdsStarted(true);
      }
 catch (      MalformedURLException e) {
        logger.error(MessageCatalog._00014_MALFORMED_URL_EXCEPTION,e);
      }
catch (      IOException e) {
        logger.error(MessageCatalog._00012_IO_EXCEPTION,e);
      }
    }
    rs.close();
    statement.close();
    connection.close();
  }
 catch (  SQLException e) {
    logger.error(MessageCatalog._00011_SQL_EXCEPTION,e);
  }
}