title: HQL return java.lang.NoSuchMethodError
body: <p>I am trying to set parameter in HQL this way:</p>
  
  <pre><code> Query query = session.createQuery("from Device d " +
                      "left join fetch d.tradeInOldDevice " +
                      "left join fetch d.tradeInNewDevice " +
                      "left join fetch d.warranty "  +
                      "where d.owningCompany.customerRefId =:customerId ");
  
  
                query.setString("customerId", "someHardCodeCustomerId");
  
  
              Set&lt;Device&gt; customerDevices= (Set&lt;Device&gt;) query.list();
  </code></pre>
  
  <p>I am gettig that error:</p>
  
  <p>ספט 24, 2013 </p>
  
  <pre><code>2:36:02 PM org.apache.catalina.core.StandardWrapperValve invoke
  SEVERE: Servlet.service() for servlet [ServicesServlet] in context with path [] threw exception [Servlet execution threw an exception] with root cause
  java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I
      at org.hibernate.hql.ast.HqlSqlWalker.generateNamedParameter(HqlSqlWalker.java:945)
  </code></pre>
  
  <p>Hibernate dependcies:</p>
  
  <pre><code> &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
              &lt;version&gt;5.0.1.Final&lt;/version&gt;
          &lt;/dependency&gt;
  
  
  &lt;!-- Hibernate --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-c3p0&lt;/artifactId&gt;
              &lt;version&gt;3.6.10.Final&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>I am running hibernate on tomcat inside Spring container.</p>
  
  <p>I checked maven dependencies in My project I have Maven: antlr:antlr:2.7.2.</p>
  
  <p>What could be wrong here?</p>
  
  <p>thanks.</p>