Bug 737191 - GWT/JavaScript "script too large" error on group Monitoring>Traits subtab for compat group with 1000 or so members and 5 trait defs
Summary: GWT/JavaScript "script too large" error on group Monitoring>Traits subtab for...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Ian Springer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: rhq-perf jon30-perf
TreeView+ depends on / blocked
 
Reported: 2011-09-09 20:43 UTC by Ian Springer
Modified: 2013-08-06 00:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-07 19:28:51 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.