Announcement Announcement Module
Collapse
No announcement yet.
destroy() on bean with name 'userCache' threw an exception Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • destroy() on bean with name 'userCache' threw an exception

    Hi everybody,
    I always get the following exception when I stop my server(WebSphere_5.1).

    I use:
    -Acegi-Security-0.6 (using quickstart configuration came with Acegi package)
    -HSQLDB(auth tables inside dbinit.txt exist)
    -WebSphere AppServer 5.1


    Code:
    [9/22/04 21:34:38:016 EEST] 7036e5e3 XmlWebApplica I org.springframework.web.context.support.XmlWebApplicationContext  Closing application context [XmlWebApplicationContext for namespace 'action-servlet']
    &#91;9/22/04 21&#58;34&#58;38&#58;047 EEST&#93; 7036e5e3 DefaultListab I org.springframework.beans.factory.support.DefaultListableBeanFactory  Destroying singletons in factory &#123;org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans &#91;authenticationDao,filterInvocationInterceptor,daoAuthenticationProvider,userCache,authenticationManager,roleVoter,accessDecisionManager,authenticationProcessingFilter,securityEnforcementFilter,authenticationProcessingFilterEntryPoint,autoIntegrationFilter,dataSource,sessionFactory,transactionManager,userDAO,userManagerTarget,userManager,/user&#93;; parent=<org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans &#91;authenticationDao,filterInvocationInterceptor,daoAuthenticationProvider,userCache,authenticationManager,roleVoter,accessDecisionManager,authenticationProcessingFilter,securityEnforcementFilter,authenticationProcessingFilterEntryPoint,autoIntegrationFilter,dataSource,sessionFactory,transactionManager,userDAO,userManagerTarget,userManager&#93;; Root of BeanFactory hierarchy>&#125;
    &#91;9/22/04 21&#58;34&#58;38&#58;047 EEST&#93; 7036e5e3 LocalSessionF I org.springframework.orm.hibernate.LocalSessionFactoryBean  Closing Hibernate SessionFactory
    &#91;9/22/04 21&#58;34&#58;38&#58;047 EEST&#93; 7036e5e3 SessionFactor I net.sf.hibernate.impl.SessionFactoryImpl  closing
    &#91;9/22/04 21&#58;34&#58;38&#58;047 EEST&#93; 7036e5e3 DefaultListab E org.springframework.beans.factory.support.DefaultListableBeanFactory  destroy&#40;&#41; on bean with name 'userCache' threw an exception
    &#91;9/22/04 21&#58;34&#58;38&#58;062 EEST&#93; 7036e5e3 DefaultListab E org.springframework.beans.factory.support.DefaultListableBeanFactory  TRAS0014I&#58; The following exception was logged java.lang.NullPointerException
    	at net.sf.acegisecurity.providers.dao.cache.EhCacheBasedUserCache.destroy&#40;EhCacheBasedUserCache.java&#58;112&#41;
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.destroyBean&#40;AbstractAutowireCapableBeanFactory.java&#58;863&#41;
    	at org.springframework.beans.factory.support.AbstractBeanFactory.destroySingleton&#40;AbstractBeanFactory.java&#58;374&#41;
    	at org.springframework.beans.factory.support.AbstractBeanFactory.destroySingletons&#40;AbstractBeanFactory.java&#58;360&#41;
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.destroySingletons&#40;AbstractAutowireCapableBeanFactory.java&#58;826&#41;
    	at org.springframework.context.support.AbstractApplicationContext.close&#40;AbstractApplicationContext.java&#58;387&#41;
    	at org.springframework.web.struts.ContextLoaderPlugIn.destroy&#40;ContextLoaderPlugIn.java&#58;330&#41;
    	at org.apache.struts.action.ActionServlet.destroyModules&#40;ActionServlet.java&#58;553&#41;
    	at org.apache.struts.action.ActionServlet.destroy&#40;ActionServlet.java&#58;347&#41;
    	at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doDestroy&#40;StrictServletInstance.java&#58;159&#41;
    	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._destroy&#40;StrictLifecycleServlet.java&#58;218&#41;
    	at com.ibm.ws.webcontainer.servlet.IdleServletState.destroy&#40;StrictLifecycleServlet.java&#58;316&#41;
    	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.destroy&#40;StrictLifecycleServlet.java&#58;119&#41;
    	at com.ibm.ws.webcontainer.servlet.ServletInstance.destroy&#40;ServletInstance.java&#58;470&#41;
    	at com.ibm.ws.webcontainer.servlet.ServletManager.removeServlet&#40;ServletManager.java&#58;153&#41;
    	at com.ibm.ws.webcontainer.webapp.WebAppServletManager.removeServlet&#40;WebAppServletManager.java&#58;410&#41;
    	at com.ibm.ws.webcontainer.servlet.ServletManager.removeAllServlets&#40;ServletManager.java&#58;186&#41;
    	at com.ibm.ws.webcontainer.webapp.WebApp.destroy&#40;WebApp.java&#58;380&#41;
    	at com.ibm.ws.webcontainer.srt.WebGroup.shutdown&#40;WebGroup.java&#58;1334&#41;
    	at com.ibm.ws.webcontainer.WebContainer.removeWebApplication&#40;WebContainer.java&#58;1050&#41;
    	at com.ibm.ws.runtime.component.WebContainerImpl.uninstall&#40;WebContainerImpl.java&#58;147&#41;
    	at com.ibm.ws.runtime.component.WebContainerImpl.stop&#40;WebContainerImpl.java&#58;367&#41;
    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.stop&#40;ApplicationMgrImpl.java&#58;519&#41;
    	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStop&#40;DeployedApplicationImpl.java&#58;813&#41;
    	at com.ibm.ws.runtime.component.DeployedModuleImpl.stop&#40;DeployedModuleImpl.java&#58;381&#41;
    	at com.ibm.ws.runtime.component.DeployedApplicationImpl.stop&#40;DeployedApplicationImpl.java&#58;615&#41;
    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.stopApplication&#40;ApplicationMgrImpl.java&#58;410&#41;
    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.stopApplication&#40;ApplicationMgrImpl.java&#58;596&#41;
    	at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native Method&#41;
    	at sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java&#58;79&#41;
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java&#40;Compiled Code&#41;&#41;
    	at java.lang.reflect.Method.invoke&#40;Method.java&#40;Compiled Code&#41;&#41;
    	at com.tivoli.jmx.modelmbean.MMBInvoker.invoke&#40;MMBInvoker.java&#58;46&#41;
    	at com.tivoli.jmx.modelmbean.MMBInvoker.invokeOperation&#40;MMBInvoker.java&#58;115&#41;
    	at com.tivoli.jmx.modelmbean.DynamicModelMBeanSupport.invoke&#40;DynamicModelMBeanSupport.java&#58;409&#41;
    	at javax.management.modelmbean.RequiredModelMBean.invoke&#40;RequiredModelMBean.java&#58;323&#41;
    	at com.tivoli.jmx.GenericMBeanSupport.invoke&#40;GenericMBeanSupport.java&#58;178&#41;
    	at com.tivoli.jmx.MBeanAccess.invoke&#40;MBeanAccess.java&#58;113&#41;
    	at com.tivoli.jmx.MBeanServerImpl.invoke&#40;MBeanServerImpl.java&#58;290&#41;
    	at com.ibm.ws.management.AdminServiceImpl.invoke&#40;AdminServiceImpl.java&#58;659&#41;
    	at com.ibm.ws.management.connector.AdminServiceDelegator.invoke&#40;AdminServiceDelegator.java&#58;130&#41;
    	at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native Method&#41;
    	at sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java&#58;79&#41;
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java&#40;Compiled Code&#41;&#41;
    	at java.lang.reflect.Method.invoke&#40;Method.java&#40;Compiled Code&#41;&#41;
    	at com.ibm.ws.management.connector.soap.SOAPConnector.invoke&#40;SOAPConnector.java&#58;306&#41;
    	at com.ibm.ws.management.connector.soap.SOAPConnector.service&#40;SOAPConnector.java&#58;178&#41;
    	at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest&#40;SOAPConnection.java&#58;55&#41;
    	at com.ibm.ws.http.HttpConnection.readAndHandleRequest&#40;HttpConnection.java&#58;618&#41;
    	at com.ibm.ws.http.HttpConnection.run&#40;HttpConnection.java&#58;439&#41;
    	at com.ibm.ws.util.ThreadPool$Worker.run&#40;ThreadPool.java&#58;672&#41;
    Any idea?

  • #2
    Release 0.6 contains version 1.4 of EhCacheBasedUserCache.

    There was a bug, as shown by your stack trace. There is a fix in CVS (version 1.5), thanks to Karel Miarka.

    Comment

    Working...
    X