title: Bean property 'xxx' is not writable or has an invalid setter method
body: <p>I have spring web application. I have defined the controller bean which takes the bean of service as property. Also service bean takes the Dao. Dao is tested and working fine. Now the problem with service. Actually i'd make sure about the setters there !</p>
  
  <p>so what is the problem ?</p>
  
  <p>Controller Bean :</p>
  
  <pre><code>&lt;bean id="listTypeController" class="me.web.servlet.controller.ListTypeController"&gt;
  &lt;property name="typeService" ref="typeService" /&gt;
  &lt;/bean&gt;  
  </code></pre>
  
  <p>Service Bean :</p>
  
  <pre><code>&lt;bean id="typeService"class="me.general.service.impl.TypeServiceImpl"&gt;
  &lt;property name="genericDao" ref="genericDao" /&gt;
  &lt;property name="typeDao" ref="typeDao" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Service class:</p>
  
  <pre><code> public class TypeServiceImpl implements TypeService {
  
      private TypeDao typeDao;
          private GenericDao genericDao;
      public TypeDao getTypeDao() {
      return typeDao;
  }
  
  public GenericDao getGenericDao() {
      return genericDao;
  }
  public void setTypeDao(TypeDao typeDao) {
      this.typeDao = typeDao;
  }
  
  public void setGenericDao(GenericDao genericDao) {
      this.genericDao = genericDao;
  }
  }
  </code></pre>
  
  <p>List Controller:</p>
  
  <pre><code>public class ListTypeController {
  
  public static final String SEARCH_TYPE_FORM_ATTRIBUTE_NAME = "SearchTypeForm";
  
  private TypeService typeService;
  
  @ModelAttributeSEARCH_TYPE_FORM_ATTRIBUTE_NAME)
  public SearchTypeForm createForm() {
      SearchTypeForm form = new SearchTypeForm();
      form.setPageSize(SystemConfiguration.getCurrentConfiguration().getDefaultPageSize());
      form.setActive(Boolean.TRUE);
      return form;
  }
  
  @RequestMapping("/administration/types")
  public String listTypes(@ModelAttribute(SEARCH_TYPE_FORM_ATTRIBUTE_NAME) SearchTypeForm form,
                               Model model) {
      Page&lt;Type&gt; all = typeService.findTypes(form);
      model.addAttribute("all", all);
      return "/master/general/List";
  }
  
  
  public void setTypeServic(TypeService typeService) {
      this.typeService = typeService;
  }
  }
  </code></pre>
  
  <p>The Error :</p>
  
  <pre><code>Invalid property 'typeService' of bean class 
  [me.web.servlet.controller.ListTypeController]: 
  Bean property 'typeService' is not writable or has an invalid setter method.
  Does the parameter type of the setter match the return type of the getter?
  </code></pre>