ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srimanth Gunturi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-9557) Slider View fails to initialize when configs have object values instead of primitives
Date Tue, 10 Feb 2015 22:12:12 GMT

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

Srimanth Gunturi updated AMBARI-9557:
-------------------------------------
    Attachment: AMBARI-9557.patch

> Slider View fails to initialize when configs have object values instead of primitives
> -------------------------------------------------------------------------------------
>
>                 Key: AMBARI-9557
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9557
>             Project: Ambari
>          Issue Type: Bug
>          Components: contrib
>    Affects Versions: 2.0.0
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-9557.patch
>
>
> When {{ambari.properties}} has keys with slashes in them:
> {code}
> a/ARTIFACTS/jdk-6u31-linux-x64.bin=
> a/ARTIFACTS/jdk-7u67-linux-x64.tar.gz=
> {code}
> The [http://server:8080/api/v1/services/AMBARI/components/AMBARI_SERVER] response has
an object as return value in the 'properties' object.
> {code}
>     "a" : {
>         "ARTIFACTS" : {
>           "jdk-6u31-linux-x64.bin" : "",
>           "jdk-7u67-linux-x64.tar.gz" : ""
>         }
>       }
> {code}
> Since the slider view only expects primitives as values of keys, it throws an exception.
> {code}
> 14:18:10,634  WARN [qtp1783621909-139] SliderAppsViewControllerImpl:294 - Exception determining
view status
> java.lang.UnsupportedOperationException: JsonObject
> 	at com.google.gson.JsonElement.getAsString(JsonElement.java:185)
> 	at org.apache.ambari.view.slider.rest.client.AmbariHttpClient.getAmbariServerConfigs(AmbariHttpClient.java:114)
> 	at org.apache.ambari.view.slider.SliderAppsViewControllerImpl.getViewStatus(SliderAppsViewControllerImpl.java:178)
> 	at org.apache.ambari.view.slider.rest.ViewStatusResource.getViewStatus(ViewStatusResource.java:38)
> 	at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message