commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dakota Jack <dakota.j...@gmail.com>
Subject ActionForm in Struts cannot implement Map due to bean utils?
Date Sat, 11 Dec 2004 13:43:09 GMT
Perhaps I should be clearer on this.  I would like to have an
ActionForm implement Map, but when I do this, it chokes as follows.  I
would like to change this.  I am not sure whether the place to do this
is the request processor in Struts or the implementation in commons
beanutils.  I do know that the present code will not populate a form
which implements Map.

Here is the choke "webmasterOptions" is

public ActionForward webmasterOptions(ActionMapping am, ActionForm af,
HttpServletRequest hsreq, HttpServletResponse shres)

Thanks for any assistance on this.  I am willing, of course, to make
or to help make whatever changes are necessary to allow the Struts
controller to use ActionForms that implement Map.

Jack

1.  HTML browser exception report

Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: BeanUtils.populate
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:497)
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:205)
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 com.crackwillow.filter.GZIPFilter.doFilter(GZIPFilter.java:23)

root cause

java.lang.IllegalArgumentException: Null property value for 'webmasterOptions'
 org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:755)
 org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881)
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:205)
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 com.crackwillow.filter.GZIPFilter.doFilter(GZIPFilter.java:23)

note The full stack trace of the root cause is available in the Tomcat logs.

2.  catalina2004-12-10.log

java.lang.IllegalArgumentException: Null property value for 'webmasterOptions'
 at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:755)
 at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
 at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881)
 at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
 at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)
 at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:205)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
 at com.crackwillow.filter.GZIPFilter.doFilter(GZIPFilter.java:23)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
 at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
 at java.lang.Thread.run(Thread.java:534


Jack



--
-- 


"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message