Hi Paul,
known issue, it's the result of some changes done to GWC close to the
release that broke the Hibernate configuration
in the monitoring module. There is a ticket open already:
https://osgeo-org.atlassian.net/browse/GEOS-8359
Cheers
Andrea
On Tue, Oct 24, 2017 at 10:59 AM, Paul Wittle via Geoserver-users <
[email protected]> wrote:
> 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.invokeBeanFactoryPostProcessor
> s(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$PlaceholderResolvingStringValu
> eResolver.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
>
>
--
Regards,
Andrea Aime
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
------------------------------------------------------------------------------
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