beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Feit (JIRA)" <beehive-...@incubator.apache.org>
Subject [jira] Commented: (BEEHIVE-785) Illegal argument exception when clicking a link which contains a request parameter
Date Thu, 02 Jun 2005 19:24:08 GMT
     [ http://issues.apache.org/jira/browse/BEEHIVE-785?page=comments#action_66906 ]
     
Rich Feit commented on BEEHIVE-785:
-----------------------------------

OK, I've got a repro:

    - Create a page flow with only a single begin action -- a simple action that forwards
to index.jsp.

    - On index.jsp, add the following block:

        <netui:form action="begin">
            <netui:button value="submit" action="begin">
                <netui:parameter name="foo.bar" value="bar"/>
            </netui:button>
        </netui:form>

    - Hit the page flow, and click the "submit" button.

You get the following exception:

java.lang.RuntimeException: Exception processing bean and request parameters: 
	org.apache.beehive.netui.pageflow.ProcessPopulate.handleStrutsProperties(ProcessPopulate.java:347)
	org.apache.beehive.netui.pageflow.ProcessPopulate.populate(ProcessPopulate.java:288)
	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processPopulate(PageFlowRequestProcessor.java:389)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:205)
	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:598)
	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:862)
	org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:600)
	org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:163)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.beehive.netui.pageflow.internal.DefaultForwardRedirectHandler.forward(DefaultForwardRedirectHandler.java:127)
	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1761)
	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionOverride(PageFlowRequestProcessor.java:439)
	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:518)
	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:862)
	org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:600)
	org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:163)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

> Illegal argument exception when clicking a link which contains a request parameter
> ----------------------------------------------------------------------------------
>
>          Key: BEEHIVE-785
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-785
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>  Environment: Windows and Linux with Tomcat.
>     Reporter: Patrick Osborne
>     Assignee: Rich Feit

>
> Found the following with SVN revision: 179480
> I receive the following runtime exception when clicking on a link with request parameters.
 The actions that fail take no parameters( forms ).  Form posting and action links without
parameters work as expected.
> Exception:    java.lang.RuntimeException: Exception processing bean and request parameters:
> caused by : java.lang.IllegalArgumentException: No bean specified   Stack Trace:    java.lang.RuntimeException:
Exception processing bean and request parameters:
> at org.apache.beehive.netui.pageflow.ProcessPopulate.handleStrutsProperties(ProcessPopulate.java:347)
> at org.apache.beehive.netui.pageflow.ProcessPopulate.populate(ProcessPopulate.java:288)
> at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processPopulate(PageFlowRequestProcessor.java:390)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:205)
> at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:600)
> at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:864)
> at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:600)
> at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:163)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.IllegalArgumentException: No bean specified
> at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
> at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
> at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
> at org.apache.beehive.netui.pageflow.ProcessPopulate.handleStrutsProperties(ProcessPopulate.java:343)
> ... 34 more  
> The html generated looks like this:
>         <td class="datagrid" align="center"><a href="/taskWeb/task/deleteTask.do?task.id=732"><span>delete</span></a></td>
>         <td class="datagrid" align="center"><a href="/taskWeb/task/viewFiles.do?task.id=732"><span>view</span></a></td>
> I generate the links via tags in a datagrid, like this:
>     <netui-data:rows>
>         <netui-data:anchorCell cellAlign="center" value="delete" action="deleteTask"
 >
>             <netui:parameter name="task.id" value="${container.item.id}" />
>         </netui-data:anchorCell>
>         <netui-data:anchorCell cellAlign="center" value="view" action="viewFiles"
 >
>             <netui:parameter name="task.id" value="${container.item.id}" />
>         </netui-data:anchorCell>
>         <netui-data:spanCell cellAlign="center" value="${container.item.id}"/>
>         <netui-data:spanCell cellAlign="center" value="${container.item.name}"/>
> .....
> The data source is defined as follows:
>     <netui-data:dataGrid dataSource="pageFlow.data.taskList" name="taskList" >
>     <netui-data:configurePager defaultPageSize="20" />
> taskList is a List of bean objects: List<TaskDto> taskList
> TaskDto is a pure java bean with just getters / setters.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message