You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2015/12/05 16:25:10 UTC

[jira] [Resolved] (AMBARI-14230) Ranger admin component stops with exception in log

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

Andrew Onischuk resolved AMBARI-14230.
--------------------------------------
    Resolution: Fixed

Committed to trunk and branch-2.2

> Ranger admin component stops with exception in log
> --------------------------------------------------
>
>                 Key: AMBARI-14230
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14230
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.2.0
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)