tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Worm (JIRA)" <...@tapestry.apache.org>
Subject [jira] Commented: (TAPESTRY-1121) Redirect in portlets doesn't works
Date Tue, 16 Dec 2008 12:40:44 GMT

    [ https://issues.apache.org/jira/browse/TAPESTRY-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656975#action_12656975
] 

Thomas Worm commented on TAPESTRY-1121:
---------------------------------------

I'm working with Liferay 5.1.2 / Tapestry 4.0.2 and that patch did not work for me. The IllegalStateException
I obtain is thrown by service method of AbstractEngine:

Error producing exception report: java.lang.IllegalStateException
ERROR [STDERR]       Session id    : 
ERROR [STDERR]

ERROR [STDERR] java.lang.IllegalStateException
ERROR [STDERR] com.liferay.portlet.StateAwareResponseImpl.setRenderParameter(StateAwareResponseImpl.java:154)

...

ERROR [[RP]] Servlet.service() for servlet RP threw exception
[exec] java.lang.IllegalStateException

Code:

@InjectObject("service:tapestry.portlet.ActionResponse")
public abstract javax.portlet.ActionResponse getActionResponse();

getActionResponse().sendRedirect(Portal-Login-Url);



The Exception is thrown, but the redirect still works and every action done before seems to
be rolled back (redirect to Portal-Login works, but Portlet-Login not)

So i modified the service method of AbstractEngine to catch IllegalStateException:


public void service(WebRequest request, WebResponse response) throws IOException
{
...
catch (PageRedirectException ex)
{
    handlePageRedirectException(cycle, ex);
}
catch (RedirectException ex)
{
    handleRedirectException(cycle, ex);
}
catch (StaleLinkException ex)
{
    handleStaleLinkException(cycle, ex);
}
catch (StaleSessionException ex)
{
    handleStaleSessionException(cycle, ex);
}
//New
catch(IllegalStateException ex)
{
     handleIllegalStateException(cycle, ex);       	
}
...

I know, thats not the ideal solution, but it works with Liferay.

> Redirect in portlets doesn't works
> ----------------------------------
>
>                 Key: TAPESTRY-1121
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1121
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Portlet
>    Affects Versions: 4.0.2
>            Reporter: Vitaly Baranovsky
>            Assignee: Jesse Kuhnert
>             Fix For: 4.2
>
>         Attachments: patch-722403-tiggr-TAPESTRY-1121-200812121225.diff
>
>
> Redirect in portlets doesn't works
> Sample code:
> View.html:
> <form jwcid="form@Form" listener="listener:doAction">
>        <input type="submit" value="send"/>
> </form>
> View.java:
> public abstract class View extends BasePage{
>      @InjectObject("service:tapestry.portlet.ActionResponse")
>      public abstract javax.portlet.ActionResponse getActionResponse();
>      public void doAction() throws PortletModeException, IOException {
>           getActionResponse().sendRedirect("http://www.google.com");
>      }
> }
> Part of stack trace:
> Caused by: java.lang.IllegalStateException: Can't invoke
> setRenderParameter() after sendRedirect() has been called
>         at org.apache.pluto.core.impl.ActionResponseImpl.setRenderParameter(ActionResponseImpl.java:160)
>         at org.apache.tapestry.portlet.PortletExceptionPresenter.reportActionRequestException(PortletExceptionPresenter.java:113)
>         at org.apache.tapestry.portlet.PortletExceptionPresenter.presentException(PortletExceptionPresenter.java:71)
>         ... 73 more
> 2006-10-16 16:33:03,551 WARN [tapestry.error.RequestExceptionReporter]
> - <Unable to process client request: Exception invoking listener
> method doAction of co
> mponent View: Failure invoking listener method 'public void
> net.liga.portal.portletredirect.View.doAction() throws
> javax.portlet.PortletModeException,java.io
> .IOException' on $View_0@b635d7[View]: Property 'actionResponse' of
> <OuterProxy for
> tapestry.portlet.PortletRequestGlobals(org.apache.tapestry.portlet.Portle
> tRequestGlobals)> is null.>
> org.apache.tapestry.BindingException: Exception invoking listener
> method doAction of component View: Failure invoking listener method
> 'public void net.liga.p
> ortal.portletredirect.View.doAction() throws
> javax.portlet.PortletModeException,java.io.IOException' on
> $View_0@b635d7[View]: Property 'actionResponse' of <O
> uterProxy for tapestry.portlet.PortletRequestGlobals(org.apache.tapestry.portlet.PortletRequestGlobals)>
> is null. [context:/WEB-INF/View.html, line 1]
>         at org.apache.tapestry.binding.ListenerMethodBinding.actionTriggered(ListenerMethodBinding.java:89)
>         at org.apache.tapestry.listener.ListenerInvokerTerminator.invokeListener(ListenerInvokerTerminator.java:51)
>         at $ListenerInvoker_10e51530e8d.invokeListener($ListenerInvoker_10e51530e8d.java)
>         at org.apache.tapestry.form.Form.renderComponent(Form.java:230)
>         at org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
>         at org.apache.tapestry.form.Form.rewind(Form.java:327)
>         at org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:439)
>         at org.apache.tapestry.form.Form.trigger(Form.java:338)
>         at org.apache.tapestry.engine.DirectService.triggerComponent(DirectService.java:146)
>         at org.apache.tapestry.engine.DirectService.service(DirectService.java:132)
>         at $IEngineService_10e51530edb.service($IEngineService_10e51530edb.java)
>         at org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:66)
>         at org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:248)
>         at org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:60)
>         at $WebRequestServicer_10e51530ea5.service($WebRequestServicer_10e51530ea5.java)
>         at $WebRequestServicer_10e51530ea3.service($WebRequestServicer_10e51530ea3.java)
>         at org.apache.tapestry.portlet.RenderRequestServicerToWebRequestServicerBridge.service(RenderRequestServicerToWebRequestServicerBridge.java:49)
>         at $RenderRequestServicer_10e51530e9d.service($RenderRequestServicer_10e51530e9d.java)
>         at $RenderRequestServicer_10e51530e97.service($RenderRequestServicer_10e51530e97.java)
>         at org.apache.tapestry.portlet.ApplicationPortlet.render(ApplicationPortlet.java:161)
>         at org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:102)
>         at org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:230)
>         at org.apache.jetspeed.container.JetspeedContainerServlet.doPost(JetspeedContainerServlet.java:344)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
>         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
>         at org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:215)
>         at org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:126)
>         at org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:119)
>         at org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPortlet(JetspeedPortletContainerWrapper.java:120)
>         at org.apache.jetspeed.aggregator.impl.RenderingJobImpl.execute(RenderingJobImpl.java:121)
>         at org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:120)
>         at org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:199)
>         at org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:182)
>         at org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.build(PageAggregatorImpl.java:106)
>         at org.apache.jetspeed.aggregator.AggregatorValve.invoke(AggregatorValve.java:48)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
>         at org.apache.jetspeed.decoration.DecorationValve.invoke(DecorationValve.java:110)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
>         at org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:151)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
>         at org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:76)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
>         at org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:255)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
>         at org.apache.jetspeed.security.impl.LoginValidationValveImpl.invoke(LoginValidationValveImpl.java:159)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
>         at org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:149)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
>         at org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:169)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
>         at org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:117)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAsPrivileged(Subject.java:454)
>         at org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:111)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
>         at org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:67)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
>         at org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:128)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:145)
>         at org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:214)
>         at org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:238)
>         at org.apache.jetspeed.engine.JetspeedServlet.doPost(JetspeedServlet.java:265)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Failure
> invoking listener method 'public void
> net.liga.portal.portletredirect.View.doAction() thr
> ows javax.portlet.PortletModeException,java.io.IOException' on
> $View_0@b635d7[View]: Property 'actionResponse' of <OuterProxy for
> tapestry.portlet.PortletReq
> uestGlobals(org.apache.tapestry.portlet.PortletRequestGlobals)> is
> null. [context:/WEB-INF/View.page, line 7, column 67]
>         at org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod(ListenerMethodInvokerImpl.java:164)
>         at org.apache.tapestry.listener.ListenerMethodInvokerImpl.searchAndInvoke(ListenerMethodInvokerImpl.java:124)
>         at org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod(ListenerMethodInvokerImpl.java:65)
>         at org.apache.tapestry.listener.SyntheticListener.actionTriggered(SyntheticListener.java:51)
>         at org.apache.tapestry.binding.ListenerMethodBinding.actionTriggered(ListenerMethodBinding.java:77)
>         ... 84 more
> Caused by: java.lang.NullPointerException: Property 'actionResponse'
> of <OuterProxy for
> tapestry.portlet.PortletRequestGlobals(org.apache.tapestry.portlet.Po
> rtletRequestGlobals)> is null.
>         at $ActionResponse_10e51530f9e._targetServiceProperty($ActionResponse_10e51530f9e.java)
>         at $ActionResponse_10e51530f9e.sendRedirect($ActionResponse_10e51530f9e.java)
>         at $ActionResponse_10e51530f42.sendRedirect($ActionResponse_10e51530f42.java)
>         at net.liga.portal.portletredirect.View.doAction(View.java:51)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeTargetMethod(ListenerMethodInvokerImpl.java:214)
>         at org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod(ListenerMethodInvokerImpl.java:155)
>         ... 88 more
> **********************************************************
> Unable to process client request: Exception invoking listener method
> doAction of component View: Failure invoking listener method 'public
> void net.liga.porta
> l.portletredirect.View.doAction() throws
> javax.portlet.PortletModeException,java.io.IOException' on
> $View_0@b635d7[View]: Property 'actionResponse' of <Outer
> Proxy for tapestry.portlet.PortletRequestGlobals(org.apache.tapestry.portlet.PortletRequestGlobals)>
> is null.
>       Session id    : 889693BAEB117AEC85BD321D46EC5087
> Exceptions:
> org.apache.tapestry.BindingException: Exception invoking listener
> method doAction of component View: Failure invoking listener method
> 'public void net.liga.p
> ortal.portletredirect.View.doAction() throws
> javax.portlet.PortletModeException,java.io.IOException' on
> $View_0@b635d7[View]: Property 'actionResponse' of <O
> uterProxy for tapestry.portlet.PortletRequestGlobals(org.apache.tapestry.portlet.PortletRequestGlobals)>
> is null.
>    binding: org.apache.tapestry.binding.ListenerMethodBinding@808680[template
> parameter listener, component=View, methodName=doAction,
> location=context:/WEB-
> INF/View.html, line 1]
>    component: $View_0@b635d7[View]
>    location: context:/WEB-INF/View.html, line 1
> org.apache.hivemind.ApplicationRuntimeException: Failure invoking
> listener method 'public void
> net.liga.portal.portletredirect.View.doAction() throws javax.p
> ortlet.PortletModeException,java.io.IOException' on
> $View_0@b635d7[View]: Property 'actionResponse' of <OuterProxy for
> tapestry.portlet.PortletRequestGlobals
> (org.apache.tapestry.portlet.PortletRequestGlobals)> is null.
>    component: $View_0@b635d7[View]
>    location: context:/WEB-INF/View.page, line 7, column 67
> java.lang.NullPointerException: Property 'actionResponse' of
> <OuterProxy for
> tapestry.portlet.PortletRequestGlobals(org.apache.tapestry.portlet.PortletReques
> tGlobals)> is null.
> $ActionResponse_10e51530f9e._targetServiceProperty($ActionResponse_10e51530f9e.java)
> $ActionResponse_10e51530f9e.sendRedirect($ActionResponse_10e51530f9e.java)
> $ActionResponse_10e51530f42.sendRedirect($ActionResponse_10e51530f42.java)
> net.liga.portal.portletredirect.View.doAction(View.java:51)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeTargetMethod(ListenerMethodInvokerImpl.java:214)
> org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod(ListenerMethodInvokerImpl.java:155)
> org.apache.tapestry.listener.ListenerMethodInvokerImpl.searchAndInvoke(ListenerMethodInvokerImpl.java:124)
> org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod(ListenerMethodInvokerImpl.java:65)
> org.apache.tapestry.listener.SyntheticListener.actionTriggered(SyntheticListener.java:51)
> org.apache.tapestry.binding.ListenerMethodBinding.actionTriggered(ListenerMethodBinding.java:77)
> org.apache.tapestry.listener.ListenerInvokerTerminator.invokeListener(ListenerInvokerTerminator.java:51)
> $ListenerInvoker_10e51530e8d.invokeListener($ListenerInvoker_10e51530e8d.java)
> org.apache.tapestry.form.Form.renderComponent(Form.java:230)
> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
> org.apache.tapestry.form.Form.rewind(Form.java:327)
> org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:439)
> org.apache.tapestry.form.Form.trigger(Form.java:338)
> org.apache.tapestry.engine.DirectService.triggerComponent(DirectService.java:146)
> org.apache.tapestry.engine.DirectService.service(DirectService.java:132)
> $IEngineService_10e51530edb.service($IEngineService_10e51530edb.java)
> org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:66)
> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:248)
> org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:60)
> $WebRequestServicer_10e51530ea5.service($WebRequestServicer_10e51530ea5.java)
> $WebRequestServicer_10e51530ea3.service($WebRequestServicer_10e51530ea3.java)
> org.apache.tapestry.portlet.RenderRequestServicerToWebRequestServicerBridge.service(RenderRequestServicerToWebRequestServicerBridge.java:49)
> $RenderRequestServicer_10e51530e9d.service($RenderRequestServicer_10e51530e9d.java)
> $RenderRequestServicer_10e51530e97.service($RenderRequestServicer_10e51530e97.java)
> org.apache.tapestry.portlet.ApplicationPortlet.render(ApplicationPortlet.java:161)
> org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:102)
> org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:230)
> org.apache.jetspeed.container.JetspeedContainerServlet.doPost(JetspeedContainerServlet.java:344)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
> org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:215)
> org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:126)
> org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:119)
> org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPortlet(JetspeedPortletContainerWrapper.java:120)
> org.apache.jetspeed.aggregator.impl.RenderingJobImpl.execute(RenderingJobImpl.java:121)
> org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:120)
> org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:199)
> org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:182)
> org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.build(PageAggregatorImpl.java:106)
> org.apache.jetspeed.aggregator.AggregatorValve.invoke(AggregatorValve.java:48)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.decoration.DecorationValve.invoke(DecorationValve.java:110)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:151)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:76)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:255)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.security.impl.LoginValidationValveImpl.invoke(LoginValidationValveImpl.java:159)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:149)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:169)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:117)
> java.security.AccessController.doPrivileged(Native Method)
> javax.security.auth.Subject.doAsPrivileged(Subject.java:454)
> org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:111)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:67)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:128)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:145)
> org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:214)
> org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:238)
> org.apache.jetspeed.engine.JetspeedServlet.doPost(JetspeedServlet.java:265)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> java.lang.Thread.run(Thread.java:595)
> **********************************************************
> I have tried also:
> View.html:
> <form jwcid="form@Form" listener="listener:doAction">
>        <input type="submit" value="send"/>
> </form>
> View.java:
> public abstract class View extends BasePage{
>     public void doAction(IRequestCycle cycle) {
>  cycle.sendRedirect("http://www.google.com");
>     }
> }
> But I have next stack trace in this case:
> Method forward() is not supported for portlet requests.
> org.apache.tapestry.portlet.PortletWebRequest.unsupported(PortletWebRequest.java:145)
> org.apache.tapestry.portlet.PortletWebRequest.forward(PortletWebRequest.java:109)
> $WebRequest_10e514c55ec.forward($WebRequest_10e514c55ec.java)
> $WebRequest_10e514c55af.forward($WebRequest_10e514c55af.java)
> org.apache.tapestry.engine.AbstractEngine.handleRedirectException(AbstractEngine.java:522)
> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:258)
> org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:60)
> $WebRequestServicer_10e514c55c9.service($WebRequestServicer_10e514c55c9.java)
> $WebRequestServicer_10e514c55c7.service($WebRequestServicer_10e514c55c7.java)
> org.apache.tapestry.portlet.ActionRequestServicerToWebRequestServicerBridge.service(ActionRequestServicerToWebRequestServicerBridge.java:48)
> $ActionRequestServicer_10e514c5797.service($ActionRequestServicer_10e514c5797.java)
> $ActionRequestServicer_10e514c5796.service($ActionRequestServicer_10e514c5796.java)
> org.apache.tapestry.portlet.multipart.PortletMultipartDecoderFilter.service(PortletMultipartDecoderFilter.java:48)
> $ActionRequestServicerFilter_10e514c5799.service($ActionRequestServicerFilter_10e514c5799.java)
> $ActionRequestServicerFilter_10e514c5798.service($ActionRequestServicerFilter_10e514c5798.java)
> $ActionRequestServicer_10e514c579a.service($ActionRequestServicer_10e514c579a.java)
> $ActionRequestServicer_10e514c55ba.service($ActionRequestServicer_10e514c55ba.java)
> $ActionRequestServicer_10e514c55b9.service($ActionRequestServicer_10e514c55b9.java)
> org.apache.tapestry.portlet.ApplicationPortlet.processAction(ApplicationPortlet.java:142)
> org.apache.jetspeed.factory.JetspeedPortletInstance.processAction(JetspeedPortletInstance.java:96)
> org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:221)
> org.apache.jetspeed.container.JetspeedContainerServlet.doPost(JetspeedContainerServlet.java:344)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
> org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:215)
> org.apache.jetspeed.container.invoker.ServletPortletInvoker.action(ServletPortletInvoker.java:134)
> org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:164)
> org.apache.jetspeed.container.JetspeedPortletContainerWrapper.processPortletAction(JetspeedPortletContainerWrapper.java:132)
> org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:95)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:76)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:255)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.security.impl.LoginValidationValveImpl.invoke(LoginValidationValveImpl.java:159)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:149)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:169)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:117)
> java.security.AccessController.doPrivileged(Native Method)
> javax.security.auth.Subject.doAsPrivileged(Subject.java:454)
> org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:111)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:67)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:128)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
> org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:145)
> org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:214)
> org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:238)
> org.apache.jetspeed.engine.JetspeedServlet.doPost(JetspeedServlet.java:265)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> java.lang.Thread.run(Thread.java:595)
> I have tried to use RedirectException, but redirect doesn't works aslo 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message