• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ServletException BeanUtils populate

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Will any body please tell me why i am getting this below exception:

javax.servlet.ServletException: BeanUtils.populate
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at javax.servlet.ServletException.<init>(ServletException.java:132)
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:760)
at com.wpsic.corporate.servlet.CorporateActionServlet.service(CorporateActionServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)


[2/24/06 11:36:43:437 CST] 525c525c WebGroup E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: java.lang.IllegalArgumentException: No bean specified
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java)
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:760)
at com.wpsic.corporate.servlet.CorporateActionServlet.service(CorporateActionServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)




Thanks in advance,
vamshi
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This error usually occurs when you have specified a form name that does not exist in your <html:form> tag. For example, you specifiec <html:form action="/myAction" name="myForm" /> and 'myForm' is not the name of a form associated with myAction in the struts-config file.

If you need further help solving this error, please post:

1-Your JSP
2-Relevant portions of your struts-config.xml file
 
vamshidhar nimbagiri
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you,
My Jsp is:
<html:form method="POST" action="/auth/processEmployerEmailSubscriptionsAction.do?corner=G">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDERCOLOR="#808080">
<TR>
<TD VALIGN="TOP" WIDTH="526">
<P>
<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=0 WIDTH=100% SUMMARY="layout table" CLASS="datatable">
<TR>
<TH VALIGN=TOP COLSPAN=2>
Email List Subscriptions</TH>
</TR>
<% int loop=0;%>
<% int loop1=0;%>
<logic:iterate id="data" name="EmployerEmailSubscriptionsForm" property="emplrMiscList">
<%
String str = "emplrMiscList[";
str = str+loop+"].flag";
String str1 = "emplrMiscList[";
str1 = str1+loop+"].emplrMiscListNm";
%>
<TR>
<TD VALIGN=TOP>
<P><bean:write name="EmployerEmailSubscriptionsForm" property="<%=str1%>"/>
</TD>
<TD VALIGN=TOP><P>   
<html:checkbox name="EmployerEmailSubscriptionsForm" property="<%=str%>" value="Y"/></TD>
</TR>
<%loop++;%>
<%loop1++;%>
</logic:iterate>

<TR>
<TD VALIGN=TOP CLASS="bottom" SCOPE="row">
</TD>
<TD ALIGN=RIGHT VALIGN=TOP CLASS="bottom" SCOPE="row">
<html:submit value="Continue" property="btn"></html:submit>
</TD>
</TR>
</TABLE>
</TD>
<TD>
</TD>
</TR>
</TABLE>
</html:form>


Struts-config:

<action path="/auth/processEmployerEmailSubscriptionsAction"
type="com.wpsic.corporate.struts.action.employer.ProcessEmployerEmailSubscriptionsAction"
input=".employerEmailSubscriptions"
name="EmployerEmailSubscriptionsForm">
<forward name="success" path=".employerRequestConfirmation"></forward>
</action>


Thanks
vamshi
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd suggest changing your <html:form> tag to:

<html:form method="POST" action="/auth/processEmployerEmailSubscriptionsAction" />

and adding a hidden field for the corner parameter:

<input type="hidden" name="corner" value="G" >

The action attribute of an <html:form> tag must match exactly the path attribute of the action definition in the struts-config.xml file. This is how Struts associates the ActionForm bean with the action.
 
vamshidhar nimbagiri
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am having the same issue with my application. Just wanted to know if this could happen due to Java or tomcat version ?
I am having the same struts code running on tomcat 6 with JDK 1.5 while the branch running with Java 7 + tomcat 6 is throwing this exception.
Any help will be highly appreciated.
 
reply
    Bookmark Topic Watch Topic
  • New Topic