Ralph, comments below.

Ralph Goers wrote:
I could really use some help debugging an issue with one of our struts portlets. It is using V1.0 of the portlet bridge and it gets errors in the logs when a drop-down is selected to change from one month to another. I'm not a struts expert by any means (I've never even built a struts app myself) and I could use some direction on what I should be looking for. I've spent days looking at the StrutsPortlet and related code and am no closer to figuring out how the REDIRECT_URL or REDIRECT_PAGE_URL are supposed to be set or whether something else should be happening.

FWIW, this is one of about 6 Struts apps using the struts bridge and only this one exhibits this problem.

The two messages that are of concern are the WARN message from StrutsPortlet
The WARN from StrutsPortlet is logged when an StrutsAction, invoked from a 
processAction does *not* send a redirect at the end.
See for further information:
  
http://portals.apache.org/bridges/multiproject/portals-bridges-struts/features.html#Handling_ActionRequests

You should look at the returned ActionForward from this StrutsAction call, that 
one needs to have redirect=true configured.
It might be helpful if you can provide the struts-config.xml, maybe I can give 
a more specific advise then.

and the ClassCastException in Liferay's LayoutAction. I've run that under the debugger and the code that is being run there expects an ActionRequestImpl, not a RenderRequestImpl.
From the logging I can't make anything from this, and I don't know Liferay 
myself.

Regards,

Ate


2007-12-20 16:08:38,822 DEBUG [org.apache.portals.bridges.struts.StrutsPortlet] process path: /portlet_action/HBNPortlet/spendingReport, requestType: VIEW 2007-12-20 16:08:39,107 DEBUG [org.apache.portals.bridges.struts.PortletServletRequestDispatcher] invoking dispatch to :/html/spendingReport.jsp, from VIEW null 2007-12-20 16:09:49,569 DEBUG [org.apache.portals.bridges.struts.StrutsPortlet] process path: /portlet_action/HBNPortlet/spendingReport, requestType: ACTION 2007-12-20 16:09:49,891 DEBUG [org.apache.portals.bridges.struts.PortletServletRequestDispatcher] saving dispatch to :/html/spendingReport.jsp, from ACTION /portlet_action/HBNPortlet/spendingReport 2007-12-20 16:09:49,894 WARN [org.apache.portals.bridges.struts.StrutsPortlet] Warning: Using the original action URL for render URL: /portlet_action/HBNPortlet/spendingReport.
A redirect should have been issued.
2007-12-20 16:09:49,959 DEBUG [org.apache.portals.bridges.struts.StrutsPortlet] process path: /portlet_action/HBNPortlet/spendingReport, requestType: VIEW 2007-12-20 16:09:49,960 DEBUG [org.apache.portals.bridges.struts.PortletServlet] render context path: /html/spendingReport.jsp 2007-12-20 16:09:49,961 DEBUG [org.apache.portals.bridges.struts.PortletServlet] Putting form org.apache.struts.validator.DynaValidatorForm into request as for mapping yearMonthForm 2007-12-20 16:09:49,961 DEBUG [org.apache.portals.bridges.struts.PortletServletRequestDispatcher] invoking dispatch to :/html/spendingReport.jsp, from VIEW /portlet_action/HBNPortlet/spendingReport 2007-12-20 16:09:50,007 ERROR [com.liferay.portal.action.LayoutAction] java.lang.ClassCastException: com.liferay.portlet.RenderRequestImpl 2007-12-20 16:09:50,007 ERROR [com.liferay.portal.action.LayoutAction] java.lang.ClassCastException: com.liferay.portlet.RenderResponseImpl

Ralph


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




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

Reply via email to