java.lang.NullPointerException

Liferay Issues | Kenji Heigel | 3 years ago
  1. 0

    Steps to reproduce: # Start portal on a fresh db Expected results: Portal starts Actual results: Portal fails to start Console error: {code} 19:57:38,567 ERROR [localhost-startStop-1][ContextLoader:206] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.webdav.methods.MethodFactoryRegistryUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' of type [com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl] while setting bean property 'methodFactoryRegistry'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:238) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) ... 30 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) ... 36 more Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957) ... 40 more Caused by: java.lang.ExceptionInInitializerError at com.liferay.portal.webdav.methods.BasePropMethodImpl.createQName(BasePropMethodImpl.java:71) at com.liferay.portal.webdav.methods.BasePropMethodImpl.<clinit>(BasePropMethodImpl.java:51) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at java.lang.Class.newInstance0(Class.java:374) at java.lang.Class.newInstance(Class.java:327) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:63) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:68) at com.liferay.portal.webdav.methods.MethodFactoryImpl.addMethod(MethodFactoryImpl.java:69) at com.liferay.portal.webdav.methods.MethodFactoryImpl.<init>(MethodFactoryImpl.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) ... 42 more Caused by: java.lang.NullPointerException: A registry instance was never set at com.liferay.registry.RegistryUtil.getRegistry(RegistryUtil.java:27) at com.liferay.portal.kernel.webdav.WebDAVUtil.<init>(WebDAVUtil.java:351) at com.liferay.portal.kernel.webdav.WebDAVUtil.<clinit>(WebDAVUtil.java:400) ... 60 more Apr 22, 2014 7:57:38 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.webdav.methods.MethodFactoryRegistryUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' of type [com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl] while setting bean property 'methodFactoryRegistry'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:238) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) ... 30 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) ... 36 more Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957) ... 40 more Caused by: java.lang.ExceptionInInitializerError at com.liferay.portal.webdav.methods.BasePropMethodImpl.createQName(BasePropMethodImpl.java:71) at com.liferay.portal.webdav.methods.BasePropMethodImpl.<clinit>(BasePropMethodImpl.java:51) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at java.lang.Class.newInstance0(Class.java:374) at java.lang.Class.newInstance(Class.java:327) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:63) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:68) at com.liferay.portal.webdav.methods.MethodFactoryImpl.addMethod(MethodFactoryImpl.java:69) at com.liferay.portal.webdav.methods.MethodFactoryImpl.<init>(MethodFactoryImpl.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) ... 42 more Caused by: java.lang.NullPointerException: A registry instance was never set at com.liferay.registry.RegistryUtil.getRegistry(RegistryUtil.java:27) at com.liferay.portal.kernel.webdav.WebDAVUtil.<init>(WebDAVUtil.java:351) at com.liferay.portal.kernel.webdav.WebDAVUtil.<clinit>(WebDAVUtil.java:400) ... 60 more Apr 22, 2014 7:57:38 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart Apr 22, 2014 7:57:38 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [] startup failed due to previous errors 19:57:38,752 ERROR [localhost-startStop-1][PortalContextLoaderListener:98] java.lang.NullPointerException java.lang.NullPointerException at com.liferay.portal.settings.SettingsFactoryUtil.clearCache(SettingsFactoryUtil.java:29) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:154) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Apr 22, 2014 7:57:38 PM org.apache.catalina.core.ApplicationContext log INFO: Closing Spring root WebApplicationContext Apr 22, 2014 7:57:38 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Apr 22, 2014 7:57:38 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] Apr 22, 2014 7:57:38 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 19453 ms {code} Error on all Jenkins tests ([PortalSmokeTestCase#testSmoke console|https://build.liferay.com/1/view/liferay-portal-frontend-tomcat(master)/job/liferay-portal-frontend-tomcat%5Bportal-infrastructure%5D(master)/lastCompletedBuild/label_exp=!build-1,test=PortalSmokeTestCase%23testSmoke/console]): {code} [exec] 19:27:47,767 ERROR [localhost-startStop-1][ModuleFrameworkAdapterHelper:67] Unable to configure the class loader for the module framework [exec] 19:27:47,770 ERROR [localhost-startStop-1][ModuleFrameworkAdapterHelper:81] Unable to load the module framework [exec] Apr 22, 2014 7:27:47 PM org.apache.catalina.core.StandardContext listenerStart [exec] SEVERE: Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener [exec] java.lang.ExceptionInInitializerError [exec] at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:229) [exec] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) [exec] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) [exec] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [exec] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [exec] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [exec] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) [exec] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) [exec] at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) [exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [exec] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [exec] at java.lang.Thread.run(Thread.java:744) [exec] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException [exec] at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.<init>(ModuleFrameworkAdapterHelper.java:83) [exec] at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.<clinit>(ModuleFrameworkUtilAdapter.java:139) [exec] ... 14 more [exec] Caused by: java.lang.RuntimeException: java.lang.NullPointerException [exec] at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.getClassLoader(ModuleFrameworkAdapterHelper.java:71) [exec] at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.<init>(ModuleFrameworkAdapterHelper.java:78) [exec] ... 15 more [exec] Caused by: java.lang.NullPointerException [exec] at com.liferay.portal.module.framework.RuntimeClasspathResolver.getClasspathURLs(RuntimeClasspathResolver.java:35) [exec] at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.getClassLoader(ModuleFrameworkAdapterHelper.java:59) [exec] ... 16 more [exec] [exec] Apr 22, 2014 7:27:47 PM org.apache.catalina.core.StandardContext startInternal [exec] SEVERE: Error listenerStart [exec] Apr 22, 2014 7:27:47 PM org.apache.catalina.core.StandardContext startInternal [exec] SEVERE: Context [] startup failed due to previous errors [exec] Apr 22, 2014 7:27:47 PM org.apache.catalina.core.StandardContext listenerStop [exec] SEVERE: Exception sending context destroyed event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener [exec] java.lang.NoClassDefFoundError: Could not initialize class com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter [exec] at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:140) [exec] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980) [exec] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626) [exec] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) [exec] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) [exec] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [exec] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [exec] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) [exec] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) [exec] at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) [exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [exec] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [exec] at java.lang.Thread.run(Thread.java:744) [exec] [exec] 19:27:47,852 ERROR [localhost-startStop-1][PortalContextLoaderListener:98] java.lang.NullPointerException [exec] java.lang.NullPointerException [exec] at com.liferay.portal.kernel.servlet.DirectServletRegistryUtil.clearServlets(DirectServletRegistryUtil.java:27) [exec] at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:126) [exec] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980) [exec] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626) [exec] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) [exec] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) [exec] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [exec] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [exec] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) [exec] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) [exec] at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) [exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [exec] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [exec] at java.lang.Thread.run(Thread.java:744) [exec] 19:27:47,854 ERROR [localhost-startStop-1][PortalContextLoaderListener:98] java.lang.NullPointerException [exec] java.lang.NullPointerException [exec] at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.reset(HotDeployUtil.java:45) [exec] at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:133) [exec] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980) [exec] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626) [exec] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) [exec] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) [exec] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [exec] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [exec] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) [exec] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) [exec] at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) [exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [exec] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [exec] at java.lang.Thread.run(Thread.java:744) [exec] Apr 22, 2014 7:27:47 PM org.apache.coyote.AbstractProtocol start [exec] INFO: Starting ProtocolHandler ["http-bio-8080"] [exec] Apr 22, 2014 7:27:47 PM org.apache.coyote.AbstractProtocol start [exec] INFO: Starting ProtocolHandler ["ajp-bio-8009"] [exec] Apr 22, 2014 7:27:47 PM org.apache.catalina.startup.Catalina start [exec] INFO: Server startup in 8520 ms {code}

    Liferay Issues | 3 years ago | Kenji Heigel
    java.lang.NullPointerException
  2. 0

    Steps to reproduce: # Start portal on a fresh db Expected results: Portal starts Actual results: Portal fails to start Console error: {code} 19:57:38,567 ERROR [localhost-startStop-1][ContextLoader:206] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.webdav.methods.MethodFactoryRegistryUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' of type [com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl] while setting bean property 'methodFactoryRegistry'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:238) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) ... 30 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) ... 36 more Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957) ... 40 more Caused by: java.lang.ExceptionInInitializerError at com.liferay.portal.webdav.methods.BasePropMethodImpl.createQName(BasePropMethodImpl.java:71) at com.liferay.portal.webdav.methods.BasePropMethodImpl.<clinit>(BasePropMethodImpl.java:51) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at java.lang.Class.newInstance0(Class.java:374) at java.lang.Class.newInstance(Class.java:327) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:63) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:68) at com.liferay.portal.webdav.methods.MethodFactoryImpl.addMethod(MethodFactoryImpl.java:69) at com.liferay.portal.webdav.methods.MethodFactoryImpl.<init>(MethodFactoryImpl.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) ... 42 more Caused by: java.lang.NullPointerException: A registry instance was never set at com.liferay.registry.RegistryUtil.getRegistry(RegistryUtil.java:27) at com.liferay.portal.kernel.webdav.WebDAVUtil.<init>(WebDAVUtil.java:351) at com.liferay.portal.kernel.webdav.WebDAVUtil.<clinit>(WebDAVUtil.java:400) ... 60 more Apr 22, 2014 7:57:38 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.webdav.methods.MethodFactoryRegistryUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' of type [com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl] while setting bean property 'methodFactoryRegistry'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:238) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#2b6c1b44' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) ... 30 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1d5e90ac' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) ... 36 more Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957) ... 40 more Caused by: java.lang.ExceptionInInitializerError at com.liferay.portal.webdav.methods.BasePropMethodImpl.createQName(BasePropMethodImpl.java:71) at com.liferay.portal.webdav.methods.BasePropMethodImpl.<clinit>(BasePropMethodImpl.java:51) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at java.lang.Class.newInstance0(Class.java:374) at java.lang.Class.newInstance(Class.java:327) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:63) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27) at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:68) at com.liferay.portal.webdav.methods.MethodFactoryImpl.addMethod(MethodFactoryImpl.java:69) at com.liferay.portal.webdav.methods.MethodFactoryImpl.<init>(MethodFactoryImpl.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) ... 42 more Caused by: java.lang.NullPointerException: A registry instance was never set at com.liferay.registry.RegistryUtil.getRegistry(RegistryUtil.java:27) at com.liferay.portal.kernel.webdav.WebDAVUtil.<init>(WebDAVUtil.java:351) at com.liferay.portal.kernel.webdav.WebDAVUtil.<clinit>(WebDAVUtil.java:400) ... 60 more Apr 22, 2014 7:57:38 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart Apr 22, 2014 7:57:38 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [] startup failed due to previous errors 19:57:38,752 ERROR [localhost-startStop-1][PortalContextLoaderListener:98] java.lang.NullPointerException java.lang.NullPointerException at com.liferay.portal.settings.SettingsFactoryUtil.clearCache(SettingsFactoryUtil.java:29) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:154) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Apr 22, 2014 7:57:38 PM org.apache.catalina.core.ApplicationContext log INFO: Closing Spring root WebApplicationContext Apr 22, 2014 7:57:38 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Apr 22, 2014 7:57:38 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] Apr 22, 2014 7:57:38 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 19453 ms {code} Error on all Jenkins tests ([PortalSmokeTestCase#testSmoke console|https://build.liferay.com/1/view/liferay-portal-frontend-tomcat(master)/job/liferay-portal-frontend-tomcat%5Bportal-infrastructure%5D(master)/lastCompletedBuild/label_exp=!build-1,test=PortalSmokeTestCase%23testSmoke/console]): {code} [exec] 19:27:47,767 ERROR [localhost-startStop-1][ModuleFrameworkAdapterHelper:67] Unable to configure the class loader for the module framework [exec] 19:27:47,770 ERROR [localhost-startStop-1][ModuleFrameworkAdapterHelper:81] Unable to load the module framework [exec] Apr 22, 2014 7:27:47 PM org.apache.catalina.core.StandardContext listenerStart [exec] SEVERE: Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener [exec] java.lang.ExceptionInInitializerError [exec] at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:229) [exec] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) [exec] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) [exec] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [exec] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [exec] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [exec] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) [exec] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) [exec] at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) [exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [exec] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [exec] at java.lang.Thread.run(Thread.java:744) [exec] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException [exec] at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.<init>(ModuleFrameworkAdapterHelper.java:83) [exec] at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.<clinit>(ModuleFrameworkUtilAdapter.java:139) [exec] ... 14 more [exec] Caused by: java.lang.RuntimeException: java.lang.NullPointerException [exec] at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.getClassLoader(ModuleFrameworkAdapterHelper.java:71) [exec] at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.<init>(ModuleFrameworkAdapterHelper.java:78) [exec] ... 15 more [exec] Caused by: java.lang.NullPointerException [exec] at com.liferay.portal.module.framework.RuntimeClasspathResolver.getClasspathURLs(RuntimeClasspathResolver.java:35) [exec] at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.getClassLoader(ModuleFrameworkAdapterHelper.java:59) [exec] ... 16 more [exec] [exec] Apr 22, 2014 7:27:47 PM org.apache.catalina.core.StandardContext startInternal [exec] SEVERE: Error listenerStart [exec] Apr 22, 2014 7:27:47 PM org.apache.catalina.core.StandardContext startInternal [exec] SEVERE: Context [] startup failed due to previous errors [exec] Apr 22, 2014 7:27:47 PM org.apache.catalina.core.StandardContext listenerStop [exec] SEVERE: Exception sending context destroyed event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener [exec] java.lang.NoClassDefFoundError: Could not initialize class com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter [exec] at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:140) [exec] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980) [exec] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626) [exec] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) [exec] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) [exec] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [exec] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [exec] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) [exec] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) [exec] at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) [exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [exec] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [exec] at java.lang.Thread.run(Thread.java:744) [exec] [exec] 19:27:47,852 ERROR [localhost-startStop-1][PortalContextLoaderListener:98] java.lang.NullPointerException [exec] java.lang.NullPointerException [exec] at com.liferay.portal.kernel.servlet.DirectServletRegistryUtil.clearServlets(DirectServletRegistryUtil.java:27) [exec] at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:126) [exec] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980) [exec] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626) [exec] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) [exec] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) [exec] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [exec] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [exec] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) [exec] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) [exec] at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) [exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [exec] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [exec] at java.lang.Thread.run(Thread.java:744) [exec] 19:27:47,854 ERROR [localhost-startStop-1][PortalContextLoaderListener:98] java.lang.NullPointerException [exec] java.lang.NullPointerException [exec] at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.reset(HotDeployUtil.java:45) [exec] at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:133) [exec] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980) [exec] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626) [exec] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) [exec] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) [exec] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [exec] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [exec] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) [exec] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) [exec] at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) [exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [exec] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [exec] at java.lang.Thread.run(Thread.java:744) [exec] Apr 22, 2014 7:27:47 PM org.apache.coyote.AbstractProtocol start [exec] INFO: Starting ProtocolHandler ["http-bio-8080"] [exec] Apr 22, 2014 7:27:47 PM org.apache.coyote.AbstractProtocol start [exec] INFO: Starting ProtocolHandler ["ajp-bio-8009"] [exec] Apr 22, 2014 7:27:47 PM org.apache.catalina.startup.Catalina start [exec] INFO: Server startup in 8520 ms {code}

    Liferay Issues | 3 years ago | Kenji Heigel
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.liferay.portal.settings.SettingsFactoryUtil.clearCache()
    2. com.liferay.portal
      SettingsFactoryUtil.clearCache
      1. com.liferay.portal.settings.SettingsFactoryUtil.clearCache(SettingsFactoryUtil.java:29)
      1 frame
    3. Liferay Portal Impl
      PortalContextLoaderListener.contextDestroyed
      1. com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:154)
      1 frame
    4. Glassfish Core
      HostConfig$DeployDescriptor.run
      1. org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980)
      2. org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626)
      3. org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
      4. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
      5. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      6. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      7. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
      8. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
      9. org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
      9 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      6. java.lang.Thread.run(Thread.java:722)
      6 frames