java - GWT client side error (TypeError): b is null -


i have simple gwt 2.4.0 requestfactory application, fails client side exception when fire method calls.

context.checkpassword(tblogin.gettext(), ptbpasswd.gettext())         .fire(new receiver<employeeproxy>() {              @override             public void onsuccess(employeeproxy response) {                 window.alert(response == null ?                         "login faild!" :                         response.getdisplayname()                                 + " login success!");             }              @override             public void onfailure(serverfailure error) {                 window.alert("somthing wrong");             }          }); 

firebug , chrome developer tools shows nothing. recive alert message:

(typeerror): b null  filename: http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html  stack: oz(null,"{\"f\":\"ru.itskills.daxx.acme.client.employeerequestfactory\",\"i\":[{\"o\":\"ygr3smwwogtu_ikqgxtcqleai3e=\",\"p\":[\"cas\",\"cas1\"]}]}",[object object])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1197 gb([object object],null)@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1169 jb([object object])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1079 va([object object],[object object])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:475 yw([object object])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1172 pc([object object])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1253 bc([object object])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1253 ad([object object],[object object],null)@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1216 sd([object object],[object object])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1170 ho([object object],[object object])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:532 hc([object mouseevent],[object object],[object htmlbuttonelement])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1077 jo([object object],[object mouseevent])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1014 ro([object mouseevent])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1253 vn([object mouseevent],[object htmlbuttonelement],[object object])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:935 ([object mouseevent])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1250 zb((function (a) {var b, c = this;while (c && !(b = c.__listener)) {c = c.parentnode;}c && c.nodetype != 1 && (c = null);b && $n(b) && vn(a, c, b);}),[object htmlbuttonelement],[object arguments])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:663 cb((function (a) {var b, c = this;while (c && !(b = c.__listener)) {c = c.parentnode;}c && c.nodetype != 1 && (c = null);b && $n(b) && vn(a, c, b);}),[object htmlbuttonelement],[object arguments])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:1164 ([object mouseevent])@http://localhost:8084/app/bdb5ac36bc159624d4b51b3846c167df.cache.html:965   linenumber: 1197 

what , how fix it?

same error after 'detailed' mode compilation.

(typeerror): this$static null  filename: http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html  stack: com_google_web_bindery_requestfactory_gwt_client_defaultrequesttransport_$send__lcom_google_web_bindery_requestfactory_gwt_client_defaultrequesttransport_2ljava_lang_string_2lcom_google_web_bindery_requestfactory_shared_requesttransport$transportreceiver_2v(null,"{\"f\":\"ru.itskills.daxx.acme.client.employeerequestfactory\",\"i\":[{\"o\":\"ygr3smwwogtu_ikqgxtcqleai3e=\",\"p\":[\"cas\",\"cas1\"]}]}",[object object])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:6394 com_google_web_bindery_requestfactory_shared_impl_abstractrequestcontext_$dofire__lcom_google_web_bindery_requestfactory_shared_impl_abstractrequestcontext_2lcom_google_web_bindery_requestfactory_shared_receiver_2v([object object],null)@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:6925 com_google_web_bindery_requestfactory_shared_impl_abstractrequestcontext_$fire__lcom_google_web_bindery_requestfactory_shared_impl_abstractrequestcontext_2v([object object])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:6993 com_google_web_bindery_requestfactory_shared_impl_abstractrequest_$fire__lcom_google_web_bindery_requestfactory_shared_impl_abstractrequest_2lcom_google_web_bindery_requestfactory_shared_receiver_2v([object object],[object object])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:6825 ru_itskills_daxx_acme_client_app$1_$onclick__lru_itskills_daxx_acme_client_app$1_2lcom_google_gwt_event_dom_client_clickevent_2v([object object])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:14243 com_google_gwt_event_dom_client_clickevent_dispatch__lcom_google_gwt_event_shared_eventhandler_2v([object object])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:713 com_google_gwt_event_shared_gwtevent_dispatch__ljava_lang_object_2v([object object])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:633 com_google_web_bindery_event_shared_simpleeventbus_$dofire__lcom_google_web_bindery_event_shared_simpleeventbus_2lcom_google_web_bindery_event_shared_event_2ljava_lang_object_2v([object object],[object object],null)@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:916 com_google_gwt_event_shared_handlermanager_$fireevent__lcom_google_gwt_event_shared_handlermanager_2lcom_google_gwt_event_shared_gwtevent_2v([object object],[object object])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:848 com_google_gwt_user_client_ui_widget_$fireevent__lcom_google_gwt_user_client_ui_widget_2lcom_google_gwt_event_shared_gwtevent_2v([object object],[object object])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:2898 com_google_gwt_event_dom_client_domevent_firenativeevent__lcom_google_gwt_dom_client_nativeevent_2lcom_google_gwt_event_shared_hashandlers_2lcom_google_gwt_dom_client_element_2v([object mouseevent],[object object],[object htmlbuttonelement])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:662 com_google_gwt_user_client_ui_widget_$onbrowserevent__lcom_google_gwt_user_client_ui_widget_2lcom_google_gwt_user_client_event_2v([object object],[object mouseevent])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:2926 com_google_gwt_user_client_ui_widget_onbrowserevent__lcom_google_gwt_user_client_event_2v([object mouseevent])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:2993 com_google_gwt_user_client_dom_dispatchevent__lcom_google_gwt_user_client_event_2lcom_google_gwt_user_client_element_2lcom_google_gwt_user_client_eventlistener_2v([object mouseevent],[object htmlbuttonelement],[object object])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:2348 ([object mouseevent])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:2617 com_google_gwt_core_client_impl_impl_apply__ljava_lang_object_2ljava_lang_object_2ljava_lang_object_2ljava_lang_object_2((function (evt) {var listener, curelem = this;while (curelem && !(listener = curelem.__listener)) {curelem = curelem.parentnode;}curelem && curelem.nodetype != 1 && (curelem = null);listener && com_google_gwt_user_client_impl_domimpl_ismylistener__ljava_lang_object_2z(listener) && com_google_gwt_user_client_dom_dispatchevent__lcom_google_gwt_user_client_event_2lcom_google_gwt_user_client_element_2lcom_google_gwt_user_client_eventlistener_2v(evt, curelem, listener);}),[object htmlbuttonelement],[object arguments])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:269 com_google_gwt_core_client_impl_impl_entry0__ljava_lang_object_2ljava_lang_object_2ljava_lang_object_2ljava_lang_object_2((function (evt) {var listener, curelem = this;while (curelem && !(listener = curelem.__listener)) {curelem = curelem.parentnode;}curelem && curelem.nodetype != 1 && (curelem = null);listener && com_google_gwt_user_client_impl_domimpl_ismylistener__ljava_lang_object_2z(listener) && com_google_gwt_user_client_dom_dispatchevent__lcom_google_gwt_user_client_event_2lcom_google_gwt_user_client_element_2lcom_google_gwt_user_client_eventlistener_2v(evt, curelem, listener);}),[object htmlbuttonelement],[object arguments])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:301 ([object mouseevent])@http://localhost:8888/app/247a5a4b14f8c1dbcc38d63fb852104d.cache.html:286   linenumber: 6394 

i bet forgot initialize() requestfactory.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -