Announcement Announcement Module
Collapse
No announcement yet.
EhCache Error Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • EhCache Error

    I've researched the board about the NPE error on EhCache. I've downloaded the latest version of Acegi and redeployed with no change. I downloaded 1.1 of EhCache and rebuilt Acegi and still the error persisted.

    I am using 0.6.1 on JBoss 4.0.0. I am using JavaServerFaces with a DAO implementation that touches a WSDL as well as an implementation of the authentication processing filter.

    Here is my dump:
    Code:
    12:22:42,334 ERROR [DefaultListableBeanFactory] destroy() on bean with name 'userCache' threw an exception
    java.lang.NullPointerException
            at net.sf.acegisecurity.providers.dao.cache.EhCacheBasedUserCache.destroy(EhCacheBasedUserCache.java:113)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.destroyBean(AbstractAutowireCapableBeanFactory.java:1055)
            at org.springframework.beans.factory.support.AbstractBeanFactory.destroySingleton(AbstractBeanFactory.java:428)
            at org.springframework.beans.factory.support.AbstractBeanFactory.destroySingletons(AbstractBeanFactory.java:414)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.destroySingletons(AbstractAutowireCapableBeanFactory.java:1018)
            at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:419)
            at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:180)
            at org.springframework.web.context.ContextLoaderServlet.destroy(ContextLoaderServlet.java:102)
            at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1255)
            at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1580)
            at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:952)
            at org.apache.catalina.core.StandardContext.removeChild(StandardContext.java:3148)
            at org.apache.catalina.startup.ContextConfig.stop(ContextConfig.java:676)
            at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:218)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
            at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4513)
            at org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:1213)
            at org.apache.catalina.core.StandardContext.destroy(StandardContext.java:4602)
            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:324)
            at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
            at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performUndeployInternal(TomcatDeployer.java:430)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performUndeploy(TomcatDeployer.java:401)
            at org.jboss.web.AbstractWebDeployer.stop(AbstractWebDeployer.java:417)
            at org.jboss.web.WebModule.stopModule(WebModule.java:79)
            at org.jboss.web.WebModule.stopService(WebModule.java:45)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:319)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:223)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
            at $Proxy0.stop(Unknown Source)
            at org.jboss.system.ServiceController.stop(ServiceController.java:498)
            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:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy24.stop(Unknown Source)
            at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:393)
            at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:593)
            at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:576)
            at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:571)
            at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:544)
            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:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy8.undeploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:335)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:457)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)

  • #2
    EH-CACHE 1.1 has some strange issues. I ended up going back to 1.0 because of them.

    We're deprecated the old EH-CACHE approach. Now the EhCacheBasedUserCache (and others) require a Cache to be DIed from Spring's new EhCacheFactoryBean.

    I would encourage you therefore to use EH-CACHE 1.0 and upgrade your Acegi Security install to either CVS HEAD or await the very-soon-to-be-released 0.7.0 (you can disable caching in the meantime).

    Comment


    • #3
      Thanks for the quick reply Ben! I'll try rolling back to EhCache 1.0. BTW, when do you forsee 0.7 going public?

      BTW, great software, it's definitely turning some heads on my current project!

      --Brian

      Comment


      • #4
        We should officially release 0.7.0 within the next few days.

        Our only outstanding issue was Docbook generation from XML, which Carlos Sanchez has now fixed.

        Comment

        Working...
        X