java.lang.ExceptionInInitializerError

liferay.com | 2 months ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    How many threads can a Java VM support in Linux?

    Stack Overflow | 6 years ago | user500796
    java.lang.OutOfMemoryError: unable to create new native thread
  3. 0

    Hibernate+Ehcache update breaks test suite

    Stack Overflow | 6 years ago | seminolas
    java.lang.OutOfMemoryError: unable to create new native thread

  1. Reich 4 times, last 2 weeks ago
  2. Ajeet 46 times, last 4 months ago
  3. Diogo Jaym 1 times, last 6 months ago
  4. brunosatriani 2 times, last 6 months ago
  5. Bardh 4 times, last 7 months ago
1 more registered users
29 unregistered visitors
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.OutOfMemoryError

    unable to create new native thread

    at java.lang.Thread.start0()
  2. Java RT
    Thread.start
    1. java.lang.Thread.start0(Native Method)
    2. java.lang.Thread.start(Thread.java:597)
    2 frames
  3. Ehcache
    CacheManager.<init>
    1. net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:158)
    2. net.sf.ehcache.Cache.createDiskStore(Cache.java:571)
    3. net.sf.ehcache.Cache.initialise(Cache.java:547)
    4. net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:693)
    5. net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:355)
    6. net.sf.ehcache.CacheManager.init(CacheManager.java:234)
    7. net.sf.ehcache.CacheManager.<init>(CacheManager.java:186)
    7 frames
  4. Liferay Portal Impl
    EhcachePortalCacheManager.afterPropertiesSet
    1. com.liferay.portal.cache.EhcachePortalCacheManager.afterPropertiesSet(EhcachePortalCacheManager.java:48)
    1 frame
  5. Spring Beans
    AbstractAutowireCapableBeanFactory$1.run
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1288)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1257)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:438)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)
    4 frames
  6. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  7. Spring Beans
    AbstractAutowireCapableBeanFactory$1.run
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)
    2. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
    3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    6. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
    7. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
    8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172)
    9. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940)
    10. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
    11. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)
    11 frames
  8. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  9. Spring Beans
    AbstractAutowireCapableBeanFactory$1.run
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)
    2. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
    3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    6. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
    7. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
    8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172)
    9. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940)
    10. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
    11. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)
    11 frames
  10. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  11. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)
    2. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
    3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    5 frames
  12. Spring Context
    AbstractApplicationContext.getBean
    1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:888)
    1 frame
  13. Liferay Portal Impl
    BeanLocatorImpl.locate
    1. com.liferay.portal.bean.BeanLocatorImpl.locate(BeanLocatorImpl.java:68)
    2. com.liferay.portal.bean.BeanLocatorImpl.locate(BeanLocatorImpl.java:46)
    2 frames
  14. Liferay Portal Service
    MultiVMPoolUtil.getCache
    1. com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(BeanLocatorUtil.java:51)
    2. com.liferay.portal.kernel.cache.MultiVMPoolUtil._getUtil(MultiVMPoolUtil.java:124)
    3. com.liferay.portal.kernel.cache.MultiVMPoolUtil.getMultiVMPool(MultiVMPoolUtil.java:65)
    4. com.liferay.portal.kernel.cache.MultiVMPoolUtil.getCache(MultiVMPoolUtil.java:69)
    4 frames
  15. Liferay Portal Impl
    FinderCache.<clinit>
    1. com.liferay.portal.spring.hibernate.FinderCache.<init>(FinderCache.java:332)
    2. com.liferay.portal.spring.hibernate.FinderCache.<clinit>(FinderCache.java:330)
    2 frames
  16. Liferay Portal Service
    CompanyPersistenceImpl.findAll
    1. com.liferay.portal.service.persistence.CompanyPersistenceImpl.findAll(CompanyPersistenceImpl.java:709)
    2. com.liferay.portal.service.persistence.CompanyPersistenceImpl.findAll(CompanyPersistenceImpl.java:686)
    2 frames
  17. Liferay Portal Impl
    CompanyLocalServiceImpl.getCompanies
    1. com.liferay.portal.service.impl.CompanyLocalServiceImpl.getCompanies(CompanyLocalServiceImpl.java:379)
    1 frame
  18. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  19. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    3 frames
  20. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
    1 frame
  21. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    2 frames
  22. Unknown
    $Proxy2.getCompanies
    1. $Proxy2.getCompanies(Unknown Source)
    1 frame
  23. Liferay Portal Service
    CompanyLocalServiceUtil.getCompanies
    1. com.liferay.portal.service.CompanyLocalServiceUtil.getCompanies(CompanyLocalServiceUtil.java:142)
    1 frame
  24. com.liferay.portal
    LuceneUtil.<clinit>
    1. com.liferay.portal.lucene.IndexWriterFactory.<init>(IndexWriterFactory.java:80)
    2. com.liferay.portal.lucene.LuceneUtil.<init>(LuceneUtil.java:685)
    3. com.liferay.portal.lucene.LuceneUtil.<clinit>(LuceneUtil.java:683)
    3 frames
  25. Liferay Portal Impl
    MainServlet.init
    1. com.liferay.portal.events.StartupAction.run(StartupAction.java:239)
    2. com.liferay.portal.events.EventsProcessor._process(EventsProcessor.java:149)
    3. com.liferay.portal.events.EventsProcessor.process(EventsProcessor.java:76)
    4. com.liferay.portal.servlet.MainServlet.init(MainServlet.java:142)
    4 frames
  26. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:212)
    1 frame
  27. Glassfish Core
    Catalina.start
    1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
    2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
    3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
    4. org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
    5. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
    6. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
    7. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
    8. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
    9. org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
    10. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
    11. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
    12. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    13. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
    14. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
    15. org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
    16. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    17. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    18. org.apache.catalina.core.StandardService.start(StandardService.java:448)
    19. org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
    20. org.apache.catalina.startup.Catalina.start(Catalina.java:552)
    20 frames
  28. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  29. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    2 frames