I am working on  Strut based Application. I am facing the error  while
submitting a form.
I have attached error message , JSP and strut config file.
Please let me know the possible reasons of the error.

Thanks



Error Message:-

[28/Mar/2007:09:27:54] failure (18159): for host 129.146.11.110 trying
to POST
/DSTWeb2/updateRequest.do;jsessionid=8665EE56C9DC0D375A8E64CDADB074FA,
service-j2ee reports: StandardWrapperValve[action]: WEB2792:
Servlet.service() for servlet action threw exception
javax.servlet.ServletException: BeanUtils.populate
       at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
       at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
       at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
       at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
       at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
       at
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
       at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
       at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
       at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
       at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
       at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
----- Root Cause -----
java.lang.IllegalArgumentException: argument type mismatch
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
       at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
       at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
       at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)
       at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
       at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
       at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
       at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
       at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
       at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
       at
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
       at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
       at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
       at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
       at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
       at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)

*********************************

Struts Config :-

       <action path="/updateRequest"
type="com.csc.apollo.action.UpdateRequestAction" name="requestForm"
scope="session" validate="true" input=".updateRequest">
           <forward name="updateRequest" path=".updateRequest"></forward>
           <forward name="failure" path=".error"></forward>
           <forward name="success" path=".updateRequest"></forward>
       </action>

*********************************

JSP :-

<%@ taglib uri="struts/bean" prefix="bean" %>
<%@ taglib uri="struts/html" prefix="html" %>
<%@ taglib uri="struts/logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

<!-- Message to be displayed -->
<html:errors />
<html:messages id="message" message="true">
   <table border="0" width="100%" bgcolor="#FFFFFF" cellspacing="0"
       cellpadding="0">
       <tr>
           <td height="10">&nbsp;</td>
       </tr>
   </table>
   <table width="100%" cellspacing="1" bgcolor="green">
       <tr>
           <td>
           <table width="100%" border="0" cellpadding="0" cellspacing="0"
               bgcolor="#FFFFFF">
               <tr>
                   <td width="4%"><IMG border="0"
src="images/information_icon.gif"
                       width="28" height="27"></td>

                   <td width="96%"><b><bean:write name="message"
/></b></td>
               </tr>
           </table>
           </td>
       </tr>
   </table>

</html:messages>
<!-- End Messages -->
<html:form action="/updateRequest" name="requestForm">

   <table border="0" width="100%" cellspacing="0" cellpadding="0">
       <TBODY>
           <tr>
               <td>&nbsp;</td>
           </tr>
           <tr>
               <td class="content_headergroup_name"
valign="bottom">&nbsp;<bean:message
                   key="label.updateRequest" /></td>
           </tr>
           <tr>
               <td bgcolor="#000000" height="1"></td>
           </tr>

       </TBODY>
   </table>


   <TABLE width="100%" bgcolor="#C9C9C9" border="0" cellpadding="2"
       cellspacing="2">

       <TBODY>
           <tr>
               <td colspan="7" height="8"></td>
           </tr>

           <TR>
               <td width="5%">&nbsp;&nbsp;</td>
               <TD width="14%"><bean:message key="label.ghpatName" /></TD>
               <TD width="20%"><bean:write name="requestForm"
property="ghpatName" /></TD>

               <TD width="13%"><bean:message key="label.portfolioName"
/></TD>
               <TD width="20%"><bean:write
name="requestForm"property="portfolioName"
/></TD>

               <TD width="13%"><bean:message key="label.appName" /></TD>
               <TD width="20%"><bean:write
name="requestForm"property="appName" /></TD>
           </TR>

           <TR>
               <TD colspan="7" height="8"></TD>
           </TR>
           <TR>
               <TD width="5%">&nbsp;&nbsp;</TD>
               <TD width="14%"><bean:message
key="label.category_of_work" /></TD>
               <TD width="20%"><bean:write
name="requestForm"property="category_of_work" /></TD>
               <TD width="13%"><bean:message
key="label.priority_of_patching" /></TD>
               <TD width="20%"><bean:write name="requestForm"
property="priority_of_patching" /></TD>
                               <TD width="13%"><bean:message
key="label.submittedBy" /></TD>
               <TD width="20%"><bean:write name="requestForm"
property="submittedBy" /></TD>
           </TR>

           <TR>
               <TD colspan="9" height="8"></TD>
           </TR>
           <TR>
               <TD width="5%">&nbsp;&nbsp;</TD>
               <TD width="10%"><bean:message key="label.server" /></TD>
               <TD width="20%"><bean:write
name="requestForm"property="server" /></TD>
               <TD width="10%"><bean:message key="label.criticality"
/></TD>
               <TD width="10%"><bean:write name="requestForm"
property="criticality" /></TD>
                               <TD width="10%"><bean:message
key="label.environment" /></TD>
               <TD width="15%"><bean:write name="requestForm"
property="environment" /></TD>
                               <TD width="10%"><bean:message
key="label.geo" /></TD>
               <TD width="10%"><bean:write name="requestForm"
property="geo" /></TD>
           </TR>
       </TBODY>
</TABLE>

<TABLE width="100%" bgcolor="#C9C9C9" border="0" cellpadding="2"
cellspacing="2">
           <TBODY>
                       <TR>
                           <tr>
               <HR COLOR="#FF0000" SIZE="3">
                       </tr>
                           <tr>
               <td colspan="3" height="5"></td>
                           </tr>
                           <tr>
               <td width="5%">&nbsp;&nbsp;</td>
               <Td width=25%><bean:message key="label.os_section" /></TD>
               <td width="70%">&nbsp;&nbsp;</td>
                          </tr>
           </TR>

                       <TR>
               <TD colspan="7" height="8"></TD>
           </TR>

           <TR>
               <TD width="5%">&nbsp;&nbsp;</TD>
               <TD width="15%"><bean:message
key="label.sys_patch_applied" /></TD>
               <TD width="10%"> <html:select name="requestForm"
property="sys_patch_applied">
                   <html:options property="appliedLabels"
name="requestForm"
                       labelName="requestForm"
labelProperty="appliedLabels" />
               </html:select></TD>

                               <TD width="15%"><bean:message
key="label.sys_patch_scheduled_date" /></TD>
               <TD width="15%"><html:text name="requestForm"
                   property="sys_patch_scheduled_date_display"
maxlength="10" size="10" readonly="true" />
               <a href="javascript: void(0);"
                   onmouseover="if (timeoutId)
clearTimeout(timeoutId);window.status='Show Calendar';return true;"
                   onmouseout="if (timeoutDelay)
calendarTimeout();window.status='';"

onclick="g_Calendar.show(event,'requestForm.sys_patch_scheduled_date_display',true,
'mm/dd/yyyy');return false;">
               <img src="images/calendar_new.gif" name="imgCalendar"
width="34"
                   height="21" border="0" alt="Calendar"> </a></TD>

                               <TD width="15%"><bean:message
key="label.sys_patch_resp_group" /></TD>
               <TD width="25%"><html:text size="30" maxlength="50"
                   name="requestForm" property="sys_patch_resp_group"
/></TD>


           </TR>

      </TBODY>
</TABLE>

<TABLE width="100%" bgcolor="#C9C9C9" border="0" cellpadding="2"
cellspacing="2">
           <TBODY>
                       <TR>
                           <tr>
               <HR COLOR="#FF0000" SIZE="3">
                       </tr>
                           <tr>
               <td colspan="3" height="5"></td>
                           </tr>
                           <tr>
               <td width="5%">&nbsp;&nbsp;</td>
               <Td width=25%><bean:message key="label.jdk_section" /></TD>
               <td width="70%">&nbsp;&nbsp;</td>
                          </tr>
           </TR>

                       <TR>
               <TD colspan="7" height="8"></TD>
           </TR>
           <TR>
               <TD width="5%">&nbsp;&nbsp;</TD>
               <TD width="10%"><bean:message key="label.java_ver" /></TD>
               <TD width="25%"><html:text size="30" maxlength="50"
name="requestForm" property="java_ver" /></TD>

                               <TD width="10%"><bean:message
key="label.jre_location" /></TD>
               <TD width="25%"><html:text size="30" maxlength="100"
name="requestForm" property="jre_location" /></TD>
                               <TD width="10%"><bean:message
key="label.tz_updater_resp_group" /></TD>
               <TD width="15%"><html:text size="30" maxlength="50"
name="requestForm" property="tz_updater_resp_group" /></TD>
           </TR>

                        <TR>
               <TD colspan="7" height="8"></TD>
           </TR>
           <TR>
               <TD width="5%">&nbsp;&nbsp;</TD>
               <TD width="15%"><bean:message
key="label.tz_updater_applied" /></TD>
               <TD width="15%"> <html:select name="requestForm"
property="tz_updater_applied">
                   <html:options property="appliedLabels"
name="requestForm"
                       labelName="requestForm"
labelProperty="appliedLabels" />
               </html:select></TD>

                               <TD width="15%"><bean:message
key="label.tz_updater_scheduled_date" /></TD>
               <TD width="15%"><html:text name="requestForm"
                   property="tz_updater_scheduled_date_display"
maxlength="10" size="10" readonly="true" />
               <a href="javascript: void(0);"
                   onmouseover="if (timeoutId)
clearTimeout(timeoutId);window.status='Show Calendar';return true;"
                   onmouseout="if (timeoutDelay)
calendarTimeout();window.status='';"

onclick="g_Calendar.show(event,'requestForm.tz_updater_scheduled_date_display',true,
'mm/dd/yyyy');return false;">
               <img src="images/calendar_new.gif" name="imgCalendar"
width="34"
                   height="21" border="0" alt="Calendar"> </a></TD>

                               <TD width="15%"><bean:message
key="label.tz_sdt_number" /></TD>
               <TD width="20%"><html:text size="30" maxlength="10"
name="requestForm" property="tz_sdt_number" /></TD>
           </TR>
       </TBODY>
</TABLE>

<TABLE width="100%" bgcolor="#C9C9C9" border="0" cellpadding="2"
cellspacing="2">
           <TBODY>
                       <TR>
                           <tr>
               <HR COLOR="#FF0000" SIZE="3">
                       </tr>
                           <tr>
               <td colspan="3" height="5"></td>
                           </tr>
                           <tr>
               <td width="5%">&nbsp;&nbsp;</td>
               <Td width=25%><bean:message key="label.oracle_section"
/></TD>
               <td width="70%">&nbsp;&nbsp;</td>
                          </tr>
           </TR>
                       <TR>
               <TD colspan="7" height="8"></TD>
           </TR>
                       <TR>
               <TD width="5%">&nbsp;&nbsp;</TD>

               <TD width="15%"><bean:message
key="label.oracle_jvm_applied" /></TD>
               <TD width="15%"> <html:select name="requestForm"
property="oracle_jvm_applied">
                   <html:options property="appliedLabels"
name="requestForm"
                       labelName="requestForm"
labelProperty="appliedLabels" />
               </html:select></TD>

                               <TD width="15%"><bean:message
key="label.oracle_scheduled_date" /></TD>
               <TD width="15%"><html:text name="requestForm"
                   property="oracle_scheduled_date_display"
maxlength="10" size="10" readonly="true" />
               <a href="javascript: void(0);"
                   onmouseover="if (timeoutId)
clearTimeout(timeoutId);window.status='Show Calendar';return true;"
                   onmouseout="if (timeoutDelay)
calendarTimeout();window.status='';"

onclick="g_Calendar.show(event,'requestForm.oracle_scheduled_date_display',true,
'mm/dd/yyyy');return false;">
               <img src="images/calendar_new.gif" name="imgCalendar"
width="34"
                   height="21" border="0" alt="Calendar"> </a></TD>

                               <TD width="15%"><bean:message
key="label.oracle_sdt_number" /></TD>
               <TD width="20%"><html:text size="30" maxlength="10"
name="requestForm" property="oracle_sdt_number" /></TD>
           </TR>
  </TBODY>
</TABLE>

<TABLE width="100%" bgcolor="#C9C9C9" border="0" cellpadding="2"
cellspacing="2">
           <TBODY>
                          <tr>
               <HR COLOR="#FF0000" SIZE="3">
                       </tr>
           <TR>
               <TD colspan="4" height="6"></TD>
           </TR>
           <TR>
               <td width="5%">&nbsp;&nbsp;</td>
               <TD width="15%"><bean:message key="label.issues" /></TD>
               <TD colspan="3"><html:textarea rows="3" cols="64"
name="requestForm" property="issues" /></TD>

           </TR>
                       <TR>
               <TD colspan="4" height="6"></TD>
           </TR>
           <TR>
               <td width="5%">&nbsp;&nbsp;</td>
               <TD width="15%"><bean:message key="label.comments" /></TD>
               <TD colspan="3"><html:textarea rows="3" cols="64"
name="requestForm" property="comments" /></TD>

           </TR>

                       <TR>
               <TD colspan="5" height="8"></TD>
           </TR>
           <TR>
               <TD width="5%">&nbsp;&nbsp;</TD>
               <TD width="15%"><bean:message
key="label.application_verified" /></TD>
               <TD width="30%"> <html:select name="requestForm"
                   property="application_verified">
                   <html:options property="appliedLabels"
name="requestForm"
                       labelName="requestForm"
labelProperty="appliedLabels" />
               </html:select></TD>

               <TD width="15%"><bean:message
key="label.dst_fix_complete" /></TD>
               <TD width="35%"><html:select name="requestForm"
                   property="dst_fix_complete">
                   <html:options property="appliedLabels"
name="requestForm"
                       labelName="requestForm"
labelProperty="appliedLabels" />
               </html:select></TD>
           </TR>


           <TR>

               <TD colspan="5" height="6"></TD>
           </TR>
           <c:set var = "submitter" value = "${requestForm.submittedBy}">
           </c:set>
           <c:if test='${sessionScope.user.role == "admin" || submitter
== sessionScope.user.userName}'>
           <TR>
               <TD align="right" colspan="3"><html:submit>
                   <bean:message key="button.update" />
               </html:submit></td>
               <TD align="left" colspan="2"><html:reset>
                   <bean:message key="button.reset" />
               </html:reset></td>
           </TR>
           <TR>
           </c:if>
               <TD colspan="5" height="6"></TD>
           </TR>
       </TBODY>
   </TABLE>

   <html:hidden name="requestForm" property="methodToCall"
value="update" />
   <html:hidden name="requestForm" property="appNumber" />
   <html:hidden name="requestForm" property="ghpatName" />
   <html:hidden name="requestForm" property="portfolioName" />
   <html:hidden name="requestForm" property="appName" />
   <html:hidden name="requestForm" property="category_of_work" />
       <html:hidden name="requestForm" property="priority_of_patching" />
       <html:hidden name="requestForm" property="criticality" />
       <html:hidden name="requestForm" property="environment" />
       <html:hidden name="requestForm" property="geo" />
       <html:hidden name="requestForm" property="server" />
      <%-- <html:hidden name="requestForm"
property="creation_date_display" />
       <html:hidden name="requestForm" property="creation_date" />
       <html:hidden name="requestForm" property="last_modified" />
       <html:hidden name="requestForm" property="last_modified_display" />
       <html:hidden name="requestForm"
property="sys_patch_scheduled_date" />
       <html:hidden name="requestForm"
property="tz_updater_scheduled_date" />
       <html:hidden name="requestForm" property="oracle_scheduled_date"
/> --%>

     </html:form>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to