Is it possible to force the language on server?
I know it's possible on browser but it's not desirable, because all pages will be affected.
Regards.
2012/3/8 Herbert de Borba herbertdeborba@gmail.com
Yes this seems to be the case, rhq is in pt-BR after the update here in our pt-BR browsers. Thanks for explaining.
2012/3/8 Ian Springer ian.springer@redhat.com
Looking at the code it looks like this could occur if you're using a locale other than English. Is that the case?
private int populateConfigurationValue(DashboardPortlet
storedPortlet, String propertyKey, String defaultKeyValue) { int configuredValue; if ((storedPortlet != null) && (storedPortlet.getConfiguration().getSimple(propertyKey) != null)) { //retrieve and translate to int String retrieved = storedPortlet.getConfiguration().getSimple(propertyKey).getStringValue(); if (retrieved.equals(MSG.common_label_unlimited())) { configuredValue = -1; } else { configuredValue = Integer.parseInt(retrieved); } } else {//create setting if not already there. storedPortlet.getConfiguration().put(new PropertySimple(propertyKey, defaultKeyValue)); configuredValue = -1; } return configuredValue; }
In a non-English locale, MSG.common_label_unlimited() would have a value of "unlimited_in_some_non_English_language". But if the value currently stored in your preferences was "unlimited", then the else block would get executed and Integer.parseInt("unlimited") would be called.
We shouldn't be storing localized messages as configuration values. In this case, we should just store -1 as the value.
I think we can come up with some SQL you could use to workaround this. Stay tuned.
On 03/08/2012 03:38 PM, Herbert de Borba wrote:
Installed it to update a running 4.1 server, and the following error is shown while trying to access the dashboard. The dashboard itself is blank.
java.lang.NumberFormatException:For input string: "unlimited"
--- STACK TRACE FOLLOWS --- For input string: "unlimited" at Unknown.java_lang_Exception_Exception__Ljava_lang_String_2V(Unknown Source) at Unknown.java_lang_RuntimeException_RuntimeException__Ljava_lang_String_2V(Unknown Source)
at Unknown.java_lang_IllegalArgumentException_IllegalArgumentException__Ljava_lang_String_2V(Unknown Source) at Unknown.java_lang_NumberFormatException_NumberFormatException__Ljava_lang_String_2V(Unknown Source)
at Unknown.java_lang_Number__1_1parseAndValidateInt__Ljava_lang_String_2IIII(Unknown Source) at Unknown.org_rhq_enterprise_gui_coregui_client_dashboard_portlets_recent_problems_ProblemResourcesPortlet_$populateConfigurationValue__Lorg_rhq_enterprise_gui_coregui_client_dashboard_portlets_recent_problems_ProblemResourcesPortlet_2Lorg_rhq_core_domain_dashboard_DashboardPortlet_2Ljava_lang_String_2Ljava_lang_String_2I(Unknown Source)
at Unknown.org_rhq_enterprise_gui_coregui_client_dashboard_portlets_recent_problems_ProblemResourcesPortlet_$configure__Lorg_rhq_enterprise_gui_coregui_client_dashboard_portlets_recent_problems_ProblemResourcesPortlet_2Lorg_rhq_enterprise_gui_coregui_client_dashboard_PortletWindow_2Lorg_rhq_core_domain_dashboard_DashboardPortlet_2V(Unknown Source)
at Unknown.org_rhq_enterprise_gui_coregui_client_dashboard_portlets_recent_problems_ProblemResourcesPortlet_configure__Lorg_rhq_enterprise_gui_coregui_client_dashboard_PortletWindow_2Lorg_rhq_core_domain_dashboard_DashboardPortlet_2V(Unknown Source)
at Unknown.org_rhq_enterprise_gui_coregui_client_dashboard_PortletFactory_buildPortlet__Ljava_lang_String_2Lorg_rhq_enterprise_gui_coregui_client_dashboard_PortletWindow_2Lorg_rhq_core_domain_dashboard_DashboardPortlet_2Lorg_rhq_core_domain_common_EntityContext_2Lorg_rhq_enterprise_gui_coregui_client_dashboard_Portlet_2(Unknown Source)
at Unknown.org_rhq_enterprise_gui_coregui_client_dashboard_PortletWindow_onInit__V(Unknown Source) at Unknown.com_smartgwt_client_widgets_BaseWidget_doInit__V(Unknown Source) at Unknown.com_smartgwt_client_widgets_Window_create__Lcom_google_gwt_core_client_JavaScriptObject_2(Unknown Source)
at Unknown.com_smartgwt_client_widgets_BaseWidget_$getOrCreateJsObj__Lcom_smartgwt_client_widgets_BaseWidget_2Lcom_google_gwt_core_client_JavaScriptObject_2(Unknown Source) at Unknown.com_smartgwt_client_widgets_layout_Layout_$addMember__Lcom_smartgwt_client_widgets_layout_Layout_2Lcom_smartgwt_client_widgets_Canvas_2V(Unknown Source)
at Unknown.org_rhq_enterprise_gui_coregui_client_dashboard_PortalLayout_$addPortletWindow__Lorg_rhq_enterprise_gui_coregui_client_dashboard_PortalLayout_2Lorg_rhq_enterprise_gui_coregui_client_dashboard_PortletWindow_2ILorg_rhq_enterprise_gui_coregui_client_dashboard_PortalColumn_2(Unknown Source)
at Unknown.org_rhq_enterprise_gui_coregui_client_dashboard_DashboardView_$loadPortletWindows__Lorg_rhq_enterprise_gui_coregui_client_dashboard_DashboardView_2V(Unknown Source) at Unknown.org_rhq_enterprise_gui_coregui_client_dashboard_DashboardView_$buildPortlets__Lorg_rhq_enterprise_gui_coregui_client_dashboard_DashboardView_2V(Unknown Source)
at Unknown.org_rhq_enterprise_gui_coregui_client_dashboard_DashboardView_onInit__V(Unknown Source) at Unknown.com_smartgwt_client_widgets_BaseWidget_doInit__V(Unknown Source) at Unknown.com_smartgwt_client_widgets_layout_VLayout_create__Lcom_google_gwt_core_client_JavaScriptObject_2(Unknown Source)
at Unknown.com_smartgwt_client_widgets_BaseWidget_$getOrCreateJsObj__Lcom_smartgwt_client_widgets_BaseWidget_2Lcom_google_gwt_core_client_JavaScriptObject_2(Unknown Source) at Unknown.org_rhq_enterprise_gui_coregui_client_dashboard_DashboardsView_$updateDashboards__Lorg_rhq_enterprise_gui_coregui_client_dashboard_DashboardsView_2Ljava_util_List_2V(Unknown Source)
at Unknown.org_rhq_enterprise_gui_coregui_client_dashboard_DashboardsView$1$1_onPermissionsLoaded__Ljava_util_Set_2V(Unknown Source) at Unknown.org_rhq_enterprise_gui_coregui_client_PermissionsLoader$1_$onSuccess__Lorg_rhq_enterprise_gui_coregui_client_PermissionsLoader$1_2Ljava_util_Set_2V(Unknown Source)
at Unknown.org_rhq_enterprise_gui_coregui_client_PermissionsLoader$1_onSuccess__Ljava_lang_Object_2V(Unknown Source) at Unknown.com_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_$onResponseReceived__Lcom_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_2Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown Source)
at Unknown.org_rhq_enterprise_gui_coregui_client_util_rpc_TrackingRequestCallback_onResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown Source) at Unknown.com_google_gwt_http_client_Request_$fireOnResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_RequestCallback_2V(Unknown Source)
at Unknown.com_google_gwt_http_client_RequestBuilder$1_onReadyStateChange__Lcom_google_gwt_xhr_client_XMLHttpRequest_2V(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.com_google_gwt_core_client_impl_Impl_apply__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(Unknown Source)
at Unknown.com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source)
Regards.
2012/3/7 Stefan Negrea snegrea@redhat.com
The RHQ team is pleased to announce the immediate availability of RHQ 4.3
You can read the release notes here: http://rhq-project.org/display/RHQ/Release+Notes+4.3.0
Downloads are available from SourceForge: http://sourceforge.net/projects/rhq/files/rhq/rhq-4.3.0/
Stefan (on behalf of the RHQ team)
rhq-users mailing list rhq-users@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/rhq-users
-- Herbert Mattei de Borba herbertdeborba@gmail.com
rhq-users mailing listrhq-users@lists.fedorahosted.orghttps://fedorahosted.org/mailman/listinfo/rhq-users
-- Ian Springer Principal Software Developer JBoss Operations Network Red Hatian.springer@redhat.com
-- Herbert Mattei de Borba herbertdeborba@gmail.com
rhq-users@lists.stg.fedorahosted.org