org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateSessionFactory' defined in class path resource [sysconf/applicationContext-jbpm-sessionFactory.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: java.lang.AssertionError: NaN Eviction Cost [hit:NaN miss:NaN size:0]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Terracotta Project Issue Tracker by Davide Cavestro, 1 year ago
Error creating bean with name 'hibernateSessionFactory' defined in class path resource [sysconf/applicationContext-jbpm-sessionFactory.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: java.lang.AssertionError: NaN Eviction Cost [hit:NaN miss:NaN size:0]
via Stack Overflow by Asad
, 1 year ago
Error creating bean with name 'person' defined in class path resource [spring.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
via coderanch.com by Unknown author, 1 year ago
Error creating bean with name 'hibernate4SessionFactory' defined in class path resource [Spring-Module.xml]: Invocation of init method failed; nested exception is : org/hibernate/annotations/common/reflection/ReflectionManager
via Coderanch by Simon Ritchie, 10 months ago
Error creating bean with name 'hibernate4SessionFactory' defined in class path resource [Spring-Module.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager
via uuloo.com by Unknown author, 1 year ago
Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: com.hcrm.bean.ComplaintInfo
via Coderanch by Tatiana Vorobeva, 10 months ago
Error creating bean with name 'sessionFactory' defined in class path resource [appContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.service.jdbc.connections.spi.ConnectionProvider]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateSessionFactory' defined in class path resource [sysconf/applicationContext-jbpm-sessionFactory.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: java.lang.AssertionError: NaN Eviction Cost [hit:NaN miss:NaN size:0]
at net.sf.ehcache.pool.impl.AbstractBalancedAccessEvictor.evictionCost(AbstractBalancedAccessEvictor.java:172)
at net.sf.ehcache.pool.impl.AbstractBalancedAccessEvictor.access$000(AbstractBalancedAccessEvictor.java:37)
at java.util.Arrays.mergeSort(Arrays.java:1270)
at java.util.Arrays.sort(Arrays.java:1210)
at java.util.Collections.sort(Collections.java:159)
at net.sf.ehcache.pool.impl.AbstractBalancedAccessEvictor.freeSpace(AbstractBalancedAccessEvictor.java:124)
at net.sf.ehcache.pool.impl.AbstractPool.setMaxSize(AbstractPool.java:87)
at net.sf.ehcache.config.CacheConfiguration.updateCacheManagerPoolSizes(CacheConfiguration.java:1656)
at net.sf.ehcache.config.CacheConfiguration.setupFor(CacheConfiguration.java:1545)
at net.sf.ehcache.CacheManager.initializeEhcache(CacheManager.java:1234)
at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1289)
at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:706)
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:424)
at net.sf.ehcache.CacheManager.init(CacheManager.java:358)
at net.sf.ehcache.CacheManager.init(CacheManager.java:367)
at net.sf.ehcache.CacheManager.(CacheManager.java:243)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:183)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:860)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:779)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:119)
at com.cardinis.cardinis.test.CardinisTestCaseHelper.init(CardinisTestCaseHelper.java:233)
at com.cardinis.cardinis.test.CardinisTestSuite.setUpEnvironment(CardinisTestSuite.java:189)
at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.internal.runners.MethodRoadie.runBefores(MethodRoadie.java:122)
at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:86)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.