ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sumit Mohanty (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-5510) NPE in ganglia property provider
Date Fri, 18 Apr 2014 15:45:17 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-5510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sumit Mohanty updated AMBARI-5510:
----------------------------------

    Attachment: AMBARI-5510.patch

> NPE in ganglia property provider
> --------------------------------
>
>                 Key: AMBARI-5510
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5510
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>            Reporter: Sumit Mohanty
>            Assignee: Sumit Mohanty
>             Fix For: 1.6.0
>
>         Attachments: AMBARI-5510.patch
>
>
> Hit NPE when accessing api/vi/clusters/c1/hosts/c6403.ambari.apache.org.
> The repro steps are not simple as I was trying to close the browser during Add Host Wizard
progress and then trying to delete the host to start the wizard again.
> In any case, we can add some null checks to avoid the NPE.
> {noformat}
> 00:30:36,028  WARN [qtp762119098-106] ServletHandler:514 - /api/v1/clusters/c1/hosts/c6403.ambari.apache.org
> java.lang.NullPointerException
>         at org.apache.ambari.server.controller.ganglia.GangliaPropertyProvider$RRDRequest.convertToNumber(GangliaPropertyProvider.java:621)
>         at org.apache.ambari.server.controller.ganglia.GangliaPropertyProvider$RRDRequest.populateResources(GangliaPropertyProvider.java:490)
>         at org.apache.ambari.server.controller.ganglia.GangliaPropertyProvider.populateResources(GangliaPropertyProvider.java:120)
>         at org.apache.ambari.server.controller.internal.ClusterControllerImpl.populateResources(ClusterControllerImpl.java:129)
>         at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:336)
>         at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:184)
>         at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:67)
>         at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:116)
>         at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:80)
>         at org.apache.ambari.server.api.services.HostService.getHost(HostService.java:80)
>         at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message