Serious: Exception sending context initialized event to listener instance of class Com.i2f.common.utils.SpringContextLoaderLis Tener
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Envpropertywatchdog ' defined In class path resource [I2shopping/i2shopping-resources.xml]: instantiation of Bean failed; Nested exception is org.springframework.beans.BeanInstantiationException:Could not instantiate Bean class [ Com.i2f.i2shopping.core.support.EnvPropertyWatchdog]: constructor threw exception; Nested exception is java.lang.NullPointerException
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean ( abstractautowirecapablebeanfactory.java:883)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance ( abstractautowirecapablebeanfactory.java:839)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:440)
At Org.springframework.beans.factory.support.abstractautowirecapablebeanfactory$1.run ( abstractautowirecapablebeanfactory.java:409)
At Java.security.AccessController.doPrivileged (Native method)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:380)
At Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject (abstractbeanfactory.java:264)
At Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:222)
At Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:261)
At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:185)
At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:164)
At Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:429)
At Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:728)
At Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:380)
At Org.springframework.web.context.ContextLoader.createWebApplicationContext (contextloader.java:255)
At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:199)
At Com.i2f.common.utils.SpringContextLoaderListener.contextInitialized (springcontextloaderlistener.java:64)
At Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4791)
At Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5285)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1559)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1549)
At Java.util.concurrent.futuretask$sync.innerrun (futuretask.java:303)
At Java.util.concurrent.FutureTask.run (futuretask.java:138)
At Java.util.concurrent.threadpoolexecutor$worker.runtask (threadpoolexecutor.java:886)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:908)
At Java.lang.Thread.run (thread.java:619)
One of the solutions I know is the error in initializing the bean, which means that there is an error in the Bean class, for example: The bean was called when the bean was not generated internally, and a null pointer exception was reported.