Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-10738

NPE on desiredStateEntity in ServiceComponentHostImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • 2.0.0
    • 2.1.0
    • ambari-server
    • None

    Description

      16 Apr 2015 09:51:33,747 ERROR [qtp-client-1452] ReadHandler:91 - Caught a runtime exception executing a query
      java.lang.NullPointerException
              at org.apache.ambari.server.state.svccomphost.ServiceComponentHostImpl.getMaintenanceState(ServiceComponentHostImpl.java:142
      5)
              at org.apache.ambari.server.controller.MaintenanceStateHelper.getEffectiveState(MaintenanceStateHelper.java:208)
              at org.apache.ambari.server.controller.MaintenanceStateHelper.getEffectiveState(MaintenanceStateHelper.java:177)
              at org.apache.ambari.server.controller.MaintenanceStateHelper.getEffectiveState(MaintenanceStateHelper.java:191)
              at org.apache.ambari.server.state.cluster.ClusterImpl.getClusterHealthReport(ClusterImpl.java:2486)
              at org.apache.ambari.server.state.cluster.ClusterImpl.convertToResponse(ClusterImpl.java:1675)
              at org.apache.ambari.server.controller.AmbariManagementControllerImpl.getClusters(AmbariManagementControllerImpl.java:847)
              at org.apache.ambari.server.controller.AmbariManagementControllerImpl.getClusters(AmbariManagementControllerImpl.java:2603)
              at org.apache.ambari.server.controller.internal.ClusterResourceProvider$1.invoke(ClusterResourceProvider.java:182)
              at org.apache.ambari.server.controller.internal.ClusterResourceProvider$1.invoke(ClusterResourceProvider.java:179)
              at org.apache.ambari.server.controller.internal.AbstractResourceProvider.getResources(AbstractResourceProvider.java:302)
              at org.apache.ambari.server.controller.internal.ClusterResourceProvider.getResources(ClusterResourceProvider.java:179)
              at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedResourceProviderWrapper.queryForResources(Clus
      terControllerImpl.java:945)
              at org.apache.ambari.server.controller.internal.ClusterControllerImpl.getResources(ClusterControllerImpl.java:132)
              at org.apache.ambari.server.api.query.QueryImpl.doQuery(QueryImpl.java:475)
              at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:381)
              at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:217)
              at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:68)
              at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135)
              at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:103)
              at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:72)
              at org.apache.ambari.server.api.services.ClusterService.getCluster(ClusterService.java:94)
              at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
              at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(Abst
      ractResourceMethodDispatchProvider.java:205)
              at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:
      75)
       
      ...
       
      16 Apr 2015 09:51:33,757  WARN [qtp-client-1452] ServletHandler:514 - /api/v1/clusters/woah
      java.lang.NullPointerException
              at org.apache.ambari.server.state.svccomphost.ServiceComponentHostImpl.getMaintenanceState(ServiceComponentHostImpl.java:1425)
              at org.apache.ambari.server.controller.MaintenanceStateHelper.getEffectiveState(MaintenanceStateHelper.java:208)
              at org.apache.ambari.server.controller.MaintenanceStateHelper.getEffectiveState(MaintenanceStateHelper.java:177)
              at org.apache.ambari.server.controller.MaintenanceStateHelper.getEffectiveState(MaintenanceStateHelper.java:191)
              at org.apache.ambari.server.state.cluster.ClusterImpl.getClusterHealthReport(ClusterImpl.java:2486)
              at org.apache.ambari.server.state.cluster.ClusterImpl.convertToResponse(ClusterImpl.java:1675)
              at org.apache.ambari.server.controller.AmbariManagementControllerImpl.getClusters(AmbariManagementControllerImpl.java:847)
              at org.apache.ambari.server.controller.AmbariManagementControllerImpl.getClusters(AmbariManagementControllerImpl.java:2603)
              at org.apache.ambari.server.controller.internal.ClusterResourceProvider$1.invoke(ClusterResourceProvider.java:182)
              at org.apache.ambari.server.controller.internal.ClusterResourceProvider$1.invoke(ClusterResourceProvider.java:179)
              at org.apache.ambari.server.controller.internal.AbstractResourceProvider.getResources(AbstractResourceProvider.java:302)
              at org.apache.ambari.server.controller.internal.ClusterResourceProvider.getResources(ClusterResourceProvider.java:179)
              at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedResourceProviderWrapper.queryForResources(ClusterControllerImpl.java:945)
              at org.apache.ambari.server.controller.internal.ClusterControllerImpl.getResources(ClusterControllerImpl.java:132)
              at org.apache.ambari.server.api.query.QueryImpl.doQuery(QueryImpl.java:475)
              at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:381)
              at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:217)
              at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:68)
              at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135)
              at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:103)
              at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:72)
              at org.apache.ambari.server.api.services.ClusterService.getCluster(ClusterService.java:94)
              at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
      

      Attachments

        1. AMBARI-10738.patch
          2 kB
          Siddharth Wagle

        Activity

          People

            swagle Siddharth Wagle
            swagle Siddharth Wagle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: