Bug 1315257

Summary: Globally uncaught exception shown in the RHQ UI when trying to add/edit users
Product: [Other] RHQ Project Reporter: Szymon Zielinski <zelsin>
Component: Core UIAssignee: Nobody <nobody>
Status: ON_QA --- QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.13CC: guptavikas707, hrupp, kranthi82, pasumarthivijaykumar, pjyothsna1311, ramana.kodumuri
Target Milestone: ---   
Target Release: RHQ 4.14   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
User details that result in the exception
none
exception stack trace in txt format none

Description Szymon Zielinski 2016-03-07 11:48:56 UTC
Created attachment 1133713 [details]
User details that result in the exception

Description of problem:
When adding a new user or editing an existing one through the GUI a globally uncaught exception is thrown after the Save button is pressed: "com.google.gwt.core.client.JavaScriptException:(TypeError) : Cannot read property 'getRecords' of null"

The user is created/updated but the page doesn't redirect back to the list of users and the aforementioned exception is thrown. 

Version-Release number of selected component (if applicable):
4.13.1

How reproducible:
Always

Steps to Reproduce:
1. Login as rhqadmin/rhqadmin
2. Administration > Users
3. New
4. Fill in the required fields with any values (see attached screenshot if specifics needed)
5. Save

Actual results:
User created/updated, but a Globally uncaught exception is also thrown; does not redirect back to the Users page.

Expected results:
"User created/updated" message; redirects back to the Users page.

Additional info:
- This exception only appears on the UI - there is nothing in the server.log.
- Editing details for rhqadmin works as expected, but editing any other user results in the exception (possible that something goes wrong on initial creation and propagates on attempts to edit).
- Tested on Chrome, IE 11, and Firefox 43.0.4

Message :	Globally uncaught exception
Severity :	Error

Time :	Monday, March 7, 2016 11:28:05 AM UTC
Root Cause :	(TypeError) : Cannot read property 'getRecords' of null
Detail :	
com.google.gwt.core.client.JavaScriptException:(TypeError) : Cannot read property 'getRecords' of null
--- STACK TRACE FOLLOWS ---
(TypeError) : Cannot read property 'getRecords' of null
   at Unknown.$getIntegerList(<anonymous>@58)
   at Unknown.postSaveAction_0(<anonymous>@18)
   at Unknown.execute_47(<anonymous>@17)
   at Unknown.<anonymous>(<anonymous>@34)
   at Unknown.apply(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/AA377C5C985D1B16B8B9285EA3D920BA.cache.html@21)
   at Unknown.entry0(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/AA377C5C985D1B16B8B9285EA3D920BA.cache.html@16)
   at Unknown.$40c(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/AA377C5C985D1B16B8B9285EA3D920BA.cache.html@14)
   at Unknown.isc_c_Class_fireCallback(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/sc/modules/ISC_Core.js@49)
   at Unknown.isc_Class_fireCallback(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/sc/modules/ISC_Core.js@89)
   at Unknown.isc.EditorActionMethods.addInterfaceMethods.formSavedComplete(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/sc/modules/ISC_DataBinding.js@20)
   at Unknown.isc.EditorActionMethods.addInterfaceMethods.$49z(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/sc/modules/ISC_DataBinding.js@49)
   at Unknown.eval(eval at <anonymous> (http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/sc/modules/ISC_Core.js@72)
   at Unknown.isc_c_Class_fireCallback(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/sc/modules/ISC_Core.js@49)
   at Unknown.isc_Class_fireCallback(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/sc/modules/ISC_Core.js@89)
   at Unknown.isc_DataSource_fireResponseCallbacks(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/sc/modules/ISC_DataBinding.js@13)
   at Unknown.isc_DataSource__completeResponseProcessing(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/sc/modules/ISC_DataBinding.js@6)
   at Unknown.isc_DataSource_processResponse(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/sc/modules/ISC_DataBinding.js@6)
   at Unknown.$processResponse(<anonymous>@10)
   at Unknown.$processResponse_0(<anonymous>@3)
   at Unknown.$sendSuccessResponse(<anonymous>@3)
   at Unknown.$onSuccess_117(<anonymous>@3)
   at Unknown.onSuccess_122(<anonymous>@3)
   at Unknown.$onResponseReceived(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/AA377C5C985D1B16B8B9285EA3D920BA.cache.html@34)
   at Unknown.onResponseReceived_4(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/AA377C5C985D1B16B8B9285EA3D920BA.cache.html@7)
   at Unknown.$fireOnResponseReceived(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/AA377C5C985D1B16B8B9285EA3D920BA.cache.html@14)
   at Unknown.onReadyStateChange_0(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/AA377C5C985D1B16B8B9285EA3D920BA.cache.html@5)
   at Unknown.<anonymous>(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/AA377C5C985D1B16B8B9285EA3D920BA.cache.html@13)
   at Unknown.apply(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/AA377C5C985D1B16B8B9285EA3D920BA.cache.html@21)
   at Unknown.entry0(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/AA377C5C985D1B16B8B9285EA3D920BA.cache.html@16)
   at Unknown.<anonymous>(http://192.168.33.10:7080/coregui/org.rhq.coregui.CoreGUI/AA377C5C985D1B16B8B9285EA3D920BA.cache.html@14)

Comment 1 Szymon Zielinski 2016-03-07 11:50:50 UTC
Created attachment 1133714 [details]
exception stack trace in txt format

Comment 2 Jyothsna Padamata 2016-05-03 11:00:41 UTC
Can we have any update on this?

Comment 3 Vijay Kumar 2016-05-24 04:55:36 UTC
Hi All,

Could you please provide needful update on the request raised.?

It seems to be state/ status  is still 'Open'. Can any body explain why? Please.

Please let us know in case of any more details that you are expecting on the same.


Regards,
Vijay Kumar

Comment 4 Michael Burman 2016-05-26 16:03:11 UTC
Fixed in the master.

Comment 5 Ramana 2016-08-12 09:43:55 UTC
Any date on the delivery of 4.14 version?

Comment 6 Kranthi 2016-11-21 11:47:36 UTC
Hi Michael Burman,
   Can you Please provide the change set in the rhq source code (Files changed)?
Regards,
Kranthi

Comment 7 Michael Burman 2016-11-21 14:46:10 UTC
Commit d9b0b08ed29b056ed5ee25ef34e8fae06fde5cc1

Comment 8 Kranthi 2016-11-22 09:40:43 UTC
Hi Michael,
    Thank you.. That was very helpul.
Regards,
Kranthi

Comment 10 guptavikas707 2020-08-22 06:50:13 UTC
I am getting below exception in SmartGWT,Please help me 

[ERROR] 2020-08-19 20:18:57.141 [http-nio-8320-exec-9] TrackerServiceController - Uncaught throwable on the client. Message: "(TypeError) : Cannot read property 'a' of null". 
Stacktrace:
Unknown.s8b(Uman-0.js)Unknown.w8b(Uman-0.js)
Unknown.H8b(Uman-0.js)Unknown.B9b(Uman-0.js)
Unknown.QAb(Uman-0.js)Unknown.TAb(Uman-0.js)
Unknown.Qd(Uman-0.js)Unknown.Jd(Uman-0.js)
Unknown.OH(Uman-0.js)Unknown.VH(Uman-0.js)
Unknown.eval(Uman-0.js)Unknown.Nb(Uman-0.js)
Unknown.Qb(Uman-0.js)Unknown.eval(Uman-0.js)
Unknown.isc_ListGrid__dataArrived(http://localhost:8320/Uman/Uman/sc/modules/ISC_Grids.js)
Unknown.<anonymous>(http://localhost:8320/Uman/Uman/sc/modules/ISC_Grids.js)
Unknown.observation(http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)
Unknown.isc_ResultTree_loadChildrenReply(http://localhost:8320/Uman/Uman/sc/modules/ISC_DataBinding.js)
Unknown.isc_c_Class_fireCallback(http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)
Unknown.isc_Class_fireCallback(http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)
Unknown.isc_DataSource_fireResponseCallbacks(http://localhost:8320/Uman/Uman/sc/modules/ISC_DataBinding.js)
Unknown.isc_DataSource__completeResponseProcessing(http://localhost:8320/Uman/Uman/sc/modules/ISC_DataBinding.js)
Unknown.isc_DataSource__handleSCServerReply(http://localhost:8320/Uman/Uman/sc/modules/ISC_DataBinding.js)
Unknown.isc_c_Class_fireCallback(http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)
Unknown.isc_Class_fireCallback(http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)
Unknown.isc_c_RPCManager_fireReplyCallback(http://localhost:8320/Uman/Uman/sc/modules/ISC_DataBinding.js)
Unknown.BJ.$wnd.isc.RPCManager.fireReplyCallback(Uman-0.js)
Unknown.isc_c_RPCManager_fireReplyCallbacks(http://localhost:8320/Uman/Uman/sc/modules/ISC_DataBinding.js)
Unknown.isc_c_RPCManager_performOperationReply(http://localhost:8320/Uman/Uman/sc/modules/ISC_DataBinding.js)
Unknown.isc_c_RPCManager__performTransactionReply(http://localhost:8320/Uman/Uman/sc/modules/ISC_DataBinding.js)
Unknown.isc_c_RPCManager_performTransactionReply(http://localhost:8320/Uman/Uman/sc/modules/ISC_DataBinding.js)
Unknown.eval(eval at isc__makeFunction (http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)
Unknown.isc_c_Class_fireCallback(http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)
Unknown.isc_c_Comm_performXmlTransactionReply(http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)
Unknown.eval(eval at isc__makeFunction (http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)
Unknown.isc_c_Class_fireCallback(http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)
Unknown.isc_c_Comm__fireXMLCallback(http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)
Unknown._15(http://localhost:8320/Uman/Uman/sc/modules/ISC_Core.js)