org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [Component id = feedbackPanel]

Apache's JIRA Issue Tracker | Artem Morozov | 4 years ago
  1. 0

    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)

    Apache's JIRA Issue Tracker | 4 years ago | Artem Morozov
    org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [Component id = feedbackPanel]
  2. 0

    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)

    Apache's JIRA Issue Tracker | 4 years ago | Artem Morozov
    org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [Component id = feedbackPanel]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 1369#195018334

    GitHub | 9 months ago | kyleblythe
    org.apache.wicket.WicketRuntimeException: The component(s) below failed to render. Possible reasons could be that: 1) you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered), 2) if your components were added in a parent container then make sure the markup for the child container includes them in <wicket:extend>. 1. [Component id = heading]

    9 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.wicket.WicketRuntimeException

      Error attaching this container for rendering: [Component id = feedbackPanel]

      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren()
    2. Wicket Core
      RequestCycle$HandlerExecutor.respond
      1. org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1692)
      2. org.apache.wicket.Component.onBeforeRender(Component.java:3830)
      3. org.apache.wicket.Component.internalBeforeRender(Component.java:922)
      4. org.apache.wicket.Component.internalPrepareForRender(Component.java:2222)
      5. org.apache.wicket.Page.internalPrepareForRender(Page.java:247)
      6. org.apache.wicket.Component.render(Component.java:2289)
      7. org.apache.wicket.Page.renderPage(Page.java:1021)
      8. org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:116)
      9. org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:196)
      10. org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:165)
      11. org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:830)
      11 frames
    3. Wicket Request
      RequestHandlerStack.execute
      1. org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
      1 frame
    4. Wicket Core
      WicketServlet.doGet
      1. org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253)
      2. org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210)
      3. org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281)
      4. org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
      5. org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
      5 frames