org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(
WebPageRenderer.java:105)
        at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(
WebPageRenderer.java:224)

are these two lines the same for the two calls ?
please make sure that the line numbers match or do not match


On Tue, Feb 5, 2013 at 8:05 PM, AnilUpadhyay <anilupadh...@gmail.com> wrote:

> Below is the stacktrace that gets written twice.  It just seems that
> somehow Wicket is invoking the page render twice.
>
> java.lang.Exception: Stack trace
>         at java.lang.Thread.dumpStack(Thread.java:1273)
>         at com.xxx.DetailsPage.onBeforeRender(DetailsPage.java:274)
>         at
> org.apache.wicket.Component.internalBeforeRender(Component.java:993)
>         at org.apache.wicket.Component.beforeRender(Component.java:1027)
>         at
> org.apache.wicket.Component.internalPrepareForRender(Component.java:2228)
>         at org.apache.wicket.Page.internalPrepareForRender(Page.java:279)
>         at org.apache.wicket.Component.render(Component.java:2310)
>         at org.apache.wicket.Page.renderPage(Page.java:1035)
>         at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>         at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224)
>         at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167)
>         at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784)
>         at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>         at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
>         at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>         at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
>         at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
>         at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at
>
> org.jasig.cas.client.util.HttpServletRequestWrapperFilter.doFilter(HttpServletRequestWrapperFilter.java:62)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at
>
> org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:196)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at
>
> org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:93)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at
>
> org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:191)
>         at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
>         at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
>         at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>         at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>         at java.lang.Thread.run(Thread.java:680)
>
>
>
> On Mon, Feb 4, 2013 at 9:30 AM, Martin Grigorov-4 [via Apache Wicket] <
> ml-node+s1842946n4656058...@n4.nabble.com> wrote:
>
> > Hi,
> >
> > Put a breakpoint in onBeforeRender and see what are the stack traces.
> >
> >
> > On Mon, Feb 4, 2013 at 4:21 PM, AnilUpadhyay <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4656058&i=0>>
> > wrote:
> >
> > > I'm noticing one of my Wicket pages being rendered twice under certain
> > > circumstances.  For example, when I log in, view a form page and submit
> > the
> > > form, if the success action of the form submission is to view the
> > > bookmarkable details of the newly created entity, then the details page
> > > gets
> > > rendered twice.  I can tell the rendering happens twice because in my
> > logs,
> > > I have added a DEBUG statement that shows when onBeforeRender is called
> > for
> > > this page.
> > >
> > > If I do the same action again, without logging out/in, then the double
> > > rendering (or double honk as we've been calling it) doesn't happen
> > again.
> > > I'm only able to replicate this the first time I submit the form after
> I
> > > log
> > > in.
> > >
> > > I'm using wicket security (wasp/swarm) for auth.
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/onBeforeRender-hit-twice-on-page-after-Authentication-tp4656057.html
> > > Sent from the Users forum mailing list archive at Nabble.com.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4656058&i=1>
> > > For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4656058&i=2>
> > >
> > >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com <http://jweekend.com/>
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://apache-wicket.1842946.n4.nabble.com/onBeforeRender-hit-twice-on-page-after-Authentication-tp4656057p4656058.html
> >  To unsubscribe from onBeforeRender hit twice on page after
> > Authentication, click here<
> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4656057&code=YW5pbHVwYWRoeWF5QGdtYWlsLmNvbXw0NjU2MDU3fDYyNzcwMTIzNg==
> >
> > .
> > NAML<
> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/onBeforeRender-hit-twice-on-page-after-Authentication-tp4656057p4656094.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to