ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nahappan Somasundaram (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-14998) Server 500 error on trying to extract a blueprint for all clusters
Date Wed, 10 Feb 2016 22:12:18 GMT
Nahappan Somasundaram created AMBARI-14998:
----------------------------------------------

             Summary: Server 500 error on trying to extract a blueprint for all clusters
                 Key: AMBARI-14998
                 URL: https://issues.apache.org/jira/browse/AMBARI-14998
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.4.0
            Reporter: Nahappan Somasundaram
            Assignee: Nahappan Somasundaram
             Fix For: 2.4.0


Attempting to extract a blueprint for all clusters fails with 500 server error, if there are
one or more clusters.

curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://c6404.ambari.apache.org:8080/api/v1/clusters/?format=blueprint
{
  "status": 500,
  "message": "Server Error"
}

*Call stack*
java.lang.NullPointerException
        at org.apache.ambari.server.controller.internal.ExportBlueprintRequest.createConfiguration(ExportBlueprintRequest.java:185)
        at org.apache.ambari.server.controller.internal.ExportBlueprintRequest.<init>(ExportBlueprintRequest.java:78)
        at org.apache.ambari.server.api.query.render.ClusterBlueprintRenderer.createClusterTopology(ClusterBlueprintRenderer.java:340)
        at org.apache.ambari.server.api.query.render.ClusterBlueprintRenderer.createBlueprintResource(ClusterBlueprintRenderer.java:176)
        at org.apache.ambari.server.api.query.render.ClusterBlueprintRenderer.finalizeResult(ClusterBlueprintRenderer.java:141)
        at org.apache.ambari.server.api.query.QueryImpl.getResult(QueryImpl.java:822)
        at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:218)
        at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:69)
        at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:136)
        at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:106)
        at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:75)
        at org.apache.ambari.server.api.services.ClusterService.getClusters(ClusterService.java:107)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)




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

Mime
View raw message