Announcement

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

    JavaScriptException in latest nightly

    I have a ComboboxItem with an optionDataSource that was working fine before, but after upgrading to the latest nightly SC_SNAPSHOT-2011-01-08/EVAL Deployment I get this error.
    Code:
    13:51:03.525 [ERROR] [ipgui] Uncaught exception escaped
    
    com.google.gwt.core.client.JavaScriptException: (TypeError): elem is null
     fileName: http://127.0.0.1:8888
     lineNumber: 243
     stack: (null,"__ref")@http://127.0.0.1:8888:243
    @:0
    (null,11862066,null)@http://127.0.0.1:8888/ipgui/hosted.html?ipgui:56
    ("TORD")@http://127.0.0.1:8888:408
    @: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:75
    ((function (dsResponse, data, dsRequest) {var responseJ = __gwt_makeJavaInvoke(1)(null, 7536868, dsResponse);var requestJ = __gwt_makeJavaInvoke(1)(null, 7602572, dsRequest);if (callback != null) {__gwt_makeJavaInvoke(3)(callback, 7667714, responseJ, data, requestJ);}}),[object Object],[object Object])@http://127.0.0.1:8888:71
    @:0
    (null,65642,(function (dsResponse, data, dsRequest) {var responseJ = __gwt_makeJavaInvoke(1)(null, 7536868, dsResponse);var requestJ = __gwt_makeJavaInvoke(1)(null, 7602572, 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:49
    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:321
    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:417
    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:561
    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:558
    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:1713
    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:321
    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:417
    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:1211
    ([object Object],[object Object],[object Object],[object Array])@http://127.0.0.1:8888:158
    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:1216
    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:1210
    isc_c_RPCManager__performTransactionReply(78)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1204
    isc_c_RPCManager_performTransactionReply(78,"//isc_RPCResponseStart-->[{endRow:1,queueStatus:0,totalRows:1,isDSResponse:true,invalidateCache:false,status:0,startRow:0,data:[{TRBM09:\"Y\",TADT:0,TRBM08:\"Y\",TRBM07:\"Y\",TRBO05:\"N\",TDIS05:0.0000,TRBO06:\"N\",TDIS04:0.0000,TRBO07:\"N\",TDIS03:0.0000,TRBO08:\"N\",TDIS02:0.0000,TDIS01:0.0200,TRBO09:\"N\",TRBO02:\"N\",TRBO01:\"N\",TRBO04:\"N\",TRBO03:\"N\",TRBM01:\"Y\",TRBM02:\"Y\",TRBM05:\"Y\",TRBM06:\"Y\",TRBM03:\"Y\",TRBM04:\"Y\",TRBO10:\"N\",TDBO05:\"N\",TDBO04:\"N\",TDBO03:\"N\",TDBM04:\"Y\",TDBM03:\"Y\",TDBM02:\"Y\",TDBM01:\"Y\",TRBM10:\"Y\",TDWT02:\"D\",TDWT01:\"D\",TDES:\"2% 30 DAYS\",TDBF01:\"Y\",TDBF03:\"N\",TDBF02:\"N\",TDWT03:\"D\",TDBF05:\"N\",TDWT04:\"D\",TDBF04:\"N\",TDWT05:\"D\",TDTX04:\"\",TDTX05:\"\",TORD:500,TDTX01:\"PROMPT\",TDTX02:\"\",TDTX03:\"\",TDDU03:\"N\",TDDU04:\"N\",TDDU05:\"N\",TDOS05:\"N\",TDDU01:\"N\",TDOS04:\"N\",TDDU02:\"N\",TDOS03:\"N\",TDOS02:\"N\",TDOS01:\"N\",TRBR05:\"N\",TRBR04:\"N\",TRBR03:\"N\",TMET:\"Q\",TRBR02:\"N\",TRBR09:\"N\",TRBR08:\"N\",TRBR07:\"N\",TRBR06:\"N\",TRBF10:\"N\",TRBR01:\"N\",TDBD04:\"N\",TDBD05:\"N\",TDBD02:\"N\",TDBD03:\"N\",TDBD01:\"Y\",TRBD10:\"N\",TRBD04:\"N\",TRBD05:\"N\",TRBD06:\"N\",TRBD07:\"N\",TRBF09:\"N\",TRBF08:\"N\",TRBD01:\"N\",TRBF07:\"N\",TRBD02:\"N\",TRBF06:\"N\",TRBD03:\"N\",TRBF05:\"N\",TRBF04:\"N\",TRBF03:\"N\",TRBF02:\"N\",TRBF01:\"N\",TRBD08:\"N\",TRBD09:\"N\",TRBR10:\"N\",TRTX10:\"\",TDBO02:\"N\",TDBO01:\"Y\",TREB01:0.0000,TREB02:0.0000,TREB03:0.0000,TREB04:0.0000,TRBV10:\"N\",TRTX01:\"\",TDBV02:\"N\",TRTX05:\"\",TEOM:25,TDBV03:\"N\",TRTX04:\"\",TRTX03:\"\",TDBV01:\"N\",TRTX02:\"\",TRTX09:\"\",TRTX08:\"\",TDBV04:\"N\",TRTX07:\"\",TDBV05:\"N\",TRTX06:\"\",TREB10:0.0000,TRBV01:\"N\",TDBM05:\"Y\",TREB09:0.0000,TREB08:0.0000,TRBV04:\"N\",TREB07:0.0000,TRBV05:\"N\",TREB06:0.0000,TRBV02:\"N\",TCOD:\"D2\",TREB05:0.0000,TRBV03:\"N\",TRBV08:\"N\",TRBV09:\"N\",TRBV06:\"N\",TRBV07:\"N\",TDAY:30}]}]//isc_RPCResponseEnd",(void 0))@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1175
    anonymous(78,[object XMLHttpRequest])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:63
    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:321
    isc_c_Comm_performXmlTransactionReply(78,[object XMLHttpRequest])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1203
    anonymous([object XMLHttpRequest])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:63
    isc_c_Class_fireCallback("isc.Comm.performXmlTransactionReply(78, xmlHttpRequest)","xmlHttpRequest",[object Array],[object XPCCrossOriginWrapper],true)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:321
    isc_c_Comm__fireXMLCallback([object XMLHttpRequest],"isc.Comm.performXmlTransactionReply(78, xmlHttpRequest)")@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1177
    ([object Event])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1189
    
        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.GeneratedMethodAccessor77.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
    Can you show the stack trace from compiled mode, and some of the related code?

    Comment


      #3
      Unfortunately I have already reverted to the Jan 6 build and won't have time to retry until after next week. I'll try a new build at that point and see if it is still happening.

      Comment


        #4
        OK.. however note that this crash is as a result of refactoring to address ComboBoxItem limitations you wanted addressed, and we've got a large library of autotests that are all passing with the refactored code, so we really will need more information on this before we can finalize the new implementation.

        Comment


          #5
          In that case I've reinstalled the 1/8 build and taken another look. The error does not show up in compiled mode. I've traced it down a little more and it is happening after the ChangedHandler fires on the comboBox. Here is the code that creates the ComboBoxItem and adds the changed handler.
          Code:
          ComboBoxItem hven = getCodeNameComboBoxItem("HVEN", "VVEN", "VNAM", "IPMRVEN", false);
          hven.addChangedHandler(new ChangedHandler() {
          	@Override
          	public void onChanged(ChangedEvent event) {
          		setVendorDefaults();
          	}
          });
          The setVendorDefaults() method executes without error and only afterwards does the js error appear. This is the code for the getCodeNameComboBoxItem() method.
          Code:
          private ComboBoxItem getCodeNameComboBoxItem(String field, final String idField, final String nameField, final String dsName, boolean addUnknownValues) {
          	ComboBoxItem mySelector = new ComboBoxItem(field);
          	mySelector.setOptionDataSource(DataSource.get(dsName));
          	mySelector.setValueField(idField);
          	mySelector.setDisplayField(nameField);
          	ListGrid selectorGrid = new ListGrid();
          	mySelector.setPickListFields(
          			new ListGridField(idField),
          			new ListGridField(nameField)
          	);
          	mySelector.setPickListProperties(selectorGrid);
          	mySelector.setPickListWidth(200);
          	mySelector.setSortField(idField);
          	//		mySelector.setCompleteOnTab(true);
          	//		mySelector.setAddUnknownValues(addUnknownValues);
          	return mySelector;
          }

          Comment


            #6
            OK, if you can isolate this to a test case, that's the quickest and easiest approach. Otherwise:

            1. can you show setVendorDefaults()?

            2. are you saying that if you remove the ChangedHandler entirely there's no error?

            3. can you remove any specific part of what setVendorDefaults() does and cure the error?

            Comment

            Working...
            X