Announcement

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

    Error from ISC_DataBinding

    GWT 1.7.1
    SmartGWT Power nightly build dated 12-7-2010

    I'm seeing this error when sending back a result set, but don't know what it means:

    Code:
    [ERROR] 16:47:58.525:XRP7:WARN:Log:Error:
    	''results.errors' is null or not an object'
    	in http://localhost:8084/tzw/com.ancerno.tz.Main/sc/modules/ISC_DataBinding.js?isc_version-7.0.js
    	at line 1196
        [c]RPCManager.$39d(_1=>45)
        [c]RPCManager.performTransactionReply(_1=>45, _2=>"//isc_RPCResponseStart-->[{endRow:57618,..."[2566], _3=>undef)
        callback(transactionNum=>45, results=>Obj, wd=>undef)
            "isc.RPCManager.performTransactionReply(transactionNum,results,wd)"
        [c]Class.fireCallback(_1=>"isc.RPCManager.performTransactionReply(t..."[65], _2=>"transactionNum,results,wd", _3=>Array[2], _4=>undef, _5=>undef) on [Class Comm]
        [c]Comm.performXmlTransactionReply(_1=>45, _2=>Obj)
        callback(xmlHttpRequest=>Obj)
            "isc.Comm.performXmlTransactionReply(45, xmlHttpRequest)"
        ** recursed on [c]Class.fireCallback
    com.smartgwt.client.core.JsObject$SGWT_WARN: 16:47:58.525:XRP7:WARN:Log:Error:
    	''results.errors' is null or not an object'
    	in http://localhost:8084/tzw/com.ancerno.tz.Main/sc/modules/ISC_DataBinding.js?isc_version-7.0.js
    	at line 1196
        [c]RPCManager.$39d(_1=>45)
        [c]RPCManager.performTransactionReply(_1=>45, _2=>"//isc_RPCResponseStart-->[{endRow:57618,..."[2566], _3=>undef)
        callback(transactionNum=>45, results=>Obj, wd=>undef)
            "isc.RPCManager.performTransactionReply(transactionNum,results,wd)"
        [c]Class.fireCallback(_1=>"isc.RPCManager.performTransactionReply(t..."[65], _2=>"transactionNum,results,wd", _3=>Array[2], _4=>undef, _5=>undef) on [Class Comm]
        [c]Comm.performXmlTransactionReply(_1=>45, _2=>Obj)
        callback(xmlHttpRequest=>Obj)
            "isc.Comm.performXmlTransactionReply(45, xmlHttpRequest)"
        ** recursed on [c]Class.fireCallback
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126)
    	at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
    	at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
    	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
    	at com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:264)
    	at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:557)
    	at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
    	at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
    Can someone shed some light on what kind of error this is?

    #2
    This suggests that the status code for validation error was sent (-4) but no actual validation errors were provided (normal the "errors" part of the structure). Look in the RPC tab of the Developer Console to verify.

    Comment


      #3
      The only thing I see in the SmartClient Dev Console under the Request section:

      RPCRequest:
      Code:
      {
          "actionURL":"http://localhost:8084/tzw/com.ancerno.tz.Main/sc/IDACall", 
          "showPrompt":true, 
          "prompt":"Loading...", 
          "transport":"xmlHttpRequest", 
          "promptStyle":"dialog", 
          "bypassCache":true, 
          "data":{
              "criteria":{
                  "ViewId":"1778", 
                  "SelectedDimensionIds":"15,1,12,13,14,10,7,8", 
                  "DimensionFilter":"GoodTrade in ('Y')  and Broker='BARC'", 
                  "ClientId":"117", 
                  "StartDate":"2010-06-01T04:00:00", 
                  "EndDate":"2010-06-30T04:00:00", 
                  "blockType":"BrokerDay"
              }, 
              "operationConfig":{
                  "dataSource":"post-trade-drill-down", 
                  "repo":null, 
                  "operationType":"fetch", 
                  "textMatchStyle":"exact"
              }, 
              "startRow":0, 
              "endRow":75, 
              "componentId":"isc_ListGrid_0", 
              "appID":"builtinApplication", 
              "operation":"post-trade-drill-down_fetch", 
              "oldValues":{
                  "ViewId":"1778", 
                  "SelectedDimensionIds":"15,1,12,13,14,10,7,8", 
                  "DimensionFilter":"GoodTrade in ('Y')  and Broker='BARC'", 
                  "ClientId":"117", 
                  "StartDate":"2010-06-01T04:00:00", 
                  "EndDate":"2010-06-30T04:00:00", 
                  "blockType":"BrokerDay"
              }
          }
      }
      DSRequest:
      Code:
      {
          "actionURL":"http://localhost:8084/tzw/com.ancerno.tz.Main/sc/IDACall", 
          "showPrompt":true, 
          "prompt":"Loading...", 
          "transport":"xmlHttpRequest", 
          "promptStyle":"dialog", 
          "bypassCache":true, 
          "data":{
              "criteria":{
                  "ViewId":"1778", 
                  "SelectedDimensionIds":"15,1,12,13,14,10,7,8", 
                  "DimensionFilter":"GoodTrade in ('Y')  and Broker='BARC'", 
                  "ClientId":"117", 
                  "StartDate":"2010-06-01T04:00:00", 
                  "EndDate":"2010-06-30T04:00:00", 
                  "blockType":"BrokerDay"
              }, 
              "operationConfig":{
                  "dataSource":"post-trade-drill-down", 
                  "repo":null, 
                  "operationType":"fetch", 
                  "textMatchStyle":"exact"
              }, 
              "startRow":0, 
              "endRow":75, 
              "componentId":"isc_ListGrid_0", 
              "appID":"builtinApplication", 
              "operation":"post-trade-drill-down_fetch", 
              "oldValues":{
                  "ViewId":"1778", 
                  "SelectedDimensionIds":"15,1,12,13,14,10,7,8", 
                  "DimensionFilter":"GoodTrade in ('Y')  and Broker='BARC'", 
                  "ClientId":"117", 
                  "StartDate":"2010-06-01T04:00:00", 
                  "EndDate":"2010-06-30T04:00:00", 
                  "blockType":"BrokerDay"
              }
          }
      }
      The Response section Raw tab simply shows 'Transaction in Progress'.

      I do not see anything related to your comments for validation? What kind of validation are you referring to?

      Could you provide more context to this error?

      Could it be a mismatch in data type definition in the *.ds.xml file?

      Could it be a payload size issue?

      In the DSRequest above I see a startRow 0 and endRow 75 when the result set I'm returning has about 52K rows being returned?

      Comment


        #4
        My server logs show
        Code:
        === 2010-12-15 10:32:05,802 [84-2] INFO  DSResponse - DSResponse: List with 57618 items
        === 2010-12-15 10:32:05,802 [84-2] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
        === 2010-12-15 10:32:09,349 [84-2] INFO  Compression - /tzw/com.ancerno.tz.Main/sc/IDACall: 2566 -> 650 bytes
        So I'm assuming the DSResponse has been built and sent back to the client, so this seems to be an issue on the client side dealing with the response?

        Comment


          #5
          The request appears to be fundamentally malformed, which is why it's not showing up in the RPC tab. Use Firebug or Fiddler to see the actual response sent by the server.

          Comment


            #6
            I'm seeing this in the response:
            Code:
            //isc_RPCResponseStart-->[{endRow:52313,totalRows:52313,isDSResponse:true,invalidateCache:false,status:0,startRow:0<BR>com.ancerno.tz.server.mvc.servlet.TZWCall top-level exception<BR>
            <PRE>
            java.lang.OutOfMemoryError: Java heap space
            </PRE>
            Is this OutOfMemoryError happening on the client? If so, it sounds like I need to look into paging the result set?

            Comment


              #7
              No, it's a server-side exception, and it probably indicates that custom server-side logic has returned some unbelievably large result. This can happen if you provide, for example, a single entity that is linked to many others, and you disable the default of DataSource.dropExtraFields. In this case, there will be an attempt to serialize all objects recursively.

              Comment

              Working...
              X