Announcement

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

    JavaScriptException: (TypeError): self.enable is not a function

    SmartClient Version: SC_SNAPSHOT-2011-04-07/PowerEdition Deployment (built 2011-04-07)

    I'm running into this error with code that was working on the last build I was running, somewhere around 2011-03-29 I think.
    Code:
    16:28:54.386 [ERROR] [ipgui] Uncaught exception escaped
    
    com.google.gwt.core.client.JavaScriptException: (TypeError): self.enable is not a function
     fileName: http://127.0.0.1:8888
     lineNumber: 285
     stack: ()@http://127.0.0.1:8888:285
    @:0
    ([object GWTJavaObject],7667714,[object GWTJavaObject],[object Array],[object GWTJavaObject])@http://127.0.0.1:8888/ipgui/hosted.html?ipgui:56
    ([object Object],[object Array],[object Object])@http://127.0.0.1:8888:749
    ((function (dsResponse, data, dsRequest) {var responseJ = __gwt_makeJavaInvoke(1)(null, 7602410, dsResponse);var requestJ = __gwt_makeJavaInvoke(1)(null, 7537042, dsRequest);if (callback != null) {__gwt_makeJavaInvoke(3)(callback, 7667714, responseJ, data, requestJ);}}),[object Object],[object Object])@http://127.0.0.1:8888:39
    @:0
    (null,65642,(function (dsResponse, data, dsRequest) {var responseJ = __gwt_makeJavaInvoke(1)(null, 7602410, dsResponse);var requestJ = __gwt_makeJavaInvoke(1)(null, 7537042, dsRequest);if (callback != null) {__gwt_makeJavaInvoke(3)(callback, 7667714, responseJ, data, requestJ);}}),[object Object],[object Object])@http://127.0.0.1:8888/ipgui/hosted.html?ipgui:56
    ([object Object],[object Array],[object Object])@http://127.0.0.1:8888:64
    isc_c_Class_fireCallback((function () {try {return __gwt_makeJavaInvoke(3)(null, 65642, jsFunction, this, arguments);} catch (e) {throw e;}}),"dsResponse,data,dsRequest",[object Array],[object Object],(void 0))@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:320
    isc_Class_fireCallback((function () {try {return __gwt_makeJavaInvoke(3)(null, 65642, jsFunction, this, arguments);} catch (e) {throw e;}}),"dsResponse,data,dsRequest",[object Array])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:416
    isc_DataSource_fireResponseCallbacks([object Object],[object Object],[object Object],[object Object])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:558
    isc_DataSource__completeResponseProcessing([object Array],[object Object],[object Object],[object Object],[object Object])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:555
    isc_DataSource__handleSCServerReply([object Object],[object Array],[object Object])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1726
    isc_c_Class_fireCallback([object Object],"rpcResponse,data,rpcRequest",[object Array],[object Object],(void 0))@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:320
    isc_Class_fireCallback([object Object],"rpcResponse,data,rpcRequest",[object Array])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:416
    isc_c_RPCManager_fireReplyCallback([object Object],[object Object],[object Object],[object Array])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1218
    ([object Object],[object Object],[object Object],[object Array])@http://127.0.0.1:8888:183
    isc_c_RPCManager_fireReplyCallbacks([object Object],[object Object])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1223
    isc_c_RPCManager_performOperationReply([object Object],[object Object])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1217
    isc_c_RPCManager__performTransactionReply(177)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1211
    isc_c_RPCManager_performTransactionReply(177,"//isc_RPCResponseStart-->[{endRow:8,queueStatus:0,totalRows:8,isDSResponse:true,invalidateCache:false,status:0,startRow:0,data:[{ICSGRCVD:0,SizeName:\"SMALL\",ColorName:\"WHITE\",ISBN:\"\",PONVAL:1,IGTIN:\"00400000584959\",ICLR:1,SizeSequence:0,PONNST:11,IATT01:0,IATT02:0,IATT03:0,IATT04:0,IATT05:0,IATT06:0,IATT07:0,IATT09:0,IATT08:0,PONTOPAC:0,IGTINTP:\"1\",IQTY:11,ITQR:0,IOVC:\"\",ISKU:58495,ISIZ:1,ISEQ:1},{ICSGRCVD:0,SizeName:\"MEDIUM\",ColorName:\"WHITE\",ISBN:\"\",PONVAL:2,IGTIN:\"00400000585031\",ICLR:1,SizeSequence:0,PONNST:6,IATT01:0,IATT02:0,IATT03:0,IATT04:0,IATT05:0,IATT06:0,IATT07:0,IATT09:0,IATT08:0,PONTOPAC:0,IGTINTP:\"1\",IQTY:12,ITQR:0,IOVC:\"\",ISKU:58503,ISIZ:2,ISEQ:2},{ICSGRCVD:0,SizeName:\"LARGE\",ColorName:\"WHITE\",ISBN:\"\",PONVAL:2,IGTIN:\"00400000585116\",ICLR:1,SizeSequence:0,PONNST:6,IATT01:0,IATT02:0,IATT03:0,IATT04:0,IATT05:0,IATT06:0,IATT07:0,IATT09:0,IATT08:0,PONTOPAC:0,IGTINTP:\"1\",IQTY:12,ITQR:0,IOVC:\"\",ISKU:58511,ISIZ:3,ISEQ:3},{ICSGRCVD:0,SizeName:\"X-LARGE\",ColorName:\"WHITE\",ISBN:\"\",PONVAL:1,IGTIN:\"00400000585291\",ICLR:1,SizeSequence:0,PONNST:11,IATT01:0,IATT02:0,IATT03:0,IATT04:0,IATT05:0,IATT06:0,IATT07:0,IATT09:0,IATT08:0,PONTOPAC:0,IGTINTP:\"1\",IQTY:11,ITQR:0,IOVC:\"\",ISKU:58529,ISIZ:4,ISEQ:4},{ICSGRCVD:0,SizeName:\"SMALL\",ColorName:\"BLACK\",ISBN:\"\",PONVAL:1,IGTIN:\"00400000585376\",ICLR:2,SizeSequence:0,PONNST:11,IATT01:0,IATT02:0,IATT03:0,IATT04:0,IATT05:0,IATT06:0,IATT07:0,IATT09:0,IATT08:0,PONTOPAC:0,IGTINTP:\"1\",IQTY:11,ITQR:0,IOVC:\"\",ISKU:58537,ISIZ:1,ISEQ:5},{ICSGRCVD:0,SizeName:\"MEDIUM\",ColorName:\"BLACK\",ISBN:\"\",PONVAL:2,IGTIN:\"00400000585451\",ICLR:2,SizeSequence:0,PONNST:6,IATT01:0,IATT02:0,IATT03:0,IATT04:0,IATT05:0,IATT06:0,IATT07:0,IATT09:0,IATT08:0,PONTOPAC:0,IGTINTP:\"1\",IQTY:12,ITQR:0,IOVC:\"\",ISKU:58545,ISIZ:2,ISEQ:6},{ICSGRCVD:0,SizeName:\"LARGE\",ColorName:\"BLACK\",ISBN:\"\",PONVAL:2,IGTIN:\"00400000585604\",ICLR:2,SizeSequence:0,PONNST:6,IATT01:0,IATT02:0,IATT03:0,IATT04:0,IATT05:0,IATT06:0,IATT07:0,IATT09:0,IATT08:0,PONTOPAC:0,IGTINTP:\"1\",IQTY:12,ITQR:0,IOVC:\"\",ISKU:58560,ISIZ:3,ISEQ:8},{ICSGRCVD:0,SizeName:\"X-LARGE\",ColorName:\"BLACK\",ISBN:\"\",PONVAL:1,IGTIN:\"00400000585529\",ICLR:2,SizeSequence:0,PONNST:11,IATT01:0,IATT02:0,IATT03:0,IATT04:0,IATT05:0,IATT06:0,IATT07:0,IATT09:0,IATT08:0,PONTOPAC:0,IGTINTP:\"1\",IQTY:11,ITQR:0,IOVC:\"\",ISKU:58552,ISIZ:4,ISEQ:7}]}]//isc_RPCResponseEnd",(void 0))@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1182
    anonymous(177,[object XMLHttpRequest])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:61
    isc_c_Class_fireCallback("isc.RPCManager.performTransactionReply(transactionNum,results,wd)","transactionNum,results,wd",[object Array])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:320
    isc_c_Comm_performXmlTransactionReply(177,[object XMLHttpRequest])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1218
    anonymous([object XMLHttpRequest])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:61
    isc_c_Class_fireCallback("isc.Comm.performXmlTransactionReply(177, xmlHttpRequest)","xmlHttpRequest",[object Array],[object XPCCrossOriginWrapper],true)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:320
    isc_c_Comm__fireXMLCallback([object XMLHttpRequest],"isc.Comm.performXmlTransactionReply(177, xmlHttpRequest)")@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1192
    ([object Event])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1204
    
        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.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.GeneratedMethodAccessor88.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)

    #2
    It actually turns out to be something we changed after all. Calling FormItem.enable before the form is drawn. Calling FormItem.setDisabled(false) works.

    Comment


      #3
      Thanks for keeping us updated. We've also now fixed enable() and disable() so they won't crash if called before the item is initialized.

      Comment

      Working...
      X