ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitalyi Brodetskyi" <vbrodets...@hortonworks.com>
Subject Re: Review Request 41010: Ranger admin component stops with exception in log
Date Sat, 05 Dec 2015 15:13:02 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41010/#review109087
-----------------------------------------------------------

Ship it!


Ship It!

- Vitalyi Brodetskyi


On Гру. 5, 2015, 3:10 після полудня, Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41010/
> -----------------------------------------------------------
> 
> (Updated Гру. 5, 2015, 3:10 після полудня)
> 
> 
> Review request for Ambari and Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-14230
>     https://issues.apache.org/jira/browse/AMBARI-14230
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> In some moment ranger-admin component become stopped by itself. This bug
> reproduces every time. In file /var/log/ranger/admin/catalina.out found
> exception.
> 
>     
>     
>     Nov 30, 2015 5:50:20 PM org.apache.catalina.core.ContainerBase.[Tomcat].[os-r6-hirdwu-ambari-rare-9-re-5.novalocal].[/]
listenerStart
>     SEVERE: Exception sending context initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
>     org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing
XML document from ServletContext resource [/WEB-INF/classes/conf/security-applicationContext.xml];
nested exception is java.io.FileNotFoundException: Could not open ServletContext resource
[/WEB-INF/classes/conf/security-applicationContext.xml]
>     	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
>     	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
>     	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
>     	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
>     	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
>     	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
>     	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
>     	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
>     	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:530)
>     	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:444)
>     	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
>     	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
>     	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
>     	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)
>     	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490)
>     	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>     	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
>     	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
>     	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     	at java.lang.Thread.run(Thread.java:745)
>     Caused by: java.io.FileNotFoundException: Could not open ServletContext resource
[/WEB-INF/classes/conf/security-applicationContext.xml]
>     	at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:140)
>     	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
>     	... 21 more
>     
>     Nov 30, 2015 5:50:20 PM org.apache.catalina.core.StandardContext startInternal
>     SEVERE: Error listenerStart
>     Nov 30, 2015 5:50:20 PM org.apache.catalina.core.StandardContext startInternal
>     SEVERE: Context [/] startup failed due to previous errors
>     Nov 30, 2015 5:50:20 PM org.apache.catalina.core.ContainerBase.[Tomcat].[os-r6-hirdwu-ambari-rare-9-re-5.novalocal].[/]
log
>     INFO: Closing Spring root WebApplicationContext
>     Nov 30, 2015 5:50:20 PM org.apache.catalina.core.ContainerBase.[Tomcat].[os-r6-hirdwu-ambari-rare-9-re-5.novalocal].[/]
listenerStop
>     SEVERE: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener
>     java.lang.IllegalStateException: BeanFactory not initialized or already closed -
call 'refresh' before accessing beans via the ApplicationContext
>     	at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
>     	at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1078)
>     	at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1052)
>     	at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1000)
>     	at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:548)
>     	at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142)
>     	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5033)
>     	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5685)
>     	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
>     	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
>     	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
>     	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
>     	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     	at java.lang.Thread.run(Thread.java:745)
>     
> 
> Cluster with reproduce: 172.22.80.219. (updating lifetime to 48h)
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
8c53a4b 
> 
> Diff: https://reviews.apache.org/r/41010/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message