title: Error while saving JSP form: .lang.NoSuchMethodError: com.abc.bean.enqformbean.EnqBean.setEnqAllocation(I)V
body: <p>Problem while saving a form data into Oracle Database.</p>
  <p>first, the problem was:</p>
  <pre><code> org.hibernate.PropertyAccessException: Null value was assigned to a  
  property of primitive type setter of 
  com.abc.bean.enqformbean.EnqBean.enqAllocation
  </code></pre>
  <p>In bean class the variable declared as <code>Integer enqAllocation</code>
  and in setter and getter method, it was <code>int</code>.</p>
  <p>Changed the setter and getter method of that variable to <code>Integer</code> and now I'm getting an error:</p>
  <pre><code> java.lang.NoSuchMethodError: 
   com.abc.bean.enqformbean.EnqBean.setEnqAllocation(I)V
  </code></pre>
  <p>Don't know what this error mean. The class path is generated and restarted the server too. But getting the above error while saving the data. Could please anyone tell me what the above error mean?</p>
  <p><strong><code>EnqBean</code> class:</strong></p>
  <pre><code>private Integer enqAllocation;
  
  public Integer getEnqAllocation() {
      return enqAllocation;
  }
  
  public void setEnqAllocation(Integer enqAllocation) {
      this.enqAllocation= enqAllocation;
  }
  </code></pre>