Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy isSecure() flag from async request #24

Open
uklance opened this issue Sep 10, 2014 · 0 comments
Open

Copy isSecure() flag from async request #24

uklance opened this issue Sep 10, 2014 · 0 comments

Comments

@uklance
Copy link
Owner

uklance commented Sep 10, 2014

Need to copy the isSecure() flag from the async request to the OfflineRequestContext that is passed to tapestry-offline

Details here

[ERROR] 2014-09-09 17:18:39,077 - internal.PerRequestBroadcastFilterImpl -
Error rendering ComponentEventParameters[page=Home
component=Home:mainlayout.pushtarget event=notificationEvent]
java.util.concurrent.ExecutionException:
java.lang.UnsupportedOperationException: sendRedirect
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at
org.lazan.t5.offline.services.internal.OfflineComponentRendererImpl$1.get(OfflineComponentRendererImpl.java:84)
at
org.lazan.t5.offline.services.internal.OfflineComponentRendererImpl$1.get(OfflineComponentRendererImpl.java:79)
at
org.lazan.t5.atmosphere.services.internal.PerRequestBroadcastFilterImpl.filter(PerRequestBroadcastFilterImpl.java:59)
at org.atmosphere.cpr.BroadcasterConfig.filter(BroadcasterConfig.java:483)
at
org.atmosphere.cpr.DefaultBroadcaster.perRequestFilter(DefaultBroadcaster.java:850)
at
org.atmosphere.cpr.DefaultBroadcaster.deliverPush(DefaultBroadcaster.java:740)
at org.atmosphere.cpr.DefaultBroadcaster.push(DefaultBroadcaster.java:646)
at org.atmosphere.cpr.DefaultBroadcaster$2.run(DefaultBroadcaster.java:504)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.UnsupportedOperationException: sendRedirect
at
org.lazan.t5.offline.internal.OfflineResponse.sendRedirect(OfflineResponse.java:49)
at $Response_f3566ba200b.sendRedirect(Unknown Source)
at $Response_f3566ba1f6f.sendRedirect(Unknown Source)
at
org.apache.tapestry5.internal.services.RequestSecurityManagerImpl.checkForInsecureComponentEventRequest(RequestSecurityManagerImpl.java:61)
at
$RequestSecurityManager_f3566ba1fcb.checkForInsecureComponentEventRequest(Unknown
Source)
at
org.apache.tapestry5.services.TapestryModule$41.handle(TapestryModule.java:2473)
at $ComponentEventRequestHandler_f3566ba208c.handle(Unknown Source)
at $ComponentEventRequestHandler_f3566ba1ff3.handle(Unknown Source)
at
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handleComponentEvent(ComponentRequestHandlerTerminator.java:43)
at
org.tynamo.security.SecurityComponentRequestFilter.handleComponentEvent(SecurityComponentRequestFilter.java:41)
at $ComponentRequestHandler_f3566ba1ff5.handleComponentEvent(Unknown Source)
at
org.apache.tapestry5.services.InitializeActivePageName.handleComponentEvent(InitializeActivePageName.java:39)
at $ComponentRequestHandler_f3566ba1ff5.handleComponentEvent(Unknown Source)
at
de.betterbits.comp.services.OfflineRendererRequestFilter.handleComponentEvent(OfflineRendererRequestFilter.java:44)
at $ComponentRequestFilter_f3566ba1ff2.handleComponentEvent(Unknown Source)
at $ComponentRequestHandler_f3566ba1ff5.handleComponentEvent(Unknown Source)
at
org.lazan.t5.atmosphere.services.internal.PageGlobalsComponentRequestFilter.handleComponentEvent(PageGlobalsComponentRequestFilter.java:22)
at $ComponentRequestHandler_f3566ba1ff5.handleComponentEvent(Unknown Source)
at
$ComponentRequestHandler_f3566ba1ff9.advised$handleComponentEvent_f3566ba1ffb(Unknown
Source)
at
$ComponentRequestHandler_f3566ba1ff9$Invocation_handleComponentEvent_f3566ba1ffa.proceedToAdvisedMethod(Unknown
Source)
at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:84)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils$21$1.proceed(InternalUtils.java:1386)
at
org.tynamo.conversations.services.RequestHandlerDecoratorImpl$1.advise(RequestHandlerDecoratorImpl.java:26)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils$21.advise(InternalUtils.java:1455)
at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
at $ComponentRequestHandler_f3566ba1ff9.handleComponentEvent(Unknown Source)
at $ComponentRequestHandler_f3566ba1fbd.handleComponentEvent(Unknown Source)
at
org.lazan.t5.offline.services.internal.OfflineComponentRendererImpl$2.invoke(OfflineComponentRendererImpl.java:126)
at
org.apache.tapestry5.ioc.internal.services.ParallelExecutorImpl$1.call(ParallelExecutorImpl.java:58)
... 4 more

[ERROR] 2014-09-09 17:20:03,134 - internal.PerRequestBroadcastFilterImpl -
Error rendering ComponentEventParameters[page=Home
component=Home:mainlayout.pushtarget event=notificationEvent]
java.util.concurrent.ExecutionException:
java.lang.UnsupportedOperationException: sendRedirect
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at
org.lazan.t5.offline.services.internal.OfflineComponentRendererImpl$1.get(OfflineComponentRendererImpl.java:84)
at
org.lazan.t5.offline.services.internal.OfflineComponentRendererImpl$1.get(OfflineComponentRendererImpl.java:79)
at
org.lazan.t5.atmosphere.services.internal.PerRequestBroadcastFilterImpl.filter(PerRequestBroadcastFilterImpl.java:59)
at org.atmosphere.cpr.BroadcasterConfig.filter(BroadcasterConfig.java:483)
at
org.atmosphere.cpr.DefaultBroadcaster.perRequestFilter(DefaultBroadcaster.java:850)
at
org.atmosphere.cpr.DefaultBroadcaster.deliverPush(DefaultBroadcaster.java:740)
at org.atmosphere.cpr.DefaultBroadcaster.push(DefaultBroadcaster.java:646)
at org.atmosphere.cpr.DefaultBroadcaster$2.run(DefaultBroadcaster.java:504)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.UnsupportedOperationException: sendRedirect
at
org.lazan.t5.offline.internal.OfflineResponse.sendRedirect(OfflineResponse.java:49)
at $Response_f3566ba200b.sendRedirect(Unknown Source)
at $Response_f3566ba1f6f.sendRedirect(Unknown Source)
at
org.apache.tapestry5.internal.services.RequestSecurityManagerImpl.checkForInsecureComponentEventRequest(RequestSecurityManagerImpl.java:61)
at
$RequestSecurityManager_f3566ba1fcb.checkForInsecureComponentEventRequest(Unknown
Source)
at
org.apache.tapestry5.services.TapestryModule$41.handle(TapestryModule.java:2473)
at $ComponentEventRequestHandler_f3566ba208c.handle(Unknown Source)
at $ComponentEventRequestHandler_f3566ba1ff3.handle(Unknown Source)
at
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handleComponentEvent(ComponentRequestHandlerTerminator.java:43)
at
org.tynamo.security.SecurityComponentRequestFilter.handleComponentEvent(SecurityComponentRequestFilter.java:41)
at $ComponentRequestHandler_f3566ba1ff5.handleComponentEvent(Unknown Source)
at
org.apache.tapestry5.services.InitializeActivePageName.handleComponentEvent(InitializeActivePageName.java:39)
at $ComponentRequestHandler_f3566ba1ff5.handleComponentEvent(Unknown Source)
at
de.betterbits.comp.services.OfflineRendererRequestFilter.handleComponentEvent(OfflineRendererRequestFilter.java:44)
at $ComponentRequestFilter_f3566ba1ff2.handleComponentEvent(Unknown Source)
at $ComponentRequestHandler_f3566ba1ff5.handleComponentEvent(Unknown Source)
at
org.lazan.t5.atmosphere.services.internal.PageGlobalsComponentRequestFilter.handleComponentEvent(PageGlobalsComponentRequestFilter.java:22)
at $ComponentRequestHandler_f3566ba1ff5.handleComponentEvent(Unknown Source)
at
$ComponentRequestHandler_f3566ba1ff9.advised$handleComponentEvent_f3566ba1ffb(Unknown
Source)
at
$ComponentRequestHandler_f3566ba1ff9$Invocation_handleComponentEvent_f3566ba1ffa.proceedToAdvisedMethod(Unknown
Source)
at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:84)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils$21$1.proceed(InternalUtils.java:1386)
at
org.tynamo.conversations.services.RequestHandlerDecoratorImpl$1.advise(RequestHandlerDecoratorImpl.java:26)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils$21.advise(InternalUtils.java:1455)
at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
at $ComponentRequestHandler_f3566ba1ff9.handleComponentEvent(Unknown Source)
at $ComponentRequestHandler_f3566ba1fbd.handleComponentEvent(Unknown Source)
at
org.lazan.t5.offline.services.internal.OfflineComponentRendererImpl$2.invoke(OfflineComponentRendererImpl.java:126)
at
org.apache.tapestry5.ioc.internal.services.ParallelExecutorImpl$1.call(ParallelExecutorImpl.java:58)
... 4 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant