IBM Websphere Portal服务器8.5模拟

时间:2016-12-26 07:21:22

标签: java websphere-portal

在模拟成功后,在日志中出现以下错误。

[12/21/16 15:27:03:732 IST] 0000015b ActionRespons E com.ibm.ws.portletcontainer.core.impl.ActionResponseImpl setRenderParameter EJPPC0161E: Cannot set RenderParameter after sendRedirect has been called
[12/21/16 15:27:03:732 IST] 0000015b SystemOut     O 2016-12-21 
[12/21/16 15:27:03:733 IST] 0000015b SystemOut     O 2016-12-21 15:27:03.732[WebContainer : 5][ERROR] com.portal.base.FacesPortlet - Can't invoke setRenderParameter() after sendRedirect() has been called
java.lang.IllegalStateException: Can't invoke setRenderParameter() after sendRedirect() has been called
    at com.ibm.ws.portletcontainer.core.impl.ActionResponseImpl.setRenderParameter(ActionResponseImpl.java:109)
    at com.ibm.faces.portlet.httpbridge.ActionResponseWrapper.setRenderParameter(ActionResponseWrapper.java:38)
    at com.ibm.faces.portlet.FacesPortlet.encodeObject(FacesPortlet.java:888)
    at com.ibm.faces.portlet.FacesPortlet.saveViewState(FacesPortlet.java:953)
    at com.ibm.faces.portlet.FacesPortlet.saveViewState(FacesPortlet.java:961)
    at com.ibm.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:284)

1 个答案:

答案 0 :(得分:0)

您使用的是ibm模拟portlet吗?是来自那里的完整堆栈。如果是这样的话,打开与IBM的PMR 否则这是一个有效的响应,您不能在发出发送重定向后设置参数,因为Portal提交响应并且您最终得到该错误