[Geoserver-devel] [jira] (GEOS-5313) Avoid CRS lookup in static initializer blocks

David Winslow created BugGEOS-5313
Avoid CRS lookup in static initializer blocks

Issue Type:

BugBug

Assignee:

Justin Deoliveira

Created:

17/Sep/12 4:53 PM

Description:

In the OpenGeo Suite we were bitten by a bug caused by CRS lookups in static initializers - doing this makes it easy to accidentally force the referencing system to initialize before the GeoserverInitStartupListener can run (and GeoServer relies on the configuration changes that it makes. There are a couple of places in GeoServer where we fall into this trap as well - one Wicket component and the regionating code. I think it’s difficult to get either of these to load before the init-listener runs, but it’s probably a good idea to avoid this pattern anyway to avoid copy/pasting problems down the line.

I put a branch on github at https://github.com/dwins/geoserver/tree/no-crs-lookups-in-static-initializers that makes the relevant changes.

Project:

GeoServer

Priority:

MajorMajor

Reporter:

David Winslow

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)