You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Srimanth Gunturi (JIRA)" <ji...@apache.org> on 2015/02/10 22:58:11 UTC
[jira] [Created] (AMBARI-9557) Slider View fails to initialize when
configs have object values instead of primitives
Srimanth Gunturi created AMBARI-9557:
----------------------------------------
Summary: 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
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)