title: ParametersInterceptor error: Unexpected Exception caught, Error setting expression
body: <p>I have a table inside a form that contains dropdowns and a hidden <code>input</code>.</p>
  
  <p><strong><code>JSP</code>:</strong></p>
  
  <pre class="lang-jsp prettyprint-override"><code>&lt;form action="modifyfaculty" method="post"&gt;
      &lt;table&gt;
          &lt;thead class="center"&gt;
              &lt;tr&gt;
                  &lt;!-- column names here --&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
  
          &lt;tbody&gt;
              &lt;c:forEach var="professor" items="${facultyList}"&gt;
                  &lt;tr&gt;
                      &lt;!-- more &lt;td&gt; --&gt;
  
                      &lt;td align="center"&gt;
                          &lt;c:choose&gt;
                              &lt;c:when test="${professor.profEmplStatus.equals('FULL')}"&gt;
                                  &lt;select name="profEmplStatus" required&gt;
                                      &lt;option value="FULL" selected&gt;FULL&lt;/option&gt;
                                      &lt;option value="PART"&gt;PART&lt;/option&gt;
                                      &lt;option value="RET"&gt;RET&lt;/option&gt;
                                      &lt;option value="TRMTD"&gt;TRMTD&lt;/option&gt;
                                  &lt;/select&gt;
                              &lt;/c:when&gt;
  
                              &lt;!-- more &lt;c:when&gt; blocks --&gt;
                          &lt;/c:choose&gt;
                      &lt;/td&gt;
  
                      &lt;td align="center"&gt;
                          &lt;c:choose&gt;
                              &lt;c:when test="${professor.profDept.equals('BSCS-SE')}"&gt;
                                  &lt;select name="profDept" required&gt;
                                      &lt;option value="BA-MMA"&gt;BA-MMA&lt;/option&gt;
                                      &lt;option value="BFDT"&gt;BFDT&lt;/option&gt;
                                      &lt;option value="BS-AN"&gt;BS-AN&lt;/option&gt;
                                      &lt;option value="BS-GPD"&gt;BS-GPD&lt;/option&gt;
                                      &lt;option value="BSBA-FM"&gt;BSBA-FM&lt;/option&gt;
                                      &lt;option value="BSBA-MKT"&gt;BSBA-MKT&lt;/option&gt;
                                      &lt;option value="BSCS-SE" selected&gt;BSCS-SE&lt;/option&gt;
                                      &lt;option value="BSIT-WD"&gt;BSIT-WD&lt;/option&gt;
                                      &lt;option value="GENED"&gt;GENED&lt;/option&gt;
                                  &lt;/select&gt;
                              &lt;/c:when&gt;
  
                              &lt;!-- more &lt;c:when&gt; blocks --&gt;
                          &lt;/c:choose&gt;
                      &lt;/td&gt;
  
                      &lt;td class="center"&gt;
                          &lt;input type="hidden" name="profId" value="${professor.profId}" /&gt;
                          &lt;input type="submit" value="Save" /&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/c:forEach&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong><code>ModifyFacultyAction</code>:</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>public class ModifyFacultyAction extends ActionSupport {
      private static final long serialVersionUID = 1L;
  
      private Integer profId;
      private String profEmplStatus;
      private String profDept;
  
      @Override
      public String execute() {
          FacultyManager fm = new FacultyManager();
          fm.modifyFaculty("professor_employment_status", profEmplStatus, profId);
          fm.modifyFaculty("professor_department", profDept, profId);
  
          return SUCCESS;
      }
  
      public Integer getProfId() {
          return profId;
      }
  
      public void setProfId(Integer profId) {
          this.profId = profId;
      }
  
      public String getProfEmplStatus() {
          return profEmplStatus;
      }
  
      public void setProfEmplStatus(String profEmplStatus) {
          this.profEmplStatus = profEmplStatus;
      }
  
      public String getProfDept() {
          return profDept;
      }
  
      public void setProfDept(String profDept) {
          this.profDept = profDept;
      }
  }
  </code></pre>
  
  <p><strong><code>struts.xml</code>:</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;action name="modifyfaculty" class="com.mypackage.action.ModifyFacultyAction"&gt;
      &lt;interceptor-ref name="notauth" /&gt;
      &lt;interceptor-ref name="defaultStack" /&gt;
  
      &lt;result type="redirectAction"&gt;
          &lt;param name="actionName"&gt;viewfaculty&lt;/param&gt;
      &lt;/result&gt;
  
      &lt;result name="input" type="redirectAction"&gt;
          &lt;param name="actionName"&gt;viewfaculty&lt;/param&gt;
      &lt;/result&gt;
  
      &lt;result name="index" type="redirect"&gt;/index.jsp&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p><strong>Output:</strong>
  <img src="https://i.stack.imgur.com/7Vn46.png" alt="enter image description here"></p>
  
  <p>However, upon choosing a new value from the dropdown and clicking <code>Save</code>, I am receiving an error. Below is the <code>devMode</code> log:</p>
  
  <pre><code>Jan 05, 2015 11:34:43 PM com.opensymphony.xwork2.interceptor.ParametersInterceptor error
  SEVERE: Developer Notification (set struts.devMode to false to disable this message):
  Unexpected Exception caught setting 'profId' on 'class com.mypackage.action.ModifyFacultyAction: Error setting expression 'profId' with value ['100005', '100006', '100007', '100008', '100009', '100010', '100011', ]
  Jan 05, 2015 11:34:43 PM com.opensymphony.xwork2.util.LocalizedTextUtil warn
  WARNING: Missing key [invalid.fieldvalue.profId] in bundles [[org/apache/struts2/struts-messages, com/opensymphony/xwork2/xwork-messages]]!
  </code></pre>
  
  <p>How to resolve this?</p>