Bug 737191

Summary: GWT/JavaScript "script too large" error on group Monitoring>Traits subtab for compat group with 1000 or so members and 5 trait defs
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: Core UIAssignee: Ian Springer <ian.springer>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: high    
Version: 4.1CC: ccrouch, hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-07 19:28:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 620933, 717358    

Description Ian Springer 2011-09-09 20:43:43 UTC
The error occurred when I quickly scrolled down to the bottom of the listgrid, causing the datasource to try to fetch hundreds of new rows. I suspect the problem is that the RPC response that was returned was larger than Firefox allows. Here's the exception:

Message :	
Failed to fetch traits for criteria [org.rhq.core.domain.criteria.MeasurementDataTraitCriteria@455].
Severity :	
Error
	
Time :	
Friday, September 9, 2011 4:33:05 PM Etc/GMT+4
Detail :	
com.google.gwt.core.client.JavaScriptException:(InternalError): script too large fileName: http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/04B22DC4ACEBF669E5EAF229B9443CEB.cache.html stack: com_google_gwt_user_client_rpc_impl_ClientSerializationStreamReader_eval__Ljava_lang_String_2Lcom_google_gwt_core_client_JavaScriptObject_2( lineNumber: 14542
--- STACK TRACE FOLLOWS ---
(InternalError): script too large fileName: http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/04B22DC4ACEBF669E5EAF229B9443CEB.cache.html stack: com_google_gwt_user_client_rpc_impl_ClientSerializationStreamReader_eval__Ljava_lang_String_2Lcom_google_gwt_core_client_JavaScriptObject_2( lineNumber: 14542
    at Unknown.com_google_gwt_user_client_rpc_impl_ClientSerializationStreamReader_eval__Ljava_lang_String_2Lcom_google_gwt_core_client_JavaScriptObject_2(Unknown source:0)

Comment 1 Ian Springer 2011-10-17 15:54:36 UTC
This was happening because the groups trait view was grouping by the trait name column, resulting in the ListGrid trying to fetch the entire data set (ListGrid can only perform grouping when all the data is client-side). [master 71f1391] (http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=71f1391) stops doing the grouping. Now we should only fetch 50 traits at a time (i.e. one page of data).

Comment 2 Mike Foley 2011-10-18 15:15:22 UTC
verified basic functionality

Comment 3 Mike Foley 2012-02-07 19:28:51 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE