Announcement

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

    exportClientData gets js error

    SmartClient Version: SC_SNAPSHOT-2011-03-31/PowerEdition Deployment (built 2011-03-31)

    I just noticed that as of this recent nightly build the download to Excel option is no longer working on some of our ListGrids. It isn't all list grids, just a couple of key ones.

    I see these errors in the dev console.
    Code:
    17:54:07.529:TMR1:WARN:Log:findByKeys: passed null record
    17:54:07.530:TMR1:WARN:Log:findByKeys: passed null record
    17:54:07.533:TMR1:WARN:Log:TypeError: _1 is undefined
        ListGrid.getRawValue(_1=>undef,  _2=>"StoreNumber") @ ipgui/sc/modules/ISC_Grids.js?isc_version=7.0.js:1447
        Canvas.getStandaloneFieldValue(_1=>undef,  _2=>"StoreNumber",  _3=>false) @ ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:3710
        Canvas.getExportFieldValue(_1=>undef,  _2=>"StoreNumber",  _3=>0) @ ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:3675
        Class.invokeSuper(_1=>null,  _2=>"getExportFieldValue") @ ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:303
        Class.Super(_1=>"getExportFieldValue",  _2=>{Obj}) @ ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:295
        ListGrid.getExportFieldValue(undef, "StoreNumber", 0) @ ipgui/sc/modules/ISC_Grids.js?isc_version=7.0.js:2868
        Canvas.getRecordExportObject(undef, [object Array], undef, undef, undef, undef) @ ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:3702
        Canvas.getClientExportDataChunk({Obj}) @ ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:3694
        [c]Class.fireCallback(_1=>{Obj},  _2=>undef,  _3=>[object Array],  _4=>{Obj},  _5=>true) @ ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:320
        Timer._fireTimeout("$ir899") @ ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1260
        unnamed() @ ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1255
        unnamed() @
    Here is another example with full stack trace from Eclipse console.
    Code:
    17:49:27.659 [ERROR] [ipgui] Uncaught exception escaped
    
    com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses
        at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:214)
        at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103)
        at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:101)
        at com.smartgwt.client.core.DataClass.fireEvent(DataClass.java:248)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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:157)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
        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:214)
        at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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:157)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
        at java.lang.Thread.run(Thread.java:680)
    Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): _1 is undefined
     fileName: http://127.0.0.1:8888/ipgui/sc/modules/ISC_Grids.js?isc_version=7.0.js
     lineNumber: 1447
     stack: isc_ListGrid_getRawValue((void 0),"IPPK")@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Grids.js?isc_version=7.0.js:1447
    isc_Canvas_getStandaloneFieldValue((void 0),"IPPK",false)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:3710
    isc_Canvas_getExportFieldValue((void 0),"IPPK",1)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:3675
    isc_c_Class_invokeSuper(null,"getExportFieldValue")@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:303
    isc_c_Class_Super("getExportFieldValue",[object Object])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:295
    isc_ListGrid_getExportFieldValue((void 0),"IPPK",1)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Grids.js?isc_version=7.0.js:2868
    isc_Canvas_getRecordExportObject((void 0),[object Array],(void 0),(void 0),(void 0),(void 0))@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:3702
    isc_Canvas_getClientExportDataChunk([object Object])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:3694
    isc_Canvas_getClientExportData([object Object],"isc_IpListGrid_0.exportClientDataReply(data,context)")@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:3690
    isc_Canvas_exportClientData([object Object])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:3718
    ([object GWTJavaObject])@http://127.0.0.1:8888:2345
    @:0
    ([object GWTJavaObject],5111956,[object GWTJavaObject])@http://127.0.0.1:8888/ipgui/hosted.html?ipgui:56
    ([object Object],[object Object],[object Object],1)@http://127.0.0.1:8888:30
    ((function () {var param = {target: arguments[0], item: arguments[1], menu: arguments[2], colNum: arguments[3]};var event = __gwt_makeJavaInvoke(1)(null, 13697111, param);__gwt_makeJavaInvoke(1)(selfJ, 5111956, event);}),[object Object],[object Object])@http://127.0.0.1:8888:49
    @:0
    (null,65642,(function () {var param = {target: arguments[0], item: arguments[1], menu: arguments[2], colNum: arguments[3]};var event = __gwt_makeJavaInvoke(1)(null, 13697111, param);__gwt_makeJavaInvoke(1)(selfJ, 5111956, event);}),[object Object],[object Object])@http://127.0.0.1:8888/ipgui/hosted.html?ipgui:56
    ([object Object],[object Object],[object Object],1)@http://127.0.0.1:8888:15
    isc_Menu_selectMenuItem([object Object],1)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Grids.js?isc_version=7.0.js:3172
    isc_Menu_rowClick([object Object],15,1)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Grids.js?isc_version=7.0.js:3164
    anonymous([object Object],15,1)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Grids.js?isc_version=7.0.js:970
    isc_GridRenderer__rowClick(15,1)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Grids.js?isc_version=7.0.js:782
    isc_GridRenderer_click([object Object],(void 0))@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Grids.js?isc_version=7.0.js:779
    isc_Canvas_handleClick([object Object],(void 0))@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:3110
    isc_c_EventHandler_bubbleEvent([object Object],"click")@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1571
    isc_c_EventHandler_handleClick([object Object])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1419
    isc_c_EventHandler__handleMouseUp([object MouseEvent],(void 0))@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1406
    isc_c_EventHandler_handleMouseUp([object MouseEvent])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1397
    isc_c_EventHandler_dispatch(isc_c_EventHandler_handleMouseUp,[object MouseEvent])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1634
    anonymous([object MouseEvent])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:61
    
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
        at com.smartgwt.client.widgets.grid.ListGrid.exportClientData(ListGrid.java)
        at com.islandpacific.gui.client.IpListGrid$8.onClick(IpListGrid.java:261)
        at com.smartgwt.client.widgets.menu.events.MenuItemClickEvent.dispatch(MenuItemClickEvent.java:98)
        at com.smartgwt.client.widgets.menu.events.MenuItemClickEvent.dispatch(MenuItemClickEvent.java:1)
        at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:204)
        at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103)
        at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:101)
        at com.smartgwt.client.core.DataClass.fireEvent(DataClass.java:248)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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:157)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
        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:214)
        at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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:157)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
        at java.lang.Thread.run(Thread.java:680)
Working...
X