Announcement

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

    ValuesManager.getItem() throws JS error instead of returning null

    Calling ValuesManager.getItem("XYZ") throws the following JS exception instead of returning null when there is no item named "XYZ" on a member form.
    Code:
    Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): elem is null
     fileName: http://127.0.0.1:8888
     lineNumber: 151
     stack: (null,"__ref")@http://127.0.0.1:8888:151
    @:0
    (null,11993138,null)@http://127.0.0.1:8888/ipgui/hosted.html?ipgui:56
    ("HeldItems_disabled")@http://127.0.0.1:8888:388
    @:0
    ([object GWTJavaObject],7340188,[object GWTJavaObject])@http://127.0.0.1:8888/ipgui/hosted.html?ipgui:56
    ([object Object])@http://127.0.0.1:8888:269
    ((function () {var param = {errors: arguments[0]};var event = __gwt_makeJavaInvoke(1)(null, 8257655, param);__gwt_makeJavaInvoke(1)(selfJ, 7340188, event);var ret = __gwt_makeJavaInvoke(0)(event, 1900550);return !ret;}),[object Object],[object Object])@http://127.0.0.1:8888:6
    @:0
    (null,65642,(function () {var param = {errors: arguments[0]};var event = __gwt_makeJavaInvoke(1)(null, 8257655, param);__gwt_makeJavaInvoke(1)(selfJ, 7340188, event);var ret = __gwt_makeJavaInvoke(0)(event, 1900550);return !ret;}),[object Object],[object Object])@http://127.0.0.1:8888/ipgui/hosted.html?ipgui:56
    ([object Object])@http://127.0.0.1:8888:76
    ([object Object])@http://127.0.0.1:8888:13
    isc_ValuesManager__handleHiddenValidationErrors(true)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Forms.js?isc_version=7.0.js:2848
    isc_ValuesManager_showErrors(true)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Forms.js?isc_version=7.0.js:2877
    isc_ValuesManager_setErrors([object Object],true)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Forms.js?isc_version=7.0.js:2855
    ([object Object],null,[object Object])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1568
    isc_c_Class_fireCallback([object Object],"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([object Object],"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(null,[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],null,[object Object])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1714
    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],null)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1209
    ([object Object],[object Object],[object Object],null)@http://127.0.0.1:8888:179
    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:1214
    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:1208
    isc_c_RPCManager__performTransactionReply(91)@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1202
    isc_c_RPCManager_performTransactionReply(91,"//isc_RPCResponseStart-->[{queueStatus:-1,errors:[{HeldItems:{errorMessage:\"The following items are on hold and cannot be ordered;1-1-1-1-100\"}}],isDSResponse:true,invalidateCache:false,status:-4,data:null}]//isc_RPCResponseEnd",(void 0))@http://127.0.0.1:8888/ipgui/sc/modules/ISC_DataBinding.js?isc_version=7.0.js:1173
    anonymous(91,[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(91,[object XMLHttpRequest])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1202
    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(91, 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(91, xmlHttpRequest)")@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1176
    ([object Event])@http://127.0.0.1:8888/ipgui/sc/modules/ISC_Core.js?isc_version=7.0.js:1188
        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.smartgwt.client.widgets.form.ValuesManager.getItem(ValuesManager.java)
        at com.islandpacific.gui.client.PoItemEditor.showFormWithErrors(PoItemEditor.java:1152)
        at com.islandpacific.gui.client.PoItemEditor$10.onHiddenValidationErrors(PoItemEditor.java:1330)
        at com.smartgwt.client.widgets.form.events.HiddenValidationErrorsEvent.dispatch(HiddenValidationErrorsEvent.java:99)
        at com.smartgwt.client.widgets.form.events.HiddenValidationErrorsEvent.dispatch(HiddenValidationErrorsEvent.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:96)
        at com.smartgwt.client.core.BaseClass.fireEvent(BaseClass.java:475)
        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.GeneratedMethodAccessor113.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
    This should be fixed in the next nightly build. Please let us know if you continue to see it

    Regards
    Isomorphic Software

    Comment

    Working...
    X