You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/10/03 15:08:00 UTC

[jira] [Updated] (AMBARI-24729) Ambari Server stops with Java 9 due to Guice error

     [ https://issues.apache.org/jira/browse/AMBARI-24729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated AMBARI-24729:
------------------------------------
    Labels: pull-request-available  (was: )

> Ambari Server stops with Java 9 due to Guice error
> --------------------------------------------------
>
>                 Key: AMBARI-24729
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24729
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.7.1
>            Reporter: Gabor Boros
>            Assignee: Doroszlai, Attila
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.8.0
>
>
> Ambari Server stopped a few seconds after start with the following error:
>  
> {code:title=/var/log/ambari-server/ambari-server.out}
> Exception in thread "main" com.google.inject.CreationException: Unable to create injector, see the following errors:
> 1) No scope is bound to org.apache.ambari.server.AmbariService.
> at org.apache.ambari.server.state.services.MetricsRetrievalService.class(MetricsRetrievalService.java:85)
> while locating org.apache.ambari.server.state.services.MetricsRetrievalService
> for field at org.apache.ambari.server.controller.jmx.JMXPropertyProvider.metricsRetrievalService(JMXPropertyProvider.java:88)
> at org.apache.ambari.server.controller.metrics.MetricPropertyProviderFactory.createJMXPropertyProvider(MetricPropertyProviderFactory.java:1)
> at com.google.inject.assistedinject.FactoryProvider2.initialize(FactoryProvider2.java:666)
> at com.google.inject.assistedinject.FactoryModuleBuilder$1.configure(FactoryModuleBuilder.java:335) (via modules: org.apache.ambari.server.controller.ControllerModule -> com.google.inject.assistedinject.FactoryModuleBuilder$1)
> 1 error
> at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:470)
> at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
> at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
> at com.google.inject.Guice.createInjector(Guice.java:99)
> at com.google.inject.Guice.createInjector(Guice.java:73)
> at com.google.inject.Guice.createInjector(Guice.java:62)
> at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:1079)
> ~
> ~
> "/var/log/ambari-server/ambari-server.out" 41L, 6558C{code}
> {code}
> cat /etc/ambari-server/conf/ambari.properties | grep 'java\.home'
> java.home=/usr/java/jdk-9.0.4/
> stack.java.home=/usr/java/jdk-9.0.4/
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)