net.sf.ehcache.CacheException: Unable to load class net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory. Initial cause was java.lang.NullPointerException[/color]

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • JBoss 6.0 上ehcache + terracotta报错
    via by wym0291,
    • net.sf.ehcache.CacheException: Unable to load class net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory. Initial cause was java.lang.NullPointerException[/color] at net.sf.ehcache.util.ClassLoaderUtil.createNewInstance(ClassLoaderUtil.java:109)[:] at net.sf.ehcache.TerracottaClusteredInstanceHelper.newClusteredInstanceFactory(TerracottaClusteredInstanceHelper.java:116)[:] at net.sf.ehcache.CacheManager.init(CacheManager.java:312)[:] at net.sf.ehcache.CacheManager.<init>(CacheManager.java:270)[:] at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:112)[:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[:3.0.5.RELEASE] Caused by: java.lang.RuntimeException: java.lang.NullPointerException at org.terracotta.express.ClientImpl.<init>(ClientImpl.java:380)[:] at org.terracotta.express.ClientFactoryImpl.newClient(ClientFactoryImpl.java:146)[:] at org.terracotta.express.ClientFactoryImpl.createClient(ClientFactoryImpl.java:140)[:] at org.terracotta.express.ClientFactoryImpl.getOrCreateClient(ClientFactoryImpl.java:116)[:] at org.terracotta.express.ClientFactory.getOrCreateClient(ClientFactory.java:28)[:] at net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory.<init>(StandaloneTerracottaClusteredInstanceFactory.java:29)[:] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_21] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_21] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_21] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_21] at net.sf.ehcache.util.ClassLoaderUtil.createNewInstance(ClassLoaderUtil.java:92)[:] ... 7 more
    No Bugmate found.