org.apache.wicket.WicketRuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 1369#195018334
    via GitHub by kyleblythe
    ,
  • Refresh for page, containing feedback panel causes WicketRuntimeException. I have MarkupContainer wich has overriden protected void onBeforeRender() where I call addOrReplace to add or replace component with feedback panel. I have noticed that refreshing such page causes Caused by: java.lang.RuntimeException: An error occurred while getting the model object for Component: [MessageListView [Component id = messages, page = <No Page>, ... During dubug Wicket 6.3.0 I see that Component.beforeRender() method has multiple feedbacks in getRequestCycle().getMetaData(FEEDBACK_LIST) insteas of one - witch I've replaced in MarkupContainer.onBeforeRender(). Call to oldFeedBack.prepareForRender(); before addOrReplace fixes problem, but prepareForRender is not in public API. StackTrace: org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [Component id = feedbackPanel] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1692) at org.apache.wicket.Component.onBeforeRender(Component.java:3830) at org.apache.wicket.Component.internalBeforeRender(Component.java:922) at org.apache.wicket.Component.internalPrepareForRender(Component.java:2222) at org.apache.wicket.Page.internalPrepareForRender(Page.java:247) at org.apache.wicket.Component.render(Component.java:2289) at org.apache.wicket.Page.renderPage(Page.java:1021) at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:116) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:196) at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:165) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:830) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137) <....> Caused by: java.lang.RuntimeException: An error occurred while getting the model object for Component: [MessageListView [Component id = messages, page = <No Page> ... at org.apache.wicket.Component.getDefaultModelObject(Component.java:1620) at org.apache.wicket.markup.html.list.ListView.getModelObject(ListView.java:644) at org.apache.wicket.markup.html.panel.FeedbackPanel.getCurrentMessages(FeedbackPanel.java:307) at org.apache.wicket.markup.html.panel.FeedbackPanel.anyMessage(FeedbackPanel.java:200) at org.apache.wicket.markup.html.panel.FeedbackPanel.anyMessage(FeedbackPanel.java:187) at org.apache.wicket.markup.html.panel.FeedbackPanel$1.onConfigure(FeedbackPanel.java:155) at org.apache.wicket.Component.configure(Component.java:1028) at org.apache.wicket.Component.internalBeforeRender(Component.java:913) at org.apache.wicket.Component.beforeRender(Component.java:990) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1680)
    via by Artem Morozov,
  • Refresh for page, containing feedback panel causes WicketRuntimeException. I have MarkupContainer wich has overriden protected void onBeforeRender() where I call addOrReplace to add or replace component with feedback panel. I have noticed that refreshing such page causes Caused by: java.lang.RuntimeException: An error occurred while getting the model object for Component: [MessageListView [Component id = messages, page = <No Page>, ... During dubug Wicket 6.3.0 I see that Component.beforeRender() method has multiple feedbacks in getRequestCycle().getMetaData(FEEDBACK_LIST) insteas of one - witch I've replaced in MarkupContainer.onBeforeRender(). Call to oldFeedBack.prepareForRender(); before addOrReplace fixes problem, but prepareForRender is not in public API. StackTrace: org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [Component id = feedbackPanel] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1692) at org.apache.wicket.Component.onBeforeRender(Component.java:3830) at org.apache.wicket.Component.internalBeforeRender(Component.java:922) at org.apache.wicket.Component.internalPrepareForRender(Component.java:2222) at org.apache.wicket.Page.internalPrepareForRender(Page.java:247) at org.apache.wicket.Component.render(Component.java:2289) at org.apache.wicket.Page.renderPage(Page.java:1021) at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:116) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:196) at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:165) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:830) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137) <....> Caused by: java.lang.RuntimeException: An error occurred while getting the model object for Component: [MessageListView [Component id = messages, page = <No Page> ... at org.apache.wicket.Component.getDefaultModelObject(Component.java:1620) at org.apache.wicket.markup.html.list.ListView.getModelObject(ListView.java:644) at org.apache.wicket.markup.html.panel.FeedbackPanel.getCurrentMessages(FeedbackPanel.java:307) at org.apache.wicket.markup.html.panel.FeedbackPanel.anyMessage(FeedbackPanel.java:200) at org.apache.wicket.markup.html.panel.FeedbackPanel.anyMessage(FeedbackPanel.java:187) at org.apache.wicket.markup.html.panel.FeedbackPanel$1.onConfigure(FeedbackPanel.java:155) at org.apache.wicket.Component.configure(Component.java:1028) at org.apache.wicket.Component.internalBeforeRender(Component.java:913) at org.apache.wicket.Component.beforeRender(Component.java:990) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1680)
    via by Artem Morozov,
    • org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [Page class = org.geoserver.monitor.web.ActivityPage, id = 8, render count = 1] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1580) at org.apache.wicket.Component.onBeforeRender(Component.java:3877) at org.apache.wicket.Page.onBeforeRender(Page.java:801) at org.apache.wicket.Component.internalBeforeRender(Component.java:949) at org.apache.wicket.Component.beforeRender(Component.java:1017) at org.apache.wicket.Component.internalPrepareForRender(Component.java:2215) at org.apache.wicket.Page.internalPrepareForRender(Page.java:242) at org.apache.wicket.Component.render(Component.java:2304) at org.apache.wicket.Page.renderPage(Page.java:1018) at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:124) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:236) at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293) at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    8 more bugmates