Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #16
    The 2nd stack trace (you can see the time stamps) was done on request via a menu button minutes after the transition. So I don't think it was a race condition, if that is what you are thinking?

    The 1st stack trace happens when
    Code:
                ResultTree resultTree = new ResultTree();
                resultTree.setData(objects);
                resultTree.setDataSource(treeGrid.getDataSource());
        -->   resultTree.setOpenState(treeGrid.getOpenState());
    
                treeGrid.setData(resultTree);
                GWT.log("new ResultTree added to treeGrid.");
    the resultTree.setOpenState(treeGrid.getOpenState()) is executed. I see the log output 'new ResultTree added to treeGrid' after the stack trace in the log.

    Then minutes later, I manually initiate the TreeGrid.invalidateCache() call which triggers the 2nd stack trace above.

    Do you still think it is a timing issue? So we loose the cache by replacing the ResultTree with a new one? Or was that more related to aa timing issue as well?
    Last edited by JLivermore; 30 Sep 2014, 14:44.

    Comment


      #17
      We're not saying it's a timing issue.

      We're saying that for any given refresh of the data, you should *either* call setData() with a new ResultTree *or* call invalidateCache(). Not both.

      You haven't showed enough of the code for us to determine if you're calling both.

      Comment


        #18
        Yes, I was doing both with the same grid.

        Comment


          #19
          OK.. so when you eliminated that problem, did that clear up the warnings and other issues?

          Comment


            #20
            No. What was the other issue you are referring to? It seems replacing the orginal ResultTree with a newly created one is causing more issues.

            Upon further testing, after I replace the ResultTree with a new ResultTree, when I expand a node on the tree to test the load on demand further with the new ResultTree, I see a DSRequest go out to the server and the result is returned in the DSResponse and the TreeGrid goes blank and into a loop that spews out errors in the client log complaining about collisions with IDs locking up the DevConsole RPC tab for a minute maybe more as it spews out errors. We're only talking about a simple case of 3 records total in the grid.

            After it's done spewing errors (a minute or so) it finally stops and I'm able to gain control to the DevConsole to cut and paste DSRequest and DSResponse:

            DSRequest
            Code:
            {
                dataSource:"pivot_table_tree_fact_RTF_384_682", 
                operationType:"fetch", 
                data:{
                    pid:"ONE TWO THREE", 
                    spcs:[
                        "189", 
                        "2014-10-01", 
                        "2014-10-01", 
                        "RTF", 
                        "190:2^682|189:2", 
                        "", 
                        "873|872|875|874|867|870", 
                        "141", 
                        "", 
                        "true", 
                        "384", 
                        "2355", 
                        "682", 
                        "realTimeEquitiesFactDataSource", 
                        "189", 
                        "2014-10-01", 
                        "2014-10-01", 
                        "RTF", 
                        "190:2^682|189:2", 
                        "141:2^ONE TWO THREE", 
                        "873|872|875|874|867|870", 
                        "139", 
                        "ONE TWO THREE", 
                        "false", 
                        "384", 
                        "2355", 
                        "682", 
                        "realTimeEquitiesFactDataSource"
                    ], 
                    inVC:true, 
                    nodePid:"Grand Total", 
                    nodeCid:"ONE TWO THREE"
                }, 
                textMatchStyle:"exact", 
                resultTree:[ResultTree ID:isc_ResultTree_2(created directly)], 
                callback:{
                    caller:[ResultTree ID:isc_ResultTree_2(created directly)], 
                    methodName:"loadChildrenReply"
                }, 
                willHandleError:true, 
                showPrompt:false, 
                oldValues:{
                    pid:"ONE TWO THREE", 
                    spcs:[
                        "189", 
                        "2014-10-01", 
                        "2014-10-01", 
                        "RTF", 
                        "190:2^682|189:2", 
                        "", 
                        "873|872|875|874|867|870", 
                        "141", 
                        "", 
                        "true", 
                        "384", 
                        "2355", 
                        "682", 
                        "realTimeEquitiesFactDataSource", 
                        "189", 
                        "2014-10-01", 
                        "2014-10-01", 
                        "RTF", 
                        "190:2^682|189:2", 
                        "141:2^ONE TWO THREE", 
                        "873|872|875|874|867|870", 
                        "139", 
                        "ONE TWO THREE", 
                        "false", 
                        "384", 
                        "2355", 
                        "682", 
                        "realTimeEquitiesFactDataSource"
                    ], 
                    inVC:true, 
                    nodePid:"Grand Total", 
                    nodeCid:"ONE TWO THREE"
                }, 
                requestId:"pivot_table_tree_fact_RTF_384_682$62711", 
                internalClientContext:{
                    parentNode:{
                        SharesOrdered:1, 
                        SharesRemaining:1, 
                        dIVWAPCPS:0, 
                        name:"ONE TWO THREE", 
                        pid:"Grand Total", 
                        cid:"ONE TWO THREE", 
                        dEntStrikeCPS:0, 
                        isFolder:true, 
                        children:Array[1]
                    }, 
                    relationship:{
                        childDS:[DataSource ID:pivot_table_tree_fact_RTF_384_682], 
                        parentDS:[DataSource ID:pivot_table_tree_fact_RTF_384_682], 
                        parentIdField:"pid", 
                        idField:"cid"
                    }, 
                    childrenReplyCallback:{
                    }, 
                    fetchCount:1
                }, 
                useStrictJSON:true, 
                fallbackToEval:true, 
                progressiveLoading:false, 
                lastClientEventThreadCode:"pointerup4", 
                bypassCache:true
            }
            DSResponse
            Code:
            [
                {
                    affectedRows:0, 
                    data:[
                        {
                            SharesOrdered:1, 
                            SharesRemaining:1, 
                            dIVWAPCPS:0, 
                            name:"ONE TWO THREE", 
                            pid:"Grand Total", 
                            cid:"ONE TWO THREE", 
                            dEntStrikeCPS:0
                        }, 
                        {
                            SharesOrdered:1, 
                            SharesRemaining:1, 
                            dIVWAPCPS:0, 
                            name:"Grand Total", 
                            cid:"Grand Total", 
                            dEntStrikeCPS:0
                        }, 
                        {
                            SharesOrdered:1, 
                            SharesRemaining:1, 
                            dIVWAPCPS:0, 
                            name:"Buy", 
                            pid:"ONE TWO THREE", 
                            cid:"ONE TWO THREE^|^Buy", 
                            dEntStrikeCPS:0
                        }
                    ], 
                    endRow:2, 
                    invalidateCache:true, 
                    isDSResponse:true, 
                    queueStatus:0, 
                    startRow:0, 
                    status:0, 
                    totalRows:3
                }
            ]
            Here is the error in the client log that is repeated numerous times (so much I lose my history in Idea for the client log due to exceeding the default buffer size in the IDE).
            Code:
            ERROR: 09:04:33.471:WARN:ResultTree:isc_ResultTree_1 (created by: undefined):Adding node to tree with id property set to:Grand Total. A node with this ID is already present in this Tree - that node will be replaced. Note that this warning may be disabled by setting the reportCollisions attribute to false.
            com.smartgwt.client.core.JsObject$SGWT_WARN: 09:04:33.471:WARN:ResultTree:isc_ResultTree_1 (created by: undefined):Adding node to tree with id property set to:Grand Total. A node with this ID is already present in this Tree - that node will be replaced. Note that this warning may be disabled by setting the reportCollisions attribute to false.
            	at sun.reflect.GeneratedConstructorAccessor22.newInstance(Unknown Source)
            	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
            	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
            	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
            	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
            	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
            	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
            	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
            	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
            	at com.smartgwt.client.widgets.tree.ResultTree.create(ResultTree.java)
            	at com.smartgwt.client.core.BaseClass.createJsObj(BaseClass.java:165)
            	at com.smartgwt.client.data.RecordList.getOrCreateJsObj(RecordList.java:91)
            	at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
            	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
            	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
            	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
            	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
            	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:304)
            	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
            	at com.smartgwt.client.widgets.tree.ResultTree.setOpenState(ResultTree.java)
            	at com.anstca.tz.client.floater.pivottable.view.PivotTableGrid$4.run(PivotTableGrid.java:983)
            	at com.google.gwt.user.client.Timer.fire(Timer.java:140)
            	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
            	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
            	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
            	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
            	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
            	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
            	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
            	at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
            	at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
            	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
            	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
            	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
            	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
            	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
            	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
            	at java.lang.Thread.run(Thread.java:744)
            ERROR: 09:04:33.477:WARN:ResultTree:isc_ResultTree_1 (created by: undefined):Adding node to tree with id property set to:ONE TWO THREE. A node with this ID is already present in this Tree - that node will be replaced. Note that this warning may be disabled by setting the reportCollisions attribute to false.
            com.smartgwt.client.core.JsObject$SGWT_WARN: 09:04:33.477:WARN:ResultTree:isc_ResultTree_1 (created by: undefined):Adding node to tree with id property set to:ONE TWO THREE. A node with this ID is already present in this Tree - that node will be replaced. Note that this warning may be disabled by setting the reportCollisions attribute to false.
            	at sun.reflect.GeneratedConstructorAccessor22.newInstance(Unknown Source)
            	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
            	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
            	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
            	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
            	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
            	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
            	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
            	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
            	at com.smartgwt.client.widgets.tree.ResultTree.create(ResultTree.java)
            	at com.smartgwt.client.core.BaseClass.createJsObj(BaseClass.java:165)
            	at com.smartgwt.client.data.RecordList.getOrCreateJsObj(RecordList.java:91)
            	at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
            	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
            	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
            	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
            	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
            	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:304)
            	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
            	at com.smartgwt.client.widgets.tree.ResultTree.setOpenState(ResultTree.java)
            	at com.anstca.tz.client.floater.pivottable.view.PivotTableGrid$4.run(PivotTableGrid.java:983)
            	at com.google.gwt.user.client.Timer.fire(Timer.java:140)
            	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
            	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
            	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
            	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
            	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
            	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
            	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
            	at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
            	at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
            	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
            	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
            	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
            	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
            	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
            	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
            	at java.lang.Thread.run(Thread.java:744)
            ERROR: Uncaught exception escaped
            com.google.gwt.core.client.JavaScriptException: (Error) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(24321), JavaScript object(22403), JavaScript object(24367)]): 
            	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
            	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
            	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
            	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
            	at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
            	at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
            	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
            	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
            	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
            	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
            	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
            	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
            Last edited by JLivermore; 1 Oct 2014, 05:28.

            Comment


              #21
              OK, I fixed the issue from my previous post. The issue was I was creating a new ResultTree for a load on demand request due to the invalidateCache=true on the DSResponse.

              From what I gather working through this issue, as soon as we replace the original ResultTree with a new one, the TreeGrid.invlidateCache() call to trigger a refresh is not correct. I should be doing a TreeGrid.fetchData() instead? Then the RequestTransformer is bypassed all together?

              This is a suggested workaround because I was having issues when returning a DSResponse will the entire tree on the root node DSRequest was causing the grid to go blank. It seems like changing out the original ResultTree to a new ResultTree we loose TreeGrid.invalidateCache() ability.

              Comment


                #22
                There's no known issue with calling invalidateCache() after providing a new ResultTree.

                But just to mention again:

                We're saying that for any given refresh of the data, you should *either* call setData() with a new ResultTree *or* call invalidateCache(). Not both.
                So when we say calling invalidateCache() is fine, we mean it's fine to call it at some later time. It would never make sense to use *both* setData() with a new ResultTree *and* a call to invalidateCache() as part of a single attempt to refresh all data shown in a tree.

                Comment


                  #23
                  ok, so then we still have issues. TreeGrid.invalidateCache() does not work after a new ResultTree is inserted into the grid. Thank you for being specific, I am not doing a TreeGrid.setData() and TreeGrid.invalidateCache() at the same time.

                  I am doing:

                  1. TreeGrid.invalidateCache() which triggers the DSRequest starting with the root node, so the 1st DSRequest with root node goes to the server.
                  2. The DSRequest is processed and we load the entire tree into the DSReqeust (root node) DSResponse with DSResponse.invalidateCache() set to true going back to the client.
                  3. The ResponseTransformer detects the DSResponse.invalidateCache() is set to true, at which point we create a new ResultTree, set the ResultTree's DataSource, Open State, and data, and insert the new ResultTree back into the TreeGrid.
                  4. Done.
                  5. At some later point in time I make a call to TreeGrid.invalidateCache() and the grid does not respond with a new DSRequest FETCH to update the cache.

                  Is there any more data I can provide to help troubleshoot? The error in the client log looks like this, and is thrown where I call TreeGrid.invalidateCache():
                  Code:
                  ERROR: 13:18:03.277:pointerup7:WARN:ResultTree:isc_ResultTree_0 (created by: undefined):Adding node to tree with id property set to:ONE TWO THREE. A node with this ID is already present in this Tree - that node will be replaced. Note that this warning may be disabled by setting the reportCollisions attribute to false.
                  com.smartgwt.client.core.JsObject$SGWT_WARN: 13:18:03.277:pointerup7:WARN:ResultTree:isc_ResultTree_0 (created by: undefined):Adding node to tree with id property set to:ONE TWO THREE. A node with this ID is already present in this Tree - that node will be replaced. Note that this warning may be disabled by setting the reportCollisions attribute to false.
                  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
                  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
                  	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
                  	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
                  	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
                  	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                  	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                  	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
                  	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:304)
                  	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
                  	at com.smartgwt.client.widgets.grid.ListGrid.invalidateCache(ListGrid.java)
                  	at com.anstca.tz.client.floater.pivottable.view.PivotTableGrid.invalidateCache(PivotTableGrid.java:176)
                  	at com.anstca.tz.client.floater.pivottable.controller.ModelMediator.updatePivotTableAndInvalidateCache(ModelMediator.java:91)
                  	at com.anstca.tz.client.realtime.ui.RealTimeEquitiesPivotTablePlugin$3.onClick(RealTimeEquitiesPivotTablePlugin.java:186)
                  	at com.smartgwt.client.widgets.menu.events.MenuItemClickEvent.dispatch(MenuItemClickEvent.java:110)
                  	at com.smartgwt.client.widgets.menu.events.MenuItemClickEvent.dispatch(MenuItemClickEvent.java:1)
                  	at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
                  	at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
                  	at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
                  	at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
                  	at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
                  	at com.smartgwt.client.core.DataClass.fireEvent(DataClass.java:506)
                  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  	at java.lang.reflect.Method.invoke(Method.java:606)
                  	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
                  	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
                  	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                  	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                  	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
                  	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
                  	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                  	at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
                  	at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
                  	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
                  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  	at java.lang.reflect.Method.invoke(Method.java:606)
                  	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
                  	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
                  	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                  	at java.lang.Thread.run(Thread.java:744)
                  Last edited by JLivermore; 1 Oct 2014, 09:23.

                  Comment


                    #24
                    Uhm, so what you're doing is exactly what we just stated was wrong:

                    It would never make sense to use *both* setData() with a new ResultTree *and* a call to invalidateCache() as part of a single attempt to refresh all data shown in a tree.
                    Just simplify your process to calling DataSource.fetchData() and creating a ResultTree based on the response, which is then passed to setData(). No invalidateCache() call needed, in step 1 or step 5.

                    Comment


                      #25
                      I have been thinking about that, which is a completely different way of using a grid. Taking control by means of TreeGrid.fetchData() and manually inserting a ResultTree with the results, will this still work with load-on-demand node expansions?

                      I have a RequestTransformer in place that handles the load-on-demand requests that setup the DSRequest with our back end stored procedure that loads data for the grid.

                      Comment


                        #26
                        Yes, providing a ResultTree with initial data still allows load on demand. This is covered in the docs and with a sample.

                        Comment


                          #27
                          That link you provided does not seem to work? I tried in Chrome and IE-11. When I go to the showcase from the top (this works for me) I cannot find that example?

                          I see under /Tree/Data Binding/
                          * Load Data From Local
                          * Parent Linking
                          * Children Arrays
                          * Load on Demand

                          What is the full path to the link you gave me?

                          Comment


                            #28
                            Try clearing your browser cache, then follow the same link again.

                            Comment


                              #29
                              IE-11, I cleared my browser cache, and tried that link directly again:

                              http://www.smartclient.com/smartgwtee/showcase/#load_tree_initial_data

                              and it's hung - 'Smart GWT EE Loading 128 Samples please wait...'

                              Comment


                                #30
                                Not sure what to tell you, the Showcase is working fine in both Chrome and various versions of IE, and other browsers.

                                You may be having network trouble of some kind.

                                Are you still experiencing trouble in other browsers?

                                Note you can of course just go to your local Showcase install. The sample is under Java Data Integration > SQL > Tree Initial Data & Load on Demand. And of course it's linked from the Tree Load on Demand overview.

                                Comment

                                Working...
                                X