incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-3110) NullPointerException when trying to access a service that does not exist
Date Thu, 05 Sep 2013 15:19:52 GMT
Dmitry Lysnichenko created AMBARI-3110:
------------------------------------------

             Summary: NullPointerException when trying to access a service that does not exist
                 Key: AMBARI-3110
                 URL: https://issues.apache.org/jira/browse/AMBARI-3110
             Project: Ambari
          Issue Type: Task
          Components: controller
    Affects Versions: 1.4.0
            Reporter: Dmitry Lysnichenko
            Assignee: Dmitry Lysnichenko
             Fix For: 1.4.1


Ambari throws NPE when a non-existent service is accessed. E.g. posting MAPREDUCE2 as a service
to a cluster that is 1.3.2.

{code}
curl -i -X POST -u admin:admin http://127.0.0.1:8080/api/v1/clusters/c1/services/MAPREDUCE2
{code}
{noformat}
java.lang.NullPointerException
        at org.apache.ambari.server.state.ServiceImpl.<init>(ServiceImpl.java:105)
        at org.apache.ambari.server.state.ServiceImpl$$EnhancerByGuice$$8c6fcc69.<init>(<generated>)
        at org.apache.ambari.server.state.ServiceImpl$$EnhancerByGuice$$8c6fcc69$$FastClassByGuice$$a497a95d.newInstance(<generated>)
        at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
        at com.google.inject.internal.ProxyFactory$ProxyConstructor.newInstance(ProxyFactory.java:260)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
        at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
        at com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:632)
        at $Proxy12.createNew(Unknown Source)
        at org.apache.ambari.server.controller.AmbariManagementControllerImpl.createServices(AmbariManagementControllerImpl.java:401)
        at org.apache.ambari.server.controller.internal.ServiceResourceProvider$1.invoke(ServiceResourceProvider.java:91)
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message