[Geoserver-devel] [jira] (GEOS-5251) GeoServerLifecycleHandler's not being initialized may avoid proper app shutdown

Gabriel Roldán created BugGEOS-5251
GeoServerLifecycleHandler’s not being initialized may avoid proper app shutdown

Issue Type:

BugBug

Affects Versions:

2.2-RC2

Assignee:

Gabriel Roldán

Components:

Configuration

Created:

04/Aug/12 1:01 PM

Description:

At shutdown GeoServerLoader calls registered GeoServerLifeCycleHandlers onDispose() method, but the life cycle handlers may have never been initialized, which produces the following warning (and is potentially dangerous).
Reason is that at least a reload happened before shutdown, the life cycle handlers were never accessed and hence not initialized by spring. Hence the attempt to instantiate them at shutdown fails as the error message bellow explains.

WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name 'geoServerLoader': org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'GWCLifeCycleHandler': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Gabriel Roldán

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)