java.lang.RuntimeException:[1326373428381] javax.ejb.EJBException:java.lang.IllegalArgumentException: PageList was passed an empty collection but 'totalSize' was 1, PageControl[firstRow=42, size=50] -> java.lang.IllegalArgumentException:PageList was passed an empty collection but 'totalSize' was 1, PageControl[firstRow=42, size=50] --- STACK TRACE FOLLOWS --- [1326373428381] javax.ejb.EJBException:java.lang.IllegalArgumentException: PageList was passed an empty collection but 'totalSize' was 1, PageControl[firstRow=42, size=50] -> java.lang.IllegalArgumentException:PageList was passed an empty collection but 'totalSize' was 1, PageControl[firstRow=42, size=50] at Unknown.java_lang_RuntimeException_$RuntimeException__Ljava_lang_RuntimeException_2Ljava_lang_RuntimeException_2(Unknown source:0) at Unknown.com_google_gwt_user_client_rpc_core_java_lang_RuntimeException_1FieldSerializer_instantiate__Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_RuntimeException_2(Unknown source:0) at Unknown.com_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2(Unknown source:0) at Unknown.com_google_gwt_user_client_rpc_impl_SerializerBase_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2(Unknown source:0) at Unknown.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_$readObject__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_2Ljava_lang_Object_2(Unknown source:0) 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:0) 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(Unknow
Actually, the same happens also if I just click on unavailable server from the resource list on the left…
I tried clicking on the "Unavailable servers" link in the main Inventory tab with both a server unavailable and no servers unavailable and I could not reproduce this. I also tried to click the "Refresh" button on that page and got no exceptions. Are those correct repro-steps? Btw. I tried this on RHQ-4.3.0-SNAPSHOT build 5b4ab4a.
could not reproduce in build 81533f2 (the latest available at the time of writing this comment) either.
This sounds very similar to https://bugzilla.redhat.com/show_bug.cgi?id=720490, which was fixed back on 10/14/11, but it's possible the fix didn't make it into RHQ 4.2, which was released on 10/31/11.
This issue can be seen in RHQ 4.4.0. I can see it in the Inventory -> Servers page. What I have come to realize and accept is that the problem will only appear when certain circumstances allow. Specifically: - screen resolution - number of resources in the list - font size - resource names - width of browser window I am able to reproduce the issue with 17 servers in inventory combined with: * zooming in from the browser * or reducing the width of my web browser * or increasing the default font size * or changing default fonts * or changing screen resolutions * or changing the width of the Ancestor or Description column to their minimum In my case, I go to the server resources page and scroll to the bottom of the list and then click the Refresh button. Depending on my zoom level, resolution, font size, browser window width, etch, the error message will change: --- STACK TRACE FOLLOWS --- [1345752450732] javax.ejb.EJBException:java.lang.IllegalArgumentException: PageList was passed an empty collection but 'totalSize' was 17, PageControl[firstRow=24, size=50] -> java.lang.IllegalArgumentException:PageList was passed an empty collection but 'totalSize' was 17, PageControl[firstRow=24, size=50] at Unknown.java_lang_RuntimeException_RuntimeException__V(Unknown Source) at Unknown.com_google_gwt_user_client_rpc_core_java_lang_RuntimeException_1FieldSerializer_instantiate__Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_RuntimeException_2(Unknown Source) at Unknown.com_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2(Unknown Source) at Unknown.com_google_gwt_user_client_rpc_impl_SerializerBase_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2(Unknown Source) at Unknown.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_$readObject__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_2Ljava_lang_Object_2(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) Specifically, PageControl[firstRow=24, size=50] will change. Like PageControl[firstRow=19, size=49]. What appears to be happening here is that the row height might be to blame and is causing the dataset paging to be beyond the initial rendering of the control when the default row height is used. I have attached a couple of screen-shots that show what my Inventory -> Servers page looks like in a working state vs. non-working state after I reduced the column width of the Ancestor and Description columns.
Created attachment 606658 [details] Inventory -> Servers Screen Shot - No Error
Created attachment 606659 [details] Inventory -> Servers Screen Shot after column resize - Error
Doesn't actually solve the purpose of the problem which is related with dynamic loading of data to ListGrid component performed automatically by SmartGWT (see https://bugzilla.redhat.com/show_bug.cgi?id=851288#c1). However, it handles the consequences. NOTE: this commit can be reverted once the purpose of the problem is fixed http://git.fedorahosted.org/cgit/rhq/rhq.git/diff/?id=e33404e master time: Fri Aug 31 13:02:07 2012 +0200 commit: e33404e91d4b0cfc681e7816872e93c107b5d8f5 author: Jirka Kremser - jkremser message: [BZ 773626 - Failed to load resource composite data error when refreshing Inventory page (Unavailable Servers, Servers, etc)] handling the exception on the client side and re-fetch the data
Hi, We also have this error in 4.4, occurs often in various pages where a "table" is involved. An example is in the screenshot attached, in alerts definitions page. Our workaround is to refresh the browser page, or to navigate away to some other link and back, but sometimes the error stays there even after this steps and makes the user experience very annoying. Best regards, Vlad
Created attachment 741927 [details] PageList was passed an empty collection but 'totalSize' was 4
I believe this has the same underlying cause as BZ 855674. Pushing to ON_QA so that we can have it tested.
Bulk closing now that 4.10 is out. If you think an issue is not resolved, please open a new BZ and link to the existing one.