You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Oleksandr Diachenko (JIRA)" <ji...@apache.org> on 2013/09/05 17:25:58 UTC
[jira] [Commented] (AMBARI-3110) NullPointerException when trying
to access a service that does not exist
[ https://issues.apache.org/jira/browse/AMBARI-3110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13759157#comment-13759157 ]
Oleksandr Diachenko commented on AMBARI-3110:
---------------------------------------------
+1
> 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
>
> Attachments: AMBARI-3110.patch
>
>
> 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