title: I'm getting Invocation of init method failed; nested exception is java.lang.IllegalArgumentException on Repository class method Invocation
body: <p>I'm getting following exception while starting my service</p>
  <p>... org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'levelDetailsService': Unsatisfied dependency expressed through field 'storeRepo'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storeRepo': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Validation failed for query for method public abstract java.util.List com.tcs.opt.promotion.masterservice.dao.repo.StoreRepo.getStoreList(java.lang.Integer,java.util.List,java.lang.Character)! ...</p>
  <p><strong>This is my method call for repository in service layer</strong></p>
  <pre><code>List&lt;Object[]&gt; storeObjs=storeRepo.getStoreList(salesOrgId,storeRequestDTO.getClassId(),'Y');
  </code></pre>
  <p><em>Here salesOrgId is Integer, storeRequestDTO.getClassId() is List of Integer</em></p>
  <p><strong>Repo class</strong></p>
  <pre><code>@Repository
  public interface StoreRepo extends JpaRepository&lt;StoreEntity, Integer&gt; {
      
  
      @Query(&quot;select str.store_id,str.store_number,str.store_name,str.city,str.state from StoreEntity str left outer join master.promo_market_store pstr &quot;
              + &quot;on str.store_id=pstr.store_id where str.salesOrgID=:salesOrgID and pstr.level_id in (:levelIdList) and str.activeF=:activeF&quot;)
      List&lt;Object[]&gt; getStoreList(@Param(&quot;salesOrgID&quot;) Integer salesOrgID,@Param(&quot;levelIdList&quot;) List&lt;Integer&gt; levelIdList,@Param(&quot;activeF&quot;) Character activeF);
  
  }
  </code></pre>
  <p>Entity Class</p>
  <pre><code>@Entity
  @Table(name=MasterQueryConstants.STORE_TBL,schema=MasterQueryConstants.MASTER_SCHEMA)
  public class StoreEntity implements Serializable{
      private static final long serialVersionUID = 1L;
      @Id
      @Column(name=&quot;store_id&quot;)
      private Integer storeId;
      @Column(name=&quot;sales_org_id&quot;)
      private Integer salesOrgID;
      @Column(name=&quot;store_number&quot;)
      private Integer storeNumber;
      @Column(name=&quot;store_name&quot;)
      private String storeName;
      @Column(name=&quot;store_description&quot;)
      private String storeDescription;
      @Column(name=&quot;active_f&quot;)
      private Character activeF;
      @Column(name=&quot;city&quot;)
      private String city;
      @Column(name=&quot;state&quot;)
      private String state;
      
      
      public Integer getStoreId() {
          return storeId;
      }
      public void setStoreId(Integer storeId) {
          this.storeId = storeId;
      }
      public Integer getSalesOrgID() {
          return salesOrgID;
      }
      public void setSalesOrgID(Integer salesOrgID) {
          this.salesOrgID = salesOrgID;
      }
      public Integer getStoreNumber() {
          return storeNumber;
      }
      public void setStoreNumber(Integer storeNumber) {
          this.storeNumber = storeNumber;
      }
      public String getStoreName() {
          return storeName;
      }
      public void setStoreName(String storeName) {
          this.storeName = storeName;
      }
      public String getStoreDescription() {
          return storeDescription;
      }
      public void setStoreDescription(String storeDescription) {
          this.storeDescription = storeDescription;
      }
      public Character getActiveF() {
          return activeF;
      }
      public void setActiveF(Character activeF) {
          this.activeF = activeF;
      }
      public String getCity() {
          return city;
      }
      public void setCity(String city) {
          this.city = city;
      }
      public String getState() {
          return state;
      }
      public void setState(String state) {
          this.state = state;
      }
      
      public StoreEntity()
      {
          /**
           * Default Constructor
           */
      }
  }
  </code></pre>
  <p>Please help me to resolve this issue,</p>