java.lang.IllegalArgumentException: A child 'TransparentWebMarkupContainer' with id 'wicket_relative_path_prefix_1' already exists: [BorderBodyContainer [Component id = myborder_body]]

Apache's JIRA Issue Tracker | GLEDSON BEZERRA DE OLIVEIRA RABELO | 12 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    The problem is easy to simulate and I am sending an example. It occurs when you have a page with border containing an img tag. Just leave the page and press the back button and the exception is thrown. java.lang.IllegalArgumentException: A child 'TransparentWebMarkupContainer' with id 'wicket_relative_path_prefix_1' already exists: [BorderBodyContainer [Component id = myborder_body]] at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:234) at org.apache.wicket.markup.html.border.Border.add(Border.java:227) at org.apache.wicket.markup.html.border.Border.add(Border.java:140) at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:312) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1513) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1759) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1734) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:797) at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77) at org.apache.wicket.markup.html.panel.BorderMarkupSourcingStrategy.onComponentTagBody(BorderMarkupSourcingStrategy.java:46) at org.apache.wicket.Component.internalRenderComponent(Component.java:2565) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1698) at org.apache.wicket.Component.internalRender(Component.java:2380) at org.apache.wicket.Component.render(Component.java:2308) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1524) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1759) at org.apache.wicket.Page.onRender(Page.java:879) at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:141) at org.apache.wicket.Component.internalRender(Component.java:2380) at org.apache.wicket.Component.render(Component.java:2308) 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:195) at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895) 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.WicketFilter.doFilter(WicketFilter.java:284)

    Apache's JIRA Issue Tracker | 12 months ago | GLEDSON BEZERRA DE OLIVEIRA RABELO
    java.lang.IllegalArgumentException: A child 'TransparentWebMarkupContainer' with id 'wicket_relative_path_prefix_1' already exists: [BorderBodyContainer [Component id = myborder_body]]

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      A child 'TransparentWebMarkupContainer' with id 'wicket_relative_path_prefix_1' already exists: [BorderBodyContainer [Component id = myborder_body]]

      at org.apache.wicket.MarkupContainer.add()
    2. Wicket Core
      RequestCycle$HandlerExecutor.respond
      1. org.apache.wicket.MarkupContainer.add(MarkupContainer.java:234)
      2. org.apache.wicket.markup.html.border.Border.add(Border.java:227)
      3. org.apache.wicket.markup.html.border.Border.add(Border.java:140)
      4. org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:312)
      5. org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1513)
      6. org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1759)
      7. org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1734)
      8. org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:797)
      9. org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
      10. org.apache.wicket.markup.html.panel.BorderMarkupSourcingStrategy.onComponentTagBody(BorderMarkupSourcingStrategy.java:46)
      11. org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      12. org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1698)
      13. org.apache.wicket.Component.internalRender(Component.java:2380)
      14. org.apache.wicket.Component.render(Component.java:2308)
      15. org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1524)
      16. org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1759)
      17. org.apache.wicket.Page.onRender(Page.java:879)
      18. org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:141)
      19. org.apache.wicket.Component.internalRender(Component.java:2380)
      20. org.apache.wicket.Component.render(Component.java:2308)
      21. org.apache.wicket.Page.renderPage(Page.java:1018)
      22. org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:124)
      23. org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:195)
      24. org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
      25. org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
      25 frames
    3. Wicket Request
      RequestHandlerStack.execute
      1. org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
      1 frame
    4. Wicket Core
      WicketFilter.doFilter
      1. org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
      2. org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
      3. org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
      4. org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
      5. org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
      6. org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284)
      6 frames