org.springframework.beans.factory.BeanCreationException

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.

  • SSL with javamail not working
    via Stack Overflow by Cookie
    ,
    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'notificationService' defined in URL [jar:file:/opt/jetbrains-upsource-2.0.3682/apps/hub/web/WEB-INF/lib/jetpass-core.jar!/jetbrains/jetpass
    • otification/config
    • otificationServiceConfiguration.xml]: Cannot create inner bean 'jetbrains.jetpass.notification.EmailNotificator#101ada35' of type [jetbrains.jetpass.notification.EmailNotificator] while setting bean property 'emailNotificator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jetbrains.jetpass.notification.EmailNotificator#101ada35' defined in URL [jar:file:/opt/jetbrains-upsource-2.0.3682/apps/hub/web/WEB-INF/lib/jetpass-core.jar!/jetbrains/jetpass
    • otification/config
    • otificationServiceConfiguration.xml]: Cannot resolve reference to bean 'smtpSSLContext' while setting bean property 'sslContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smtpSSLContext' defined in URL [jar:file:/opt/jetbrains-upsource-2.0.3682/apps/hub/web/WEB-INF/lib/jetpass-core.jar!/jetbrains/jetpass/server/main/jetPassAppConfiguration.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static javax.net.ssl.SSLContext jetbrains.jetpass.server.main.SMTPSSLContextResolver.createSSLContext()] threw exception; nested exception is java.lang.RuntimeException: java.security.KeyStoreException: problem accessing trust storejava.io.EOFException at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:279) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:121) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:334) at webr.framework.controller.WebLocalScope.get(WebLocalScope.java:44) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:330) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at webr.framework.controller.WebLocalClasspathXmlServiceLocator.getBean(WebLocalClasspathXmlServiceLocator.java:68) at jetbrains.springframework.configuration.runtime.ServiceLocator.getBean(ServiceLocator.java:47) at jetbrains.jetpass.userManagement.persistence.settings.ApplicationPublicSettingsImpl.setLocale(ApplicationPublicSettingsImpl.java:53) at jetbrains.jetpass.dao.dnq.api.settings.JetPassSettingsDAO$PublicSettingsUpdater.updateEntity(JetPassSettingsDAO.java:350) at jetbrains.jetpass.dao.dnq.api.settings.JetPassSettingsDAO$PublicSettingsUpdater.updateEntity(JetPassSettingsDAO.java:335) at jetbrains.jetpass.dao.dnq.api.settings.JetPassSettingsDAO.updateEntity(JetPassSettingsDAO.java:101) at jetbrains.jetpass.dao.dnq.api.settings.JetPassSettingsDAO.updateEntity(JetPassSettingsDAO.java:57) at jetbrains.jetpass.dao.dnq.api.JetPassMutableDAO$2.invoke(JetPassMutableDAO.java:57) at jetbrains.jetpass.dao.dnq.api.JetPassReadOnlyDAO$4.invoke(JetPassReadOnlyDAO.java:180) at jetbrains.teamsys.dnq.runtime.txn._Txn.runNew(_Txn.java:217) at jetbrains.jetpass.dao.dnq.api.JetPassReadOnlyDAO.runTransaction(JetPassReadOnlyDAO.java:177) at jetbrains.jetpass.dao.dnq.api.JetPassMutableDAO.update(JetPassMutableDAO.java:52) at jetbrains.jetpass.service.bean.JetPassMainApp.initSettings(JetPassMainApp.java:384) at jetbrains.jetpass.service.bean.JetPassMainApp$3.run(JetPassMainApp.java:154) at jetbrains.jetpass.server.console.HubPrincipalManagerImpl.runAs(HubPrincipalManagerImpl.java:44) at jetbrains.jetpass.service.bean.JetPassMainApp.init(JetPassMainApp.java:150) at jetbrains.jetpass.server.main.App.init(App.java:68) at jetbrains.jetpass.server.main.InitWebApplicationServiceLocatorListener.onAfterInit(InitWebApplicationServiceLocatorListener.java:13) at jetbrains.springframework.configuration.runtime.ServiceLocator.fireLocalAfterInit(ServiceLocator.java:111) at jetbrains.jetpass.server.main.ServletImpl.init(ServletImpl.java:39) at javax.servlet.GenericServlet.init(GenericServlet.java:244) at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612) at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:395) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at com.jetbrains.bundle.services.impl.jetty.BundleJettyServicesContainer.startServiceInContainer(BundleJettyServicesContainer.java:74) at com.jetbrains.bundle.services.impl.BundledService.doStart(BundledService.java:39) at com.jetbrains.bundle.services.impl.ServiceBase.start(ServiceBase.java:62) at com.jetbrains.bundle.Services.startService(Services.java:509) at com.jetbrains.bundle.Services.startAllServices(Services.java:481) at com.jetbrains.bundle.Services.start(Services.java:459) at com.jetbrains.bundle.BundleMain.start(BundleMain.java:248) at com.jetbrains.bundle.BundleMain.start(BundleMain.java:208) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.jetbrains.bundle.bootstrap.Bundle$EntryPointProvider$1.invoke(Bundle.java:108) at com.sun.proxy.$Proxy2.start(Unknown Source) at com.jetbrains.bundle.bootstrap.Bundle.start(Bundle.java:54) at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:83) at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:81) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jetbrains.jetpass.notification.EmailNotificator#101ada35' defined in URL [jar:file:/opt/jetbrains-upsource-2.0.3682/apps/hub/web/WEB-INF/lib/jetpass-core.jar!/jetbrains/jetpass
    • otification/config
    • otificationServiceConfiguration.xml]: Cannot resolve reference to bean 'smtpSSLContext' while setting bean property 'sslContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smtpSSLContext' defined in URL [jar:file:/opt/jetbrains-upsource-2.0.3682/apps/hub/web/WEB-INF/lib/jetpass-core.jar!/jetbrains/jetpass/server/main/jetPassAppConfiguration.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static javax.net.ssl.SSLContext jetbrains.jetpass.server.main.SMTPSSLContextResolver.createSSLContext()] threw exception; nested exception is java.lang.RuntimeException: java.security.KeyStoreException: problem accessing trust storejava.io.EOFException at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:269) ... 60 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smtpSSLContext' defined in URL [jar:file:/opt/jetbrains-upsource-2.0.3682/apps/hub/web/WEB-INF/lib/jetpass-core.jar!/jetbrains/jetpass/server/main/jetPassAppConfiguration.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static javax.net.ssl.SSLContext jetbrains.jetpass.server.main.SMTPSSLContextResolver.createSSLContext()] threw exception; nested exception is java.lang.RuntimeException: java.security.KeyStoreException: problem accessing trust storejava.io.EOFException at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:597) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1055) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:951) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320) ... 66 more Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static javax.net.ssl.SSLContext jetbrains.jetpass.server.main.SMTPSSLContextResolver.createSSLContext()] threw exception; nested exception is java.lang.RuntimeException: java.security.KeyStoreException: problem accessing trust storejava.io.EOFException at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:181) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:586) ... 73 more Caused by: java.lang.RuntimeException: java.security.KeyStoreException: problem accessing trust storejava.io.EOFException at jetbrains.jetpass.userManagement.persistence.ssl.TrustStoreImpl$4.invoke(TrustStoreImpl.java:178) at jetbrains.jetpass.userManagement.persistence.ssl.TrustStoreImpl$4.invoke(TrustStoreImpl.java:149) at jetbrains.teamsys.dnq.runtime.txn._Txn.eval(_Txn.java:458) at jetbrains.jetpass.userManagement.persistence.ssl.TrustStoreImpl.loadTrustManagers(TrustStoreImpl.java:149) at jetbrains.jetpass.userManagement.persistence.ssl.KeyStoreImpl.createSSLContext(KeyStoreImpl.java:211) at jetbrains.jetpass.server.main.SMTPSSLContextResolver$1.invoke(SMTPSSLContextResolver.java:16) at jetbrains.jetpass.server.main.SMTPSSLContextResolver$1.invoke(SMTPSSLContextResolver.java:14) at jetbrains.teamsys.dnq.runtime.txn._Txn.eval(_Txn.java:458) at jetbrains.jetpass.server.main.SMTPSSLContextResolver.createSSLContext(SMTPSSLContextResolver.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160) ... 74 more Caused by: java.security.KeyStoreException: problem accessing trust storejava.io.EOFException at sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:74) at javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:250) at jetbrains.jetpass.userManagement.persistence.ssl.TrustStoreImpl$4.invoke(TrustStoreImpl.java:153) ... 87 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,