Announcement

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

    #31
    Nice. Is it in the Power Edition dated 9-8 (today)? Or should I look for it tomorrow?

    Comment


      #32
      Tomorrow - September 9th

      Regards
      Isomorphic Software

      Comment


        #33
        SmartClient Version: v9.1p_2014-09-09/PowerEdition Deployment (built 2014-09-09)
        GWT 2.6.1
        IE-11

        I've upgraded to the latest nightly build. I've set the Tree property that you back-ported for us (thank you).
        Code:
                    treeGrid.setAutoFetchData(Boolean.TRUE);
                    treeGrid.setLoadDataOnDemand(Boolean.TRUE);
                    treeGrid.setAlwaysShowOpener(Boolean.TRUE);
                    treeGrid.setDataSource(treeDataSource);
        And here is the code in my service that returns an empty set (no more data to load for that folder that I clicked on).
        Code:
                    DSResponse dsResponse = new DSResponse();
                    dsResponse.setData(new ArrayList<Map<String, Object>>(0));
                    dsResponse.setStartRow(0);
                    dsResponse.setEndRow(0);
                    dsResponse.setTotalRows(0);
        
                    return dsResponse;
        I'm still seeing this error on the client side log:
        Code:
        ERROR: 10:09:04.530:TMR5:WARN:Log:TypeError: Object doesn't support property or method 'getLength'
        Stack from error.stack:
            Arra.addList () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:426:145
            Tree._linkNodes () @ com.anstca.tz.Main/sc/modules/ISC_Grids.js?isc_version=9.1.js:68:126
            ResultTree.loadChildrenReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2047:346
            Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
            Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
            DataSource.fireResponseCallbacks () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:733:1
            DataSource._completeResponseProcessing () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:730:1
            DataSource._handleSCServerReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2411:102
            Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
            Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
        
        com.smartgwt.client.core.JsObject$SGWT_WARN: 10:09:04.530:TMR5:WARN:Log:TypeError: Object doesn't support property or method 'getLength'
        Stack from error.stack:
            Arra.addList () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:426:145
            Tree._linkNodes () @ com.anstca.tz.Main/sc/modules/ISC_Grids.js?isc_version=9.1.js:68:126
            ResultTree.loadChildrenReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2047:346
            Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
            Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
            DataSource.fireResponseCallbacks () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:733:1
            DataSource._completeResponseProcessing () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:730:1
            DataSource._handleSCServerReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2411:102
            Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
            Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
        
        	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.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)
        Should I be returning something different to make this error go away?

        Comment


          #34
          OK, I've resolved the error above in the last posting by changing the data part of the DSResponse
          Code:
                      DSResponse dsResponse = new DSResponse();
                      dsResponse.setData(new ArrayList(0));
                      dsResponse.setStartRow(0);
                      dsResponse.setEndRow(0);
                      dsResponse.setTotalRows(0);
          
                      return dsResponse;
          This is slightly different that what I have previously.

          The Opener remains on the node now thanks to the TreeGrid.setAlwaysShowOpener() method call. Great, however, we need the state to remain in the '+' state and not change to '-' when there is an empty set returned.

          How can we retain the '+' state of the opener when returning an empty set? Previously I was getting errors when returning a dummy record?

          Comment


            #35
            Trying to isolate this error further, I've discovered that this error is being thrown on the client after my RequestTransformer is called and before the DSRequest is sent to the server. This is happening when I click on the node at the end of our tree (the leaf node):
            Code:
            ERROR: 16:39:05.676:TMR8:WARN:Log:TypeError: Object doesn't support property or method 'getLength'
            Stack from error.stack:
                Arra.addList () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:426:145
                Tree._linkNodes () @ com.anstca.tz.Main/sc/modules/ISC_Grids.js?isc_version=9.1.js:68:126
                ResultTree.loadChildrenReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2047:346
                Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
                Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
                DataSource.fireResponseCallbacks () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:733:1
                DataSource._completeResponseProcessing () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:730:1
                DataSource._handleSCServerReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2411:102
                Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
                Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
            
            com.smartgwt.client.core.JsObject$SGWT_WARN: 16:39:05.676:TMR8:WARN:Log:TypeError: Object doesn't support property or method 'getLength'
            Stack from error.stack:
                Arra.addList () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:426:145
                Tree._linkNodes () @ com.anstca.tz.Main/sc/modules/ISC_Grids.js?isc_version=9.1.js:68:126
                ResultTree.loadChildrenReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2047:346
                Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
                Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
                DataSource.fireResponseCallbacks () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:733:1
                DataSource._completeResponseProcessing () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:730:1
                DataSource._handleSCServerReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2411:102
                Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
                Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
            
            	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.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)
            I also get a pop-up dialog in IE-11:
            Run debugger?
            undefined
            OK Cancel


            I thought this error was after I returned a empty set in the DSResponse, but no, this error is happening on the client from clicking on the leaf node for load on demand?
            Last edited by JLivermore; 9 Sep 2014, 14:46.

            Comment


              #36
              Further isolation of that error above, I'm seeing an exception thrown on the server before we see the exception thrown on the client:

              javax.naming.NameNotFoundException
              Resource /WEB-INF/classes/META-INF/services/javax.xml.parsers.DocumentBuilderFactory not found

              Not sure if this is related.

              Setting the debugger to break on all Exceptions, I'm seeing some Isomorphic exceptions being thrown on the server:

              java.lang.NoSuchMethodException: com.isomorphic.datasource.FileSystemDSRepo._initialize()
              java.lang.NoSuchMethodException: Method _initialize not found on class com.isomorphic.datasource.FileSystemDSRepo

              These are thrown before we see the client error above. Any ideas?
              Last edited by JLivermore; 10 Sep 2014, 05:12.

              Comment


                #37
                These errors suggest that, as you previously speculated, your server and/or client-code is still sending back a DSResponse with either null for data or some other invalid value, such as a String, or a singular Record instead of the expected List/Array.

                This may be because your server code is crashing; we would need the usual diagnostics (server logs, RPC tab request and response contents) to help debug further. Note that we always need this information in order to help.

                The fact that Exceptions are thrown on the server is normal, so long as you do not see actual warnings or errors reported in the log (but again you've not shared the log so it's hard to be definitive).

                Comment


                  #38
                  Server Log (just the portion when I click on the leaf node that causes the error) We don't see the exceptions I posted previously in the logs, only when I set the debugger to look at every exception thrown is when I see those exceptions above.
                  Code:
                  === 2014-09-10 10:05:07,341 [c-10] INFO  RequestContext - URL: '/tzw/com.anstca.tz.Main/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko': Unsupported with Accept-Encoding header
                  === 2014-09-10 10:05:07,357 [c-10] DEBUG XML - Parsed XML from (in memory stream): 1ms
                  === 2014-09-10 10:05:07,357 [c-10] DEBUG ISCKeyedObjectPool - Borrowing object for 'transaction'
                  === 2014-09-10 10:05:07,357 [c-10] DEBUG ISCKeyedObjectPool - Borrowing object for 'Object'
                  === 2014-09-10 10:05:07,357 [c-10] DEBUG ISCKeyedObjectPool - Borrowing object for 'List'
                  === 2014-09-10 10:05:07,358 [c-10] DEBUG ISCKeyedObjectPool - Borrowing object for 'elem'
                  === 2014-09-10 10:05:07,358 [c-10] DEBUG RPCManager - Processing 1 requests.
                  2014-09-10 10:05:07,358 DEBUG [com.anstca.tz.server.floater.pivottable.ds.PivotTableTreeDSGenerator] - <data source requested [pivot_table_tree_fact_POF_384_682]>
                  2014-09-10 10:05:07,358 DEBUG [com.anstca.tz.server.floater.pivottable.ds.PivotTableTreeDSGenerator] - <  data source created [pivot_table_tree_fact_POF_384_682]>
                  2014-09-10 10:05:07,358 DEBUG [com.anstca.tz.server.floater.pivottable.dao.PivotTableDaoJdbcImpl] - <Called getAvailableMeasurements() with FactTableID:POF and clientId:682>
                  2014-09-10 10:05:07,358 DEBUG [com.anstca.tz.server.floater.pivottable.dao.PivotTableDaoJdbcImpl] - <getFactTableSimpleJdbcTemplate factTableKey:tradeZoomDataSource>
                  2014-09-10 10:05:07,398 DEBUG [com.anstca.tz.server.floater.pivottable.dao.PivotTableDaoJdbcImpl] - <matches:379>
                  === 2014-09-10 10:05:07,399 [c-10] DEBUG XML - Parsed XML from (in memory stream): 1ms
                  === 2014-09-10 10:05:07,400 [c-10] DEBUG ISCKeyedObjectPool - Borrowing object for 'DataSource'
                  === 2014-09-10 10:05:07,401 [c-10] DEBUG ISCKeyedObjectPool - Borrowing object for 'DataSourceField'
                  === 2014-09-10 10:05:07,401 [c-10] DEBUG ISCKeyedObjectPool - Borrowing object for 'field'
                  === 2014-09-10 10:05:07,439 [c-10] DEBUG DSRequest - Caching instance 501 of DS pivot_table_tree_fact_POF_384_682 from DSRequest.getDataSource()
                  === 2014-09-10 10:05:07,440 [c-10] DEBUG RPCManager - Request #1 (DSRequest) payload: {
                      criteria:{
                          pid:"Y^|^ARGENTINA^|^USD",
                          spc:[
                              "1",
                              "2013-07-01",
                              "2013-07-31",
                              "POF",
                              "70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y",
                              "5:2^USD|6:2^ARGENTINA|16:2^Y",
                              "5|6|36|21|26|24|25|28|29|30",
                              "EDGE_OF_TREE",
                              "Y^|^ARGENTINA^|^USD",
                              "false",
                              "384",
                              "2321",
                              "682",
                              "postTradeEquitiesFactDataSource"
                          ]
                      },
                      operationConfig:{
                          dataSource:"pivot_table_tree_fact_POF_384_682",
                          operationType:"fetch",
                          textMatchStyle:"exact"
                      },
                      componentId:"isc_PivotTableGrid_5_0",
                      useStrictJSON:true,
                      appID:"builtinApplication",
                      operation:"pivot_table_tree_fact_POF_384_682_fetch",
                      oldValues:{
                          pid:"Y^|^ARGENTINA^|^USD",
                          spc:[
                              "1",
                              "2013-07-01",
                              "2013-07-31",
                              "POF",
                              "70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y",
                              "5:2^USD|6:2^ARGENTINA|16:2^Y",
                              "5|6|36|21|26|24|25|28|29|30",
                              "EDGE_OF_TREE",
                              "Y^|^ARGENTINA^|^USD",
                              "false",
                              "384",
                              "2321",
                              "682",
                              "postTradeEquitiesFactDataSource"
                          ]
                      },
                      progressiveLoading:false,
                      resultTreeIdField:"cid",
                      resultTreeParentIdField:"pid"
                  }
                  2014-09-10 10:05:07,440 DEBUG [com.anstca.tz.server.post.mvc.servlet.TZWCall] - <==> TZWCall DataSourceName:pivot_table_tree_fact_POF_384_682>
                  2014-09-10 10:05:07,440 DEBUG [com.anstca.tz.server.floater.pivottable.ds.PivotTableTreeDSGenerator] - <data source requested [pivot_table_tree_fact_POF_384_682]>
                  2014-09-10 10:05:07,440 DEBUG [com.anstca.tz.server.floater.pivottable.ds.PivotTableTreeDSGenerator] - <  data source created [pivot_table_tree_fact_POF_384_682]>
                  2014-09-10 10:05:07,440 DEBUG [com.anstca.tz.server.floater.pivottable.dao.PivotTableDaoJdbcImpl] - <Called getAvailableMeasurements() with FactTableID:POF and clientId:682>
                  2014-09-10 10:05:07,440 DEBUG [com.anstca.tz.server.floater.pivottable.dao.PivotTableDaoJdbcImpl] - <getFactTableSimpleJdbcTemplate factTableKey:tradeZoomDataSource>
                  2014-09-10 10:05:07,471 DEBUG [com.anstca.tz.server.floater.pivottable.dao.PivotTableDaoJdbcImpl] - <matches:379>
                  === 2014-09-10 10:05:07,473 [c-10] DEBUG XML - Parsed XML from (in memory stream): 2ms
                  === 2014-09-10 10:05:07,473 [c-10] DEBUG ISCKeyedObjectPool - Borrowing object for 'DataSource'
                  === 2014-09-10 10:05:07,474 [c-10] DEBUG ISCKeyedObjectPool - Borrowing object for 'DataSourceField'
                  === 2014-09-10 10:05:07,474 [c-10] DEBUG ISCKeyedObjectPool - Borrowing object for 'field'
                  2014-09-10 10:05:07,498 DEBUG [com.anstca.tz.server.post.mvc.servlet.TZWCall] - <TZWCall.handleDSRequest for pivot_table_tree_fact_POF_384_682 DataSource.forName() ds:pivot_table_tree_fact_POF_384_682 DataSource with instanceId 504>
                  2014-09-10 10:05:07,498 DEBUG [com.anstca.tz.server.floater.pivottable.ds.PivotTableTreeDataSource] - <called executeFetch() Criteria:{pid=Y^|^ARGENTINA^|^USD, spc=[1, 2013-07-01, 2013-07-31, POF, 70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y, 5:2^USD|6:2^ARGENTINA|16:2^Y, 5|6|36|21|26|24|25|28|29|30, EDGE_OF_TREE, Y^|^ARGENTINA^|^USD, false, 384, 2321, 682, postTradeEquitiesFactDataSource]} Operation Type:fetch>
                  2014-09-10 10:05:07,498 DEBUG [com.anstca.tz.server.floater.pivottable.service.PivotTableServicesImpl] - <fetchPivotTableTreeData Criteria [{pid=Y^|^ARGENTINA^|^USD, spc=[1, 2013-07-01, 2013-07-31, POF, 70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y, 5:2^USD|6:2^ARGENTINA|16:2^Y, 5|6|36|21|26|24|25|28|29|30, EDGE_OF_TREE, Y^|^ARGENTINA^|^USD, false, 384, 2321, 682, postTradeEquitiesFactDataSource]}]>
                  === 2014-09-10 10:05:07,499 [c-10] INFO  Compression - /tzw/com.anstca.tz.Main/sc/IDACall: 7444 -> 1315 bytes
                  Developer Console RPC tab DSRequest sent at 10:05:07.338 and the Status is SUCCESS, but there is no DSResponse, and my server code is never executed that processes the DSRequest.
                  Code:
                  {
                      dataSource:"pivot_table_tree_fact_POF_384_682", 
                      operationType:"fetch", 
                      componentId:"isc_PivotTableGrid_5_0", 
                      data:{
                          pid:"Y^|^ARGENTINA^|^USD", 
                          spc:[
                              "1", 
                              "2013-07-01", 
                              "2013-07-31", 
                              "POF", 
                              "70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y", 
                              "5:2^USD|6:2^ARGENTINA|16:2^Y", 
                              "5|6|36|21|26|24|25|28|29|30", 
                              "EDGE_OF_TREE", 
                              "Y^|^ARGENTINA^|^USD", 
                              "false", 
                              "384", 
                              "2321", 
                              "682", 
                              "postTradeEquitiesFactDataSource"
                          ]
                      }, 
                      textMatchStyle:"exact", 
                      resultTree:[ResultTree ID:isc_ResultTree_0 (created by: isc_PivotTableGrid_5_0)], 
                      callback:{
                          caller:[ResultTree ID:isc_ResultTree_0 (created by: isc_PivotTableGrid_5_0)], 
                          methodName:"loadChildrenReply"
                      }, 
                      willHandleError:true, 
                      showPrompt:false, 
                      prompt:"Loading...", 
                      oldValues:{
                          pid:"Y^|^ARGENTINA^|^USD", 
                          spc:[
                              "1", 
                              "2013-07-01", 
                              "2013-07-31", 
                              "POF", 
                              "70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y", 
                              "5:2^USD|6:2^ARGENTINA|16:2^Y", 
                              "5|6|36|21|26|24|25|28|29|30", 
                              "EDGE_OF_TREE", 
                              "Y^|^ARGENTINA^|^USD", 
                              "false", 
                              "384", 
                              "2321", 
                              "682", 
                              "postTradeEquitiesFactDataSource"
                          ]
                      }, 
                      requestId:"pivot_table_tree_fact_POF_384_682$6277", 
                      internalClientContext:{
                          parentNode:{
                              bAVWAPBP:-115.62207857234584, 
                              bIVWAPCPS:-16.53595021264793, 
                              Shares:845, 
                              bAVWAPCPS:-123.69996301775148, 
                              name:"USD", 
                              PrinK:90.403546875, 
                              pid:"Y^|^ARGENTINA", 
                              bAVWAPK:-1.0452646484375, 
                              bIVWAPK:-0.13972877502441405, 
                              cid:"Y^|^ARGENTINA^|^USD", 
                              bPlcStrikeBP:-3.972066568875979, 
                              bIVWAPBP:-15.456116472200085, 
                              bExeStrikeK:-0.17456748962402344, 
                              isFolder:true, 
                              children:Array[0]
                          }, 
                          relationship:{
                              childDS:[DataSource ID:pivot_table_tree_fact_POF_384_682], 
                              parentDS:[DataSource ID:pivot_table_tree_fact_POF_384_682], 
                              parentIdField:"pid", 
                              idField:"cid"
                          }, 
                          childrenReplyCallback:{
                          }, 
                          fetchCount:4
                      }, 
                      useStrictJSON:true, 
                      fallbackToEval:true, 
                      progressiveLoading:false, 
                      lastClientEventThreadCode:"pointerup8", 
                      bypassCache:true
                  }
                  There is no DSResponse.

                  Client Log
                  Code:
                  ERROR: 10:05:07.530:TMR3:WARN:Log:TypeError: Object doesn't support property or method 'getLength'
                  Stack from error.stack:
                      Arra.addList () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:426:145
                      Tree._linkNodes () @ com.anstca.tz.Main/sc/modules/ISC_Grids.js?isc_version=9.1.js:68:126
                      ResultTree.loadChildrenReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2047:346
                      Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
                      Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
                      DataSource.fireResponseCallbacks () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:733:1
                      DataSource._completeResponseProcessing () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:730:1
                      DataSource._handleSCServerReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2411:102
                      Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
                      Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
                  
                  com.smartgwt.client.core.JsObject$SGWT_WARN: 10:05:07.530:TMR3:WARN:Log:TypeError: Object doesn't support property or method 'getLength'
                  Stack from error.stack:
                      Arra.addList () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:426:145
                      Tree._linkNodes () @ com.anstca.tz.Main/sc/modules/ISC_Grids.js?isc_version=9.1.js:68:126
                      ResultTree.loadChildrenReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2047:346
                      Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
                      Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
                      DataSource.fireResponseCallbacks () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:733:1
                      DataSource._completeResponseProcessing () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:730:1
                      DataSource._handleSCServerReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2411:102
                      Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
                      Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
                  
                  	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.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)
                  I also get a pop-up dialog in IE-11:
                  Run debugger?
                  undefined
                  OK Cancel
                  Last edited by JLivermore; 10 Sep 2014, 06:13.

                  Comment


                    #39
                    OK, the problem is definitely that your server is returning some kind of unexpected object - it's not null, and not an empty Array, so it may be a String.

                    You would normally be able to see what it is in the response tab of the Developer Console and we're not sure why you can't (we'll double check on whether observe the same thing with an obviously bad response), but regardless, you should be able to flip the "RPCManager" log category to DEBUG to see what's wrong with your response.

                    Comment


                      #40
                      So I understand you correctly, you think that the data being returned that goes into the TreeGrid is problematic?

                      Comment


                        #41
                        Yes. An array is expected or null, and whatever you are returning is neither of these.

                        Comment


                          #42
                          When we have data, this is what is being sent back in the DSResponse:
                          Code:
                                  List<Map<String, Object>> list = dao.fetchPivotTableDataAsTreeOnDemand(spc);
                          
                                  if(list == null) list = new ArrayList<Map<String, Object>>(0);
                                  DSResponse dsResponse = new DSResponse();
                                  dsResponse.setData(list);
                                  dsResponse.setStartRow(0);
                                  dsResponse.setEndRow(list.size());
                                  dsResponse.setTotalRows(list.size());
                          
                                  return dsResponse;
                          This is not correct? If I understand you correctly, it should be
                          Code:
                          ArrayList<Map<String, Object>>
                          Last edited by JLivermore; 10 Sep 2014, 06:31.

                          Comment


                            #43
                            That code would be correct if the result was that Array or null makes it to the client. But that's not what's actually happening, based on the diagnostics you've provided.

                            Is there some reason you're not looking at the RPCManager log? That should clear things up.

                            Comment


                              #44
                              I made the change to return an array:
                              Code:
                              List<Map<String, Object>> list = dao.fetchPivotTableDataAsTreeOnDemand(spc);
                                      if(list == null) list = new ArrayList<Map<String, Object>>(0);
                                      DSResponse dsResponse = new DSResponse();
                                      dsResponse.setData(list.toArray(new Map[list.size()]));
                                      dsResponse.setStartRow(0);
                                      dsResponse.setEndRow(list.size());
                                      dsResponse.setTotalRows(list.size());
                              Here is the log messages with debug turned on for RPCMananger and RPCManagerResponse:
                              Code:
                              10:38:29.112:pointerup9:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
                              10:38:29.118:pointerup9:DEBUG:RPCManager:Grabbed prompt from first request that defined one: Loading...
                              10:38:29.129:pointerup9:INFO:RPCManager:sendQueue[22]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://127.0.0.1:8080/tzw/com.anstca.tz.Main/sc/IDACall?isc_rpc=1&isc_v=v9.1p_2014-09-09&isc_xhr=1
                              10:38:29.145:pointerup9:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
                              10:38:29.150:pointerup9:DEBUG:RPCManager:XMLHttpRequest POST to http://127.0.0.1:8080/tzw/com.anstca.tz.Main/sc/IDACall?isc_rpc=1&isc_v=v9.1p_2014-09-09&isc_xhr=1 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->isc_tnum=22&_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">22</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><criteria xsi:type="xsd:Object"><pid>Y^|^ARGENTINA</pid><spc xsi:type="xsd:List"><elem>1</elem><elem>2013-07-01</elem><elem>2013-07-31</elem><elem>POF</elem><elem>70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y</elem><elem>6:2^ARGENTINA|16:2^Y</elem><elem>5|6|36|21|26|24|25|28|29|30</elem><elem>5</elem><elem>Y^|^ARGENTINA</elem><elem>false</elem><elem>384</elem><elem>2321</elem><elem>682</elem><elem>postTradeEquitiesFactDataSource</elem></spc></criteria><operationConfig xsi:type="xsd:Object"><dataSource>pivot_table_tree_fact_POF_384_682</dataSource><operationType>fetch</operationType><textMatchStyle>exact</textMatchStyle></operationConfig><componentId>isc_PivotTableGrid_5_2</componentId><useStrictJSON xsi:type="xsd:boolean">true</useStrictJSON><appID>builtinApplication</appID><operation>pivot_table_tree_fact_POF_384_682_fetch</operation><oldValues xsi:type="xsd:Object"><pid>Y^|^ARGENTINA</pid><spc xsi:type="xsd:List"><elem>1</elem><elem>2013-07-01</elem><elem>2013-07-31</elem><elem>POF</elem><elem>70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y</elem><elem>6:2^ARGENTINA|16:2^Y</elem><elem>5|6|36|21|26|24|25|28|29|30</elem><elem>5</elem><elem>Y^|^ARGENTINA</elem><elem>false</elem><elem>384</elem><elem>2321</elem><elem>682</elem><elem>postTradeEquitiesFactDataSource</elem></spc></oldValues><progressiveLoading xsi:type="xsd:boolean">false</progressiveLoading><resultTreeIdField>cid</resultTreeIdField><resultTreeParentIdField>pid</resultTreeParentIdField></elem></operations></transaction>&protocolVersion=1.0<--
                              10:38:29.426:TMR5:INFO:RPCManager:transaction 22 arrived after 263ms
                              10:38:29.430:TMR5:DEBUG:RPCManager:Result string for transaction 22: "//isc_RPCResponseStart-->[{"affectedRows":0,"data":[{"bAVWAPBP":-115.62207857234584,"bIVWAPCPS":-16.53595021264793,"Shares":845,"bAVWAPCPS":-123.69996301775149,"name":"USD","PrinK":90.403546875,"pid":"Y^|^ARGENTINA","bAVWAPK":-1.0452646484375,"bIVWAPK":-0.13972877502441405,"cid":"Y^|^ARGENTINA^|^USD","bPlcStrikeBP":-3.972066568875979,"bIVWAPBP":-15.456116472200085,"bExeStrikeK":-0.17456748962402344}],"endRow":1,"invalidateCache":false,"isDSResponse":true,"queueStatus":0,"startRow":0,"status":0,"totalRows":1}]//isc_RPCResponseEnd"
                              10:38:29.442:TMR5:INFO:RPCManager:rpcResponse(pivot_table_tree_fact_POF_384_682_fetch)[fetch]: result: 1 records[status=0]
                              Here is the DSRequest:
                              Code:
                              {
                                  dataSource:"pivot_table_tree_fact_POF_384_682", 
                                  operationType:"fetch", 
                                  componentId:"isc_PivotTableGrid_5_2", 
                                  data:{
                                      pid:"Y^|^ARGENTINA", 
                                      spc:[
                                          "1", 
                                          "2013-07-01", 
                                          "2013-07-31", 
                                          "POF", 
                                          "70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y", 
                                          "6:2^ARGENTINA|16:2^Y", 
                                          "5|6|36|21|26|24|25|28|29|30", 
                                          "5", 
                                          "Y^|^ARGENTINA", 
                                          "false", 
                                          "384", 
                                          "2321", 
                                          "682", 
                                          "postTradeEquitiesFactDataSource"
                                      ]
                                  }, 
                                  textMatchStyle:"exact", 
                                  resultTree:[ResultTree ID:isc_ResultTree_0 (created by: isc_PivotTableGrid_5_2)], 
                                  callback:{
                                      caller:[ResultTree ID:isc_ResultTree_0 (created by: isc_PivotTableGrid_5_2)], 
                                      methodName:"loadChildrenReply"
                                  }, 
                                  willHandleError:true, 
                                  showPrompt:false, 
                                  prompt:"Loading...", 
                                  oldValues:{
                                      pid:"Y^|^ARGENTINA", 
                                      spc:[
                                          "1", 
                                          "2013-07-01", 
                                          "2013-07-31", 
                                          "POF", 
                                          "70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y", 
                                          "6:2^ARGENTINA|16:2^Y", 
                                          "5|6|36|21|26|24|25|28|29|30", 
                                          "5", 
                                          "Y^|^ARGENTINA", 
                                          "false", 
                                          "384", 
                                          "2321", 
                                          "682", 
                                          "postTradeEquitiesFactDataSource"
                                      ]
                                  }, 
                                  requestId:"pivot_table_tree_fact_POF_384_682$62721", 
                                  internalClientContext:{
                                      parentNode:{
                                          bAVWAPBP:-115.62207857234584, 
                                          bIVWAPCPS:-16.53595021264793, 
                                          Shares:845, 
                                          bAVWAPCPS:-123.69996301775148, 
                                          name:"ARGENTINA", 
                                          PrinK:90.403546875, 
                                          pid:"Y", 
                                          bAVWAPK:-1.0452646484375, 
                                          bIVWAPK:-0.13972877502441405, 
                                          cid:"Y^|^ARGENTINA", 
                                          bPlcStrikeBP:-3.972066568875979, 
                                          bIVWAPBP:-15.456116472200085, 
                                          bExeStrikeK:-0.17456748962402344, 
                                          isFolder:true, 
                                          children:Array[1]
                                      }, 
                                      relationship:{
                                          childDS:[DataSource ID:pivot_table_tree_fact_POF_384_682], 
                                          parentDS:[DataSource ID:pivot_table_tree_fact_POF_384_682], 
                                          parentIdField:"pid", 
                                          idField:"cid"
                                      }, 
                                      childrenReplyCallback:{
                                      }, 
                                      fetchCount:3
                                  }, 
                                  useStrictJSON:true, 
                                  fallbackToEval:true, 
                                  progressiveLoading:false, 
                                  lastClientEventThreadCode:"pointerup9", 
                                  bypassCache:true
                              }
                              Here is the DSResponse:
                              Code:
                              [
                                  {
                                      affectedRows:0, 
                                      data:[
                                          {
                                              bAVWAPBP:-115.62207857234584, 
                                              bIVWAPCPS:-16.53595021264793, 
                                              Shares:845, 
                                              bAVWAPCPS:-123.69996301775148, 
                                              name:"USD", 
                                              PrinK:90.403546875, 
                                              pid:"Y^|^ARGENTINA", 
                                              bAVWAPK:-1.0452646484375, 
                                              bIVWAPK:-0.13972877502441405, 
                                              cid:"Y^|^ARGENTINA^|^USD", 
                                              bPlcStrikeBP:-3.972066568875979, 
                                              bIVWAPBP:-15.456116472200085, 
                                              bExeStrikeK:-0.17456748962402344
                                          }
                                      ], 
                                      endRow:1, 
                                      invalidateCache:false, 
                                      isDSResponse:true, 
                                      queueStatus:0, 
                                      startRow:0, 
                                      status:0, 
                                      totalRows:1
                                  }
                              ]
                              Note that these are the logs, DSRequest/DSResponse for the node expansion that returns the leaf node. It is this leaf node that blows up when I click on it (which I showed in posting #38).
                              Last edited by JLivermore; 10 Sep 2014, 06:52.

                              Comment


                                #45
                                Right. Now we need to see what the logs look like for the response that actually blows up.

                                Comment

                                Working...
                                X