title: Exception in thread "main" java.lang.NoSuchMethodError: gherkin.formatter.model.Scenario.getId()Ljava/lang/String;
body: <p>I am writing a cucumber code to automate comparison between xml files. But getting 
  <strong>Exception in thread "main" java.lang.NoSuchMethodError: gherkin.formatter.model.Scenario.getId()Ljava/lang/String;</strong>
   when i am running the feature file . I am using gherkin 2.12.2.</p>
  
  <p><strong>My Feature File</strong></p>
  
  <pre><code>Feature: File Comparator
  
  Scenario Outline: Comparing XML Files
  
  Given I have &lt;XML1&gt; and &lt;XML2&gt; in &lt;Location1&gt; and &lt;Location2&gt;
  When I compare &lt;XML1&gt; to &lt;XML2&gt;
  Then Both should be the same
  Exmaples:
  
  | XML1| location1 | XML2 | location2|
  
  | XML1.xml| C:/Filepath1| XML2.xml| C:/Filepath2|
  </code></pre>
  
  <p><strong>MY StepDefinition</strong></p>
  
  <pre><code>public class FCStepDefinition {
  
  static Logger log = Logger.getLogger(FCStepDefinition.class);
  
  @Given("^I have ([^\"]*) and ([^\"]*) in ([^\"]*) and ([^\"]*)$")
  public static void checkXML1(String xml1, String xml2, String location1, String location2) throws Throwable 
  {
      log.info("File name" + xml1 + "and" + xml2 +"from the paths" + location1 + "and" + location2 + "were located");
      System.out.println("File name" + xml1 + "and" + xml2 +"from the paths" + location1 + "and" + location2 + "were located");
  }
  
  @When("^I compare ([^\"]*) to ([^\"]*)$")
  public static void compareXMLs(String xml1, String location1,String xml2, String location2) throws Exception 
  {
      try {
          log.info("Comparing the XML1 to XML2.");
          Assert.assertTrue("\n XML1 is not similar to XML2",XMLComparator.compareXMLs(location1 + xml1, location2 + xml2));
      }
  
      finally {
  
      }
  }
  
  @Then("^Both should be the same$")
  public static void verifyOutput(String expectedSCH, String outputLocation) throws Throwable 
  {
      log.info("The Files matches");
  }}
  </code></pre>
  
  <p><strong>My Runner</strong></p>
  
  <pre><code>package cucumber;
  
  import org.junit.runner.RunWith;
  import cucumber.api.CucumberOptions;
  import cucumber.api.junit.Cucumber;
  
  @RunWith(Cucumber.class)
  @CucumberOptions(
  
      format = {"pretty", "html:target/html/", "json:target/json/"},
      features = "src/features", 
      strict = true
      )
  public class FCRunner {
  
  }
  </code></pre>