In general, it's easier to debug these sorts of issues if you compile your code with -style PRETTY
On Mon, Nov 15, 2010 at 6:22 PM, Rodrigue Lagoue Njinthe <[email protected]> wrote: > Hi all, > > did somebody already faced the following problem. I have a code, that runs > correctly in development mode, but throws an exception in production mode. > The exception I got from the chrome javascript console can be found at the > end for this email. Here is the code causing the problem: > > public void setAddCategoryAction(final BaoAction<Object> action) { > addCategoryButton.addClickHandler(new ClickHandler() { > > �...@override > public void onClick(ClickEvent event) { > try { > action.execute(); > } catch (Exception e) { > logger.log(Level.SEVERE, > "exception", e); > logger.log(Level.SEVERE, > "exception", e.getCause()); > } > } > }); > } > --- > > Thanks for any help > Rodrigue > > com.google.gwt.core.client.JavaScriptException: (TypeError): Object > de.warehouse.ui.gwt.client.module.inventory.items.ItemsManagementPresenter$1 > @243 has no method 'execute___3Ljava_lang_Object_2V' > stack: TypeError: Object > de.warehouse.ui.gwt.client.module.inventory.items.ItemsManagementPresenter$1 > @243 has no method 'execute___3Ljava_lang_Object_2V' > at > Object.cm_bao_warehouse_ui_gwt_client_module_inventory_items_ItemsManagement > UiPanel$1_onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V [as > onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V] > (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. > cache.html:8946:100) > at > Object.com_google_gwt_event_dom_client_ClickEvent_dispatch__Lcom_google_gwt_ > event_shared_EventHandler_2V [as > dispatch__Lcom_google_gwt_event_shared_EventHandler_2V] > (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. > cache.html:15396:95) > at > com_google_gwt_event_shared_SimpleEventBus_$doFire__Lcom_google_gwt_event_sh > ared_SimpleEventBus_2Lcom_google_gwt_event_shared_GwtEvent_2Ljava_lang_Objec > t_2V > (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. > cache.html:15825:15) > at > com_google_gwt_event_shared_SimpleEventBus_$fireEvent__Lcom_google_gwt_event > _shared_SimpleEventBus_2Lcom_google_gwt_event_shared_GwtEvent_2V > (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. > cache.html:15879:3) > at > com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_gwt_event > _shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V > (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. > cache.html:15761:157) > at > com_google_gwt_user_client_ui_Widget_$fireEvent__Lcom_google_gwt_user_client > _ui_Widget_2Lcom_google_gwt_event_shared_GwtEvent_2V > (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. > cache.html:378:72) > at > com_google_gwt_event_dom_client_DomEvent_fireNativeEvent__Lcom_google_gwt_do > m_client_NativeEvent_2Lcom_google_gwt_event_shared_HasHandlers_2Lcom_google_ > gwt_dom_client_Element_2V > (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. > cache.html:15295:158) > at > com_google_gwt_user_client_ui_Widget_$onBrowserEvent__Lcom_google_gwt_user_c > lient_ui_Widget_2Lcom_google_gwt_user_client_Event_2V > (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. > cache.html:406:212) > at > Object.com_google_gwt_user_client_ui_CustomButton_onBrowserEvent__Lcom_googl > e_gwt_user_client_Event_2V [as > onBrowserEvent__Lcom_google_gwt_user_client_Event_2V] > (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. > cache.html:26244:3) > at > com_google_gwt_user_client_DOM_dispatchEvent__Lcom_google_gwt_user_client_Ev > ent_2Lcom_google_gwt_user_client_Element_2Lcom_google_gwt_user_client_EventL > istener_2V > (http://localhost:8080/warehouse/warehouse/FBC5948B66D88B67E2AE1638E979D26C. > cache.html:23124:12) > type: undefined_method > arguments: > execute___3Ljava_lang_Object_2V,de.warehouse.ui.gwt.client.module.inventory. > items.itemsmanagementpresente...@243 > at > Unknown.cm_bao_warehouse_ui_gwt_client_module_inventory_items_ItemsManagemen > tUiPanel$1_onClick__Lcom_google_gwt_event_dom_client_ClickEvent_2V(Unknown > source:0) > at > Unknown.com_google_gwt_event_dom_client_ClickEvent_dispatch__Lcom_google_gwt > _event_shared_EventHandler_2V(Unknown source:0) > at > Unknown.com_google_gwt_event_shared_SimpleEventBus_$doFire__Lcom_google_gwt_ > event_shared_SimpleEventBus_2Lcom_google_gwt_event_shared_GwtEvent_2Ljava_la > ng_Object_2V(Unknown source:0) > at > Unknown.com_google_gwt_event_shared_SimpleEventBus_$fireEvent__Lcom_google_g > wt_event_shared_SimpleEventBus_2Lcom_google_gwt_event_shared_GwtEvent_2V(Unk > nown source:0) > at > Unknown.com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_g > wt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V(Unk > nown source:0) > at > Unknown.com_google_gwt_user_client_ui_Widget_$fireEvent__Lcom_google_gwt_use > r_client_ui_Widget_2Lcom_google_gwt_event_shared_GwtEvent_2V(Unknown > source:0) > at > Unknown.com_google_gwt_event_dom_client_DomEvent_fireNativeEvent__Lcom_googl > e_gwt_dom_client_NativeEvent_2Lcom_google_gwt_event_shared_HasHandlers_2Lcom > _google_gwt_dom_client_Element_2V(Unknown source:0) > at > Unknown.com_google_gwt_user_client_ui_Widget_$onBrowserEvent__Lcom_google_gw > t_user_client_ui_Widget_2Lcom_google_gwt_user_client_Event_2V(Unknown > source:0) > at > Unknown.com_google_gwt_user_client_ui_CustomButton_onBrowserEvent__Lcom_goog > le_gwt_user_client_Event_2V(Unknown source:0) > at > Unknown.com_google_gwt_user_client_DOM_dispatchEvent__Lcom_google_gwt_user_c > lient_Event_2Lcom_google_gwt_user_client_Element_2Lcom_google_gwt_user_clien > t_EventListener_2V(Unknown source:0) > > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
