[Geoserver-devel] [jira] Created: (GEOS-1046) Geoserver fails with an NPE on old data dirs when FINEST logging level is enabled

Geoserver fails with an NPE on old data dirs when FINEST logging level is enabled
---------------------------------------------------------------------------------

                 Key: GEOS-1046
                 URL: http://jira.codehaus.org/browse/GEOS-1046
             Project: GeoServer
          Issue Type: Improvement
          Components: Configuration
    Affects Versions: 1.5.0
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 1.5.1, 1.6.0

Sigh, I thought I already fixed this...

org.springframework.beans.factory.BeanInitializationException: Error creating xml config reader; nested exception is org.vfny.geos
erver.global.ConfigurationException: java.lang.NullPointerException
org.vfny.geoserver.global.ConfigurationException: java.lang.NullPointerException
        at org.vfny.geoserver.global.xml.XMLConfigReader.loadCatalog(XMLConfigReader.java:363)
        at org.vfny.geoserver.global.xml.XMLConfigReader.load(XMLConfigReader.java:195)
        at org.vfny.geoserver.global.xml.XMLConfigReader.<init>(XMLConfigReader.java:153)
        at org.vfny.geoserver.global.Config.setApplicationContext(Config.java:69)
        at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContext
AwareProcessor.java:84)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitializatio
n(AbstractAutowireCapableBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFact
ory.java:362)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java
:176)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolv
er.java:105)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveConstructorArguments(AbstractAutowi
reCapableBeanFactory.java:713)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapabl
eBeanFactory.java:611)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFact
ory.java:329)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactor
y.java:275)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicat
ionContext.java:134)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
        at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:448)
        at org.mortbay.http.HttpServer.start(HttpServer.java:663)
        at org.mortbay.jetty.Server.main(Server.java:429)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.mortbay.start.Main.invokeMain(Main.java:152)
        at org.mortbay.start.Main.start(Main.java:482)
        at org.mortbay.start.Main.main(Main.java:90)
Caused by: java.lang.NullPointerException
        at org.vfny.geoserver.global.xml.XMLConfigReader.loadCoverages(XMLConfigReader.java:1521)
        at org.vfny.geoserver.global.xml.XMLConfigReader.loadCatalog(XMLConfigReader.java:361)
        ... 31 more

--
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

     [ http://jira.codehaus.org/browse/GEOS-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Aime reopened GEOS-1046:
-------------------------------

There is some more work to be done here, reopening

Geoserver fails with an NPE on old data dirs when FINEST logging level is enabled
---------------------------------------------------------------------------------

                Key: GEOS-1046
                URL: http://jira.codehaus.org/browse/GEOS-1046
            Project: GeoServer
         Issue Type: Improvement
         Components: Configuration
   Affects Versions: 1.5.0
           Reporter: Andrea Aime
           Assignee: Andrea Aime
            Fix For: 1.5.1, 1.6.0

Sigh, I thought I already fixed this...
org.springframework.beans.factory.BeanInitializationException: Error creating xml config reader; nested exception is org.vfny.geos
erver.global.ConfigurationException: java.lang.NullPointerException
org.vfny.geoserver.global.ConfigurationException: java.lang.NullPointerException
        at org.vfny.geoserver.global.xml.XMLConfigReader.loadCatalog(XMLConfigReader.java:363)
        at org.vfny.geoserver.global.xml.XMLConfigReader.load(XMLConfigReader.java:195)
        at org.vfny.geoserver.global.xml.XMLConfigReader.<init>(XMLConfigReader.java:153)
        at org.vfny.geoserver.global.Config.setApplicationContext(Config.java:69)
        at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContext
AwareProcessor.java:84)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitializatio
n(AbstractAutowireCapableBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFact
ory.java:362)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java
:176)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolv
er.java:105)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveConstructorArguments(AbstractAutowi
reCapableBeanFactory.java:713)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapabl
eBeanFactory.java:611)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFact
ory.java:329)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactor
y.java:275)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicat
ionContext.java:134)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
        at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:448)
        at org.mortbay.http.HttpServer.start(HttpServer.java:663)
        at org.mortbay.jetty.Server.main(Server.java:429)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.mortbay.start.Main.invokeMain(Main.java:152)
        at org.mortbay.start.Main.start(Main.java:482)
        at org.mortbay.start.Main.main(Main.java:90)
Caused by: java.lang.NullPointerException
        at org.vfny.geoserver.global.xml.XMLConfigReader.loadCoverages(XMLConfigReader.java:1521)
        at org.vfny.geoserver.global.xml.XMLConfigReader.loadCatalog(XMLConfigReader.java:361)
        ... 31 more

--
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