-
1. Re: Failure in datasource while processing FETCH request.
arun2arunraj May 29, 2013 8:12 AM (in response to udayatom)Hi Uday,
From your datasource "NULL" values might be tried to retrieved. Check out your code. Use the perfect exceptions at needed places.
Regards,
ArunRaj
-
2. Re: Failure in datasource while processing FETCH request.
jayshaughnessy May 29, 2013 9:16 AM (in response to udayatom)I need more information about what you are doing. Is this in the UI? Is it in a CLI script? What exactly is the failure?
I'll mention one thing about the CLI that may be relevant. When you fetch information, for example, maybe you did a findResourcesByCriteria, the resources will not include JOINED (i.e lazy loaded) information by default. This is to save time fetching JOINED information that is not usually needed. For example, you'd need to add resourceCriteria.fetchParentResource(true) to include the parent resources. And even then, the parents themselves will not have the JOINED information. So, you would need to perform a second fetch using the parentId to get more detailed information about the parent, if needed.
-
3. Re: Failure in datasource while processing FETCH request.
udayatom May 29, 2013 9:59 AM (in response to jayshaughnessy)Thank you jay, It happens in the UI.
-
4. Re: Failure in datasource while processing FETCH request.
arun2arunraj May 29, 2013 10:09 AM (in response to udayatom)Hi Jay,
If that happens in the UI , what are all the possible problmes in the plugin code. Please share your knowledge with me also.
Regards,
ArunRaj.
-
5. Re: Failure in datasource while processing FETCH request.
jayshaughnessy May 29, 2013 12:52 PM (in response to udayatom)I'm still not sure what the actual error is so I can't really help you. Perhaps the parent node is locked. Is there a lock icon on it? If you are an admin user this would not be the problem, but if you are using group-based authorization it is possible the parent may not be accessible to the user. In that case it will show in the tree, because we always show ancestry, but you will not be able to get information for it. That should not cause an exception/failure, though.
There is nothing in the plugin code that would affect the UI, as far as i can see. Unless perhaps it is a live data request, which is unusual.
-
6. Re: Failure in datasource while processing FETCH request.
udayatom Jun 1, 2013 1:37 AM (in response to jayshaughnessy)Hi jay,
How to avoid this error, still now i cant fix it. at the same time, i am the admin user, There is no lock icon. in the child nodes are getting the values well. One more issue is, when i click the parent node summary it says,"GLOBALLY UNCAUGHT EXCEPTION" . The parent only give the trouble , how can i fix. any guidelines for my case.
Regards,
Udaya
-
7. Re: Failure in datasource while processing FETCH request.
arun2arunraj Jun 3, 2013 1:50 AM (in response to arun2arunraj)Hi Developers,
Please help me to understand the "Failure in datasource while Processing FETCH Request". I got the above error at my parent level (Which is monitoing 5 resources). That is why I cant see my graphical summary output. Share your experience with to solve this problem
The following is the message in Message center
-
8. Re: Failure in datasource while processing FETCH request.
jayshaughnessy Jun 3, 2013 10:05 AM (in response to arun2arunraj)Thanks for posting the exception. It's unfortunately still difficult to understand the root cause as UI stack traces don't provide a lot of useful information. Have you tried refreshing your browser with Ctl-F5? It almost looks like the cached resource types are out of date ( I see "onTypesLoaded_24@,,," ). If you recently upgraded and never refreshed the browser it can sometimes cause issues. Or, if you loaded new versions of plugins on the server, and those updates made changes to the types, and it's those types involved in the resources you are dealing with in your tree, perhaps that could be an issue as well. So, refresh the browser cache.
Otherwise we will need more information because no one else is reporting this issue, which would be a very bad issue given that you can't click on an auto-group node.
Does this happen for all autogroup nodes? Or just a specific node? If just one node, what is the resource type? What version of RHQ? Are there any server-side errors that are reported at the same time?
-
9. Re: Failure in datasource while processing FETCH request.
arun2arunraj Jun 3, 2013 11:08 AM (in response to jayshaughnessy)Hi Jay,
Thanks for your reply.
I have tried browser cache option. And more over I have tried to delete the cache files (rhq-server-4.5.1\jbossas\server\default\deploy\rhq.ear\coregui.war\org.rhq.enterprise.gui.coregui.CoreGUI). Still I cant solve the problem.
jay shaughnessy wrote:
Does this happen for all autogroup nodes? Or just a specific node? If just one node, what is the resource type? What version of RHQ? Are there any server-side errors that are reported at the same time?
We have tried with the same plugin code for different plugins ( By changing the plugin Name, artifactId,package ,display name,etc..) . Finally at last, a plugin worked fine. Out of 10 plugin a single plugin is working fine. In our plugin, We are having 1 parent and 5 childs ( might has 1 or 2 childs per each). Each child resource is working fine. At the parent level only, we are having the error. Here I have attached the screenshot for your reference.
Resource Type :
Parent - Server ; Child - Service;
RHQ Version :
4.5.1
Server Side Error :
Unfortunately, we dont have any error in agent as well as server side. except the following. I have attached the screenshots, Please find it.
Message : Globally uncaught exception Severity : Error Time : Monday, June 3, 2013 8:18:28 PM UTC+5:30 Root Cause : (TypeError): dynamicCast(...) is null stack: compare_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28368 insertionSort@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28067 mergeSort_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28093 mergeSort_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28100 mergeSort_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28100 mergeSort@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28086 onTypesLoaded_6@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:97956 onTypesLoaded_42@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:158131 $getResourceTypes_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:157969 $getResourceTypes@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:157934 $onSuccess_168@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:97899 onSuccess_177@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:97923 $onResponseReceived@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:9606 onResponseReceived_6@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:167226 $fireOnResponseReceived@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:3433 onReadyStateChange_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:3735 this$static.onreadystatechange<@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:11088 apply@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:2409 entry0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:2439 @http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:2424 fileName: http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html lineNumber: 28368 columnNumber: 2 Detail : com.google.gwt.core.client.JavaScriptException:(TypeError): dynamicCast(...) is null stack: compare_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28368 insertionSort@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28067 mergeSort_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28093 mergeSort_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28100 mergeSort_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28100 mergeSort@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28086 onTypesLoaded_6@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:97956 onTypesLoaded_42@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:158131 $getResourceTypes_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:157969 $getResourceTypes@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:157934 $onSuccess_168@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:97899 onSuccess_177@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:97923 $onResponseReceived@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:9606 onResponseReceived_6@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:167226 $fireOnResponseReceived@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:3433 onReadyStateChange_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:3735 this$static.onreadystatechange<@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:11088 apply@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:2409 entry0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:2439 @http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:2424 fileName: http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html lineNumber: 28368 columnNumber: 2 --- STACK TRACE FOLLOWS --- (TypeError): dynamicCast(...) is null stack: compare_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28368 insertionSort@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28067 mergeSort_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28093 mergeSort_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28100 mergeSort_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28100 mergeSort@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:28086 onTypesLoaded_6@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:97956 onTypesLoaded_42@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:158131 $getResourceTypes_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:157969 $getResourceTypes@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:157934 $onSuccess_168@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:97899 onSuccess_177@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:97923 $onResponseReceived@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:9606 onResponseReceived_6@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:167226 $fireOnResponseReceived@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:3433 onReadyStateChange_0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:3735 this$static.onreadystatechange<@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:11088 apply@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:2409 entry0@http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:2439 @http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html:2424 fileName: http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/716ADA316946734AA7DDBED4029049E9.cache.html lineNumber: 28368 columnNumber: 2 at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source)
Regards,
ArunRaj
-
10. Re: Failure in datasource while processing FETCH request.
jayshaughnessy Jun 3, 2013 11:26 AM (in response to arun2arunraj)Are those 5 child resources really having those strange names that don't display? I honestly don't know what the issue could be. If you click on the other parent nodes (autogroup nodes), do you see similar failures? Like the "Network Adapters" or "Postfix Servers" tree nodes?
If not I would have to say it is somehow linked to the particular data type you are dealing with, which is your custom type, I believe. Although I'm not aware of restrictions on type names, perhaps try removing the special characters, like "_-." that I see and try again.
-
11. Re: Failure in datasource while processing FETCH request.
arun2arunraj Jun 3, 2013 11:37 AM (in response to jayshaughnessy)Hi Jay,
I dont see similar failures on the inbuilt plugins. In my custom plugin, I am facing this error.
I am using trait and measurement data type. Sure I will try to remove those special characters and will update you.
Regards,
ArunRaj