Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6399

Dequeuing of Border component with nested body fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.7.0
    • 6.27.0, 7.8.0, 8.0.0-M7
    • wicket
    • None
    • Important

    Description

      Accessing a page with a Border component and a nested body a second time fails due to dequeuing problem. Find attached quickstarts (both with the same error) to reproduce the problem. First request to http://localhost:8080/test3.html succeeds while the second request to the same URL fails with the following WicketRuntimeException:

      org.apache.wicket.WicketRuntimeException: Detach called on component with id 'layout' while it had a non-empty queue: ComponentQueue

      {queueSize=1, queue=[[BorderBodyContainer [Component id = layout_body]], null, null, null, null, null, null, null]}

      at org.apache.wicket.MarkupContainer.onDetach(MarkupContainer.java:1943)
      at org.apache.wicket.Component.detach(Component.java:1163)
      at org.apache.wicket.MarkupContainer.detachChildren(MarkupContainer.java:1761)
      at org.apache.wicket.Component.detach(Component.java:1187)
      at org.apache.wicket.MarkupContainer.detachChildren(MarkupContainer.java:1761)
      at org.apache.wicket.Component.detach(Component.java:1187)
      at org.apache.wicket.core.request.handler.PageProvider.detach(PageProvider.java:330)
      at org.apache.wicket.core.request.handler.RenderPageRequestHandler.detach(RenderPageRequestHandler.java:156)
      at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.detach(RequestCycle.java:906)
      at org.apache.wicket.request.RequestHandlerStack.detach(RequestHandlerStack.java:180)
      at org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:641)
      at org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:594)
      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:297)
      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)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.eclipse.jetty.server.Server.handle(Server.java:499)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      at java.lang.Thread.run(Thread.java:748)

      Attachments

        1. testproject3.zip
          41 kB
          Dirk Forchel
        2. testproject.zip
          45 kB
          Dirk Forchel
        3. myproject2.zip
          59 kB
          Dirk Forchel

        Issue Links

          Activity

            People

              bitstorm Andrea Del Bene
              forchel Dirk Forchel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: