You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Srimanth Gunturi (JIRA)" <ji...@apache.org> on 2014/10/28 01:11:34 UTC
[jira] [Created] (AMBARI-7993) Slider View: Classnotfound exception
on Slider AM when app created
Srimanth Gunturi created AMBARI-7993:
----------------------------------------
Summary: Slider View: Classnotfound exception on Slider AM when app created
Key: AMBARI-7993
URL: https://issues.apache.org/jira/browse/AMBARI-7993
Project: Ambari
Issue Type: Bug
Components: contrib
Affects Versions: 1.7.0
Reporter: Srimanth Gunturi
Assignee: Srimanth Gunturi
Fix For: 1.7.0
When creating a slider app, the following exception happens on the AM:
{code}
2014-10-27 19:40:24,175 ERROR [main] main.ServiceLauncher (ServiceLauncher.java:error(344)) - Exception: com/google/inject/internal/util/$Preconditions
java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Preconditions
at com.google.inject.servlet.ServletModule.configure(ServletModule.java:44)
at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:230)
at com.google.inject.spi.Elements.getElements(Elements.java:103)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
at com.google.inject.Guice.createInjector(Guice.java:96)
at com.google.inject.Guice.createInjector(Guice.java:73)
at com.google.inject.Guice.createInjector(Guice.java:62)
at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:280)
at org.apache.slider.server.appmaster.SliderAppMaster.createAndRunCluster(SliderAppMaster.java:714)
at org.apache.slider.server.appmaster.SliderAppMaster.runService(SliderAppMaster.java:522)
at org.apache.slider.core.main.ServiceLauncher.launchService(ServiceLauncher.java:188)
at org.apache.slider.core.main.ServiceLauncher.launchServiceRobustly(ServiceLauncher.java:473)
at org.apache.slider.core.main.ServiceLauncher.launchServiceAndExit(ServiceLauncher.java:403)
at org.apache.slider.core.main.ServiceLauncher.serviceMain(ServiceLauncher.java:628)
at org.apache.slider.server.appmaster.SliderAppMaster.main(SliderAppMaster.java:2230)
Caused by: java.lang.ClassNotFoundException: com.google.inject.internal.util.$Preconditions
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 17 more
2014-10-27 19:40:24,185 INFO [main] util.ExitUtil (ExitUtil.java:terminate(124)) - Exiting with status 56
{code}
Turns out that the Slider View has Guice JAR {{guice-4.0-beta.jar}}. However _Slider_ project itself requires {{<guice.version>3.0</guice.version>}}.
When [SLIDER-515|https://issues.apache.org/jira/browse/SLIDER-515] was committed, it broke the view.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)