org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [confSpringHibernate.xml]: Invocation of init method failed; nested exception is com.tc.exception.TCClassNotFoundException: java.lang.ClassNotFoundException: org.terracotta.collections.ConcurrentDistributedMapDsoArray

Terracotta | ypichot | 7 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    Re:java.lang.ClassNotFoundException: org.terracotta.collections.ConcurrentDistributedMapDsoArray

    Terracotta | 7 years ago | ypichot
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [confSpringHibernate.xml]: Invocation of init method failed; nested exception is com.tc.exception.TCClassNotFoundException: java.lang.ClassNotFoundException: org.terracotta.collections.ConcurrentDistributedMapDsoArray
  2. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  3. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.
  6. 0
    samebug tip
    NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.
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.ClassNotFoundException

    org.terracotta.collections.ConcurrentDistributedMapDsoArray

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    6 frames
  3. org.terracotta.express
    ClusteredStateLoader.loadClass
    1. org.terracotta.express.ClusteredStateLoader.loadClass(ClusteredStateLoader.java:96)
    1 frame
  4. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:247)
    2 frames
  5. com.tc.object
    TCObjectPhysical.resolveReference
    1. com.tc.object.loaders.SingleLoaderClassProvider.getClassFor(SingleLoaderClassProvider.java:17)
    2. com.tc.object.ClientObjectManagerImpl.lookup(ClientObjectManagerImpl.java:535)
    3. com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:437)
    4. com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:425)
    5. com.tc.object.TCObjectPhysical.resolveReference(TCObjectPhysical.java:149)
    5 frames
  6. org.terracotta.collections
    ConcurrentDistributedMap.get
    1. org.terracotta.collections.ConcurrentDistributedMap.__tc_getmap(ConcurrentDistributedMap.java)
    2. org.terracotta.collections.ConcurrentDistributedMap.get(ConcurrentDistributedMap.java:183)
    2 frames
  7. org.terracotta.modules
    TerracottaClusteredInstanceFactory.createStore
    1. org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateStoreMap(TerracottaClusteredInstanceFactory.java:142)
    2. org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getStoreMapForCacheManager(TerracottaClusteredInstanceFactory.java:79)
    3. org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateStore(TerracottaClusteredInstanceFactory.java:68)
    4. org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.createStore(TerracottaClusteredInstanceFactory.java:64)
    4 frames
  8. Ehcache
    EhCacheRegionFactory.buildEntityRegion
    1. net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory.createStore(StandaloneTerracottaClusteredInstanceFactory.java:40)
    2. net.sf.ehcache.CacheManager.createTerracottaStore(CacheManager.java:393)
    3. net.sf.ehcache.Cache.initialise(Cache.java:956)
    4. net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:980)
    5. net.sf.ehcache.CacheManager.addCache(CacheManager.java:925)
    6. net.sf.ehcache.CacheManager.addCache(CacheManager.java:881)
    7. net.sf.ehcache.hibernate.AbstractEhcacheRegionFactory.getCache(AbstractEhcacheRegionFactory.java:144)
    8. net.sf.ehcache.hibernate.AbstractEhcacheRegionFactory.buildEntityRegion(AbstractEhcacheRegionFactory.java:114)
    9. net.sf.ehcache.hibernate.EhCacheRegionFactory.buildEntityRegion(EhCacheRegionFactory.java:39)
    9 frames
  9. Hibernate
    SessionFactoryImpl.<init>
    1. org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:291)
    1 frame
  10. Hibernate
    AnnotationConfiguration.buildSessionFactory
    1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385)
    2. org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954)
    2 frames
  11. Hibernate
    AbstractSessionFactoryBean.afterPropertiesSet
    1. org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
    2. org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
    3. org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
    3 frames
  12. Spring Beans
    AbstractAutowireCapableBeanFactory$1.run
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    4 frames
  13. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  14. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    2. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    7. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
    7 frames
  15. Spring Context
    ClassPathXmlApplicationContext.<init>
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    3. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    4. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    4 frames
  16. fr.sigma.common
    Client.<init>
    1. fr.sigma.common.util.Client.<init>(Client.java:26)
    1 frame
  17. fr.sigma.cachel2
    MonClient.main
    1. fr.sigma.cachel2.util.MonClient.<init>(MonClient.java:20)
    2. fr.sigma.cachel2.util.MonClient.main(MonClient.java:74)
    2 frames