[Geoserver-devel] [jira] Created: (GEOS-4225) NullPointerException when pressing "reload" in the server status panel

NullPointerException when pressing "reload" in the server status panel
----------------------------------------------------------------------

                 Key: GEOS-4225
                 URL: http://jira.codehaus.org/browse/GEOS-4225
             Project: GeoServer
          Issue Type: Bug
            Reporter: Andrea Aime
            Assignee: Justin Deoliveira
             Fix For: 2.1-beta2

The NPE is due to the following code at line 266 in GeoServerImpl

{code}
        // reload configuration
        GeoServerLoader loader = GeoServerExtensions.bean(GeoServerLoader.class);
        synchronized (org.geoserver.config.GeoServer.CONFIGURATION_LOCK) {
            getCatalog().getResourcePool().dispose();
            loader.reload();
        }
{code}

After the recent changes there is no more a GeoServerLoader registered in the
spring context, but a GeoServerLoaderProxy instead.

The issue seems solvable by just looking for the proxy, but I'm wondering if it's
the right thing to do.

Justin, what do you think?

(btw, we should cover this one with a test)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira