Wicket
  1. Wicket
  2. WICKET-4227

dropping ajax request causes componentnotfoundexception

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.5.4, 6.0.0-beta1
    • Component/s: wicket
    • Labels:
      None
    1. WICKET-4227.patch
      2 kB
      Martin Grigorov
    2. myproject.zip
      30 kB
      Michal Wegrzyn

      Activity

      Hide
      Michal Wegrzyn added a comment -

      quickstart

      Show
      Michal Wegrzyn added a comment - quickstart
      Hide
      Martin Grigorov added a comment -

      It appeared there is a bug in ajax channels handling.
      With this patch the quickstart works.
      Can you test it against your real application ?

      Show
      Martin Grigorov added a comment - It appeared there is a bug in ajax channels handling. With this patch the quickstart works. Can you test it against your real application ?
      Hide
      Michal Wegrzyn added a comment -

      Yes, with patch application works.
      Thank you.

      Show
      Michal Wegrzyn added a comment - Yes, with patch application works. Thank you.
      Hide
      Michal Wegrzyn added a comment -

      I have just updated to Wicket 1.5.4 and tested WICKET-4227 and unfortunately still it does not work as intended.
      Only last (and sometimes first - seems it depends on AjaxChannel name) lazy component from repeater is loaded.

      It can be reproduced with old quickstart - just change returned channel type in MyAjaxLazyLoadPanel to AjaxChannel.Type.DROP.

      Show
      Michal Wegrzyn added a comment - I have just updated to Wicket 1.5.4 and tested WICKET-4227 and unfortunately still it does not work as intended. Only last (and sometimes first - seems it depends on AjaxChannel name) lazy component from repeater is loaded. It can be reproduced with old quickstart - just change returned channel type in MyAjaxLazyLoadPanel to AjaxChannel.Type.DROP.
      Hide
      Martin Grigorov added a comment -

      Clear the browser cache.
      I just retested it with 1.5-SNAPSHOT and it behaves well

      Show
      Martin Grigorov added a comment - Clear the browser cache. I just retested it with 1.5-SNAPSHOT and it behaves well
      Hide
      Michal Wegrzyn added a comment -

      I have tried that already and in few different browsers - no luck.

      Is it possible that it has been fixed somewhere between 1.5.4 and SNAPSHOT?

      Can you try to test quickstart with 1.5.4 and above mentioned change in MyAjaxLazyLoadPanel?

      Show
      Michal Wegrzyn added a comment - I have tried that already and in few different browsers - no luck. Is it possible that it has been fixed somewhere between 1.5.4 and SNAPSHOT? Can you try to test quickstart with 1.5.4 and above mentioned change in MyAjaxLazyLoadPanel?
      Hide
      Michal Wegrzyn added a comment -

      Note that I do not get any exception more, but not all lazy components are loaded.

      Show
      Michal Wegrzyn added a comment - Note that I do not get any exception more, but not all lazy components are loaded.
      Hide
      Aleksandar Giljanovic added a comment -

      Hi all

      We have been following the developments around this issue with great interest hoping that this would resolve the problem we have with our Wicket based application (please check the project site for more project related info: http://intelleo.eu).

      On the page in question we have several tabs utilizing "AjaxTabbedPanel" overridden so that its "AjaxFallbackLink" uses "AjaxChannel.Type.DROP". One of the tabs on the page, is displaying a form that loads several "AjaxLazyLoadPanels". The idea was to enable users to navigate away from the form without having to wait for all LazyPanels to finish loading.

      Unfortunately when we click any other tab, we still get the “Component not found” exception. We are running 1.5-SNAPSHOT.
      Are we missing something? Any suggestions?

      Thanks in advance.

      Aleksandar

      P.S.
      The follwing is the actual ERROR description:

      2012-01-26 11:57:31,883 ERROR org.apache.wicket.DefaultExceptionMapper.internalMap(DefaultExceptionMapper.java:114) - Unexpected error occurred
      org.apache.wicket.request.handler.ComponentNotFoundException: Could not find component 'mainContainer:mainTabs:lpform:tabs:panel:mainContentPanel:lpFormPanel:lpform:tabs:panel:learninghistoryupdatinglabel' on page 'class org.intelleo.webui.lp.workspace.MainPage
      at org.apache.wicket.request.handler.PageAndComponentProvider.getComponent(PageAndComponentProvider.java:167)
      at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.getComponent(ListenerInterfaceRequestHandler.java:92)
      at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:239)
      at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:750)
      at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
      at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252)
      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)
      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280)
      at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
      at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:99)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:425)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
      at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
      at org.eclipse.jetty.server.Server.handle(Server.java:334)
      at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
      at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:992)
      at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:541)
      at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:203)
      at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
      at java.lang.Thread.run(Thread.java:662)

      Show
      Aleksandar Giljanovic added a comment - Hi all We have been following the developments around this issue with great interest hoping that this would resolve the problem we have with our Wicket based application (please check the project site for more project related info: http://intelleo.eu ). On the page in question we have several tabs utilizing "AjaxTabbedPanel" overridden so that its "AjaxFallbackLink" uses "AjaxChannel.Type.DROP". One of the tabs on the page, is displaying a form that loads several "AjaxLazyLoadPanels". The idea was to enable users to navigate away from the form without having to wait for all LazyPanels to finish loading. Unfortunately when we click any other tab, we still get the “Component not found” exception. We are running 1.5-SNAPSHOT. Are we missing something? Any suggestions? Thanks in advance. Aleksandar P.S. The follwing is the actual ERROR description: 2012-01-26 11:57:31,883 ERROR org.apache.wicket.DefaultExceptionMapper.internalMap(DefaultExceptionMapper.java:114) - Unexpected error occurred org.apache.wicket.request.handler.ComponentNotFoundException: Could not find component 'mainContainer:mainTabs:lpform:tabs:panel:mainContentPanel:lpFormPanel:lpform:tabs:panel:learninghistoryupdatinglabel' on page 'class org.intelleo.webui.lp.workspace.MainPage at org.apache.wicket.request.handler.PageAndComponentProvider.getComponent(PageAndComponentProvider.java:167) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.getComponent(ListenerInterfaceRequestHandler.java:92) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:239) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:750) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:99) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:425) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:992) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:541) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:203) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:662)
      Hide
      Martin Grigorov added a comment -

      Please create a separate issue with a quickstart and detailed description how to reproduce.

      Show
      Martin Grigorov added a comment - Please create a separate issue with a quickstart and detailed description how to reproduce.
      Hide
      Aleksandar Giljanovic added a comment -

      Done, please see the following:

      https://issues.apache.org/jira/browse/WICKET-4366

      Thanks.

      Show
      Aleksandar Giljanovic added a comment - Done, please see the following: https://issues.apache.org/jira/browse/WICKET-4366 Thanks.

        People

        • Assignee:
          Martin Grigorov
          Reporter:
          Michal Wegrzyn
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development