Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-747

rendering of dynamic Trees somtimes fetches all children: Tree.dfSearch(TreeModel<Node>, List<Integer>, Node, Node) line: 1906

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.0, Freshly
    • Fix Version/s: 6.0.0
    • Component/s: General
    • Labels:

      Description

      When using a DefaultTreeModel<String>(...) Tree.dfSearch sometimes tries to fetch all children(in my case +1'000'000).

      This somtimes happens with zk-bin-6.0.0-FL-2012-01-02 but never with zk-bin-6.0.0-FL-2011-12-20.

      backtrace:

      ...
      Tree.dfSearch(TreeModel<Node>, List<Integer>, Node, Node) line: 1906
      Tree.dfSearch(TreeModel<Node>, List<Integer>, Node, Node) line: 1906
      Tree.dfSearch(TreeModel<Node>, List<Integer>, Node, Node) line: 1906
      Tree.dfSearch(TreeModel<Node>, List<Integer>, Node, Node) line: 1906
      Tree.dfSearch(TreeModel<Node>, List<Integer>, Node, Node) line: 1906
      Tree.dfSearch(TreeModel<Node>, List<Integer>, Node, Node) line: 1906
      Tree.dfSearch(TreeModel<Node>, List<Integer>, Node, Node) line: 1906
      Tree.getPath(TreeModel<Node>, Node, Node) line: 1893
      Tree$Renderer.render(Treeitem, Object) line: 1653
      Tree$Renderer.access$1200(Tree$Renderer, Treeitem, Object) line: 1635
      Tree.renderChildren(Tree$Renderer, Treechildren, Object) line: 1577
      Tree.renderTree() line: 1559
      Tree.access$700(Tree) line: 150
      Tree$ModelInitListener.onEvent(Event) line: 234
      AbstractComponent.onEvent(EventListener, Event) line: 2741
      Tree(AbstractComponent).service(Event, Scope, List<EventListenerInfo>, EventHandler, Method, boolean) line: 2712
      Tree(AbstractComponent).service(Event, Scope) line: 2653
      EventProcessor.process() line: 143
      UiEngineImpl.processEvent(Desktop, Component, Event) line: 1704
      UiEngineImpl.process(Desktop, Event) line: 1489
      UiEngineImpl.execUpdate(Execution, List<AuRequest>, AuWriter) line: 1206
      DHtmlUpdateServlet.process(Session, HttpServletRequest, HttpServletResponse) line: 561
      DHtmlUpdateServlet.doGet(HttpServletRequest, HttpServletResponse) line: 459
      DHtmlUpdateServlet.doPost(HttpServletRequest, HttpServletResponse) line: 467
      DHtmlUpdateServlet(HttpServlet).service(HttpServletRequest, HttpServletResponse) line: 637
      DHtmlUpdateServlet(HttpServlet).service(ServletRequest, ServletResponse) line: 717
      ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 290
      ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206
      StandardWrapperValve.invoke(Request, Response) line: 233
      StandardContextValve.invoke(Request, Response) line: 191
      FormAuthenticator(AuthenticatorBase).invoke(Request, Response) line: 563
      StandardHostValve.invoke(Request, Response) line: 127
      ErrorReportValve.invoke(Request, Response) line: 102
      StandardEngineValve.invoke(Request, Response) line: 109
      CoyoteAdapter.service(Request, Response) line: 298
      Http11Processor.process(Socket) line: 859
      Http11Protocol$Http11ConnectionHandler.process(Socket) line: 588
      JIoEndpoint$Worker.run() line: 489
      Thread.run() line: 679

        Attachments

        1. FileTreeNode.java
          3 kB
        2. FileTreeRenderer.java
          0.5 kB
        3. index.zul
          0.4 kB

          Activity

            People

            Assignee:
            jumperchen jumperchen
            Reporter:
            pipe pipe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: