Bug 767627

Summary: JON 3.0.0.GA: Error using query search on Servers inventory when using Google Chrome
Product: [Other] RHQ Project Reporter: Duncan Doyle <ddoyle>
Component: Core UIAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED NOTABUG QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-15 15:14:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Duncan Doyle 2011-12-14 14:52:45 UTC
Description of problem:
When I use Google Chrome (16) to search in the Servers inventory page with the following query: 'availability=up', an error is displayed: "Failed to load resource composite data": 

java.lang.RuntimeException:[1323873789909] javax.ejb.EJBException:java.lang.IllegalArgumentException: PageList was passed an empty collection but 'totalSize' was 3, PageControl[firstRow=25, size=50] -> java.lang.IllegalArgumentException:PageList was passed an empty collection but 'totalSize' was 3, PageControl[firstRow=25, size=50]
--- STACK TRACE FOLLOWS ---
[1323873789909] javax.ejb.EJBException:java.lang.IllegalArgumentException: PageList was passed an empty collection but 'totalSize' was 3, PageControl[firstRow=25, size=50] -> java.lang.IllegalArgumentException:PageList was passed an empty collection but 'totalSize' was 3, PageControl[firstRow=25, 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(Unknown source:0)

Version-Release number of selected component (if applicable):
JBoss Operations Network 3.0.0.GA
Fedora 16 X86_64 
OpenJDK 1.6.0_22 fedora-61.1.10.4.fc16-x86_64
Google Chrome: 16.0.912.63

How reproducible:
Setup a JON server and a JON agent, a PostgreSQL database and 2 JBoss EAP 5.1.2 nodes (I'm running a clustered setup of 2 nodes on my machine). Import the PostgreSQL and JBoss EAP resources in JON. Go to the Inventory tab, select 'Servers' and enter the query 'availability=up'.


Steps to Reproduce:
1. See above
  
Actual results:
Error message is displayed "Failed to load resource composite data"

Expected results:
List with available resources is displayed.

Additional info:
When I use Firefox 8.0 the error does not occur and the available resources are listed on the page like expected.

Comment 1 Duncan Doyle 2011-12-15 10:48:56 UTC
After submitting this bug, I seem to be unable to reproduce the issue (I was able to reproduce it 5 times before I submitted the bug). If it's not reproducible, it's kinda hard to fix. So you can close the bug as far as I'm concerned.