Hi everyone,

I wondered if I might ask you all a question as I'm having some issues 
upgrading from 2.11.2 to 2.12.0 this morning. I'm sure it is just a quirk of 
our installation but when using the monitoring plugin (set to hibernate) I get 
the following stack trace:

2017-10-24 09:34:09,526 ERROR [support.DefaultListableBeanFactory] - Destroy 
method on bean with name 'extensions' threw an exception
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - 
call 'refresh' before multicasting events via the context: Root 
WebApplicationContext: startup date [Tue Oct 24 09:34:05 BST 2017]; root of 
context hierarchy
                at 
org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404)
                at 
org.springframework.context.support.ApplicationListenerDetector.postProcessBeforeDestruction(ApplicationListenerDetector.java:97)
                at 
org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253)
                at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)
                at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)
                at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:961)
                at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)
                at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:968)
                at 
org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1033)
                at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:555)
                at 
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
                at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
                at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
                at 
org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:23)
                at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4772)
                at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
                at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
                at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
                at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:917)
                at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1701)
                at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                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)
2017-10-24 09:34:09,542 ERROR [context.ContextLoader] - Context initialization 
failed
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean 
definition with name 'hibSessionFactory' defined in URL 
[jar:file:/C:/apache-tomcat-8/webapps/ROOT/WEB-INF/lib/gs-monitor-hibernate-2.12.0.jar!/applicationContext-hib2.xml]:
 Could not resolve placeholder 'hibernate.generate_statistics' in value 
"${hibernate.generate_statistics}"; nested exception is 
java.lang.IllegalArgumentException: Could not resolve placeholder 
'hibernate.generate_statistics' in value "${hibernate.generate_statistics}"
                at 
org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:223)
                at 
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:222)
                at 
org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86)
                at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:281)
                at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:161)
                at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
                at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524)
                at 
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
                at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
                at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
                at 
org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:23)
                at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4772)
                at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
                at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
                at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
                at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:917)
                at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1701)
                at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                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.lang.IllegalArgumentException: Could not resolve placeholder 
'hibernate.generate_statistics' in value "${hibernate.generate_statistics}"
                at 
org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174)
                at 
org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)
                at 
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PlaceholderResolvingStringValueResolver.resolveStringValue(PropertyPlaceholderConfigurer.java:258)
                at 
org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:282)
                at 
org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:204)
                at 
org.springframework.beans.factory.config.BeanDefinitionVisitor.visitMap(BeanDefinitionVisitor.java:262)
                at 
org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:198)
                at 
org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:141)
                at 
org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:82)
                at 
org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:220)
                ... 23 more

I definitely have a value for hibernate.generate_statistics in the 
hibernate.xml file in the monitoring folder but I'm open to suggestions; any 
ideas what might be causing this exception?

I tried removing the two monitoring jar files and it loads without them so I'm 
guessing I just need to fix the configuration of the monitoring plugin but I'm 
a little out of ideas now.

Thanks in advance,
Paul
"This e-mail is intended for the named addressee(s) only and may contain 
information about individuals or other sensitive information and should be 
handled accordingly. Unless you are the named addressee (or authorised to 
receive it for the addressee) you may not copy or use it, or disclose it to 
anyone else. If you have received this email in error, kindly disregard the 
content of the message and notify the sender immediately. Please be aware that 
all email may be subject to recording and/or monitoring in accordance with 
relevant legislation."
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to