org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connection' defined in class de.charite.compbio.exomiser.cli.config.DataSourceConfig: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.sql.Connection de.charite.compbio.exomiser.cli.config.DataSourceConfig.connection()] threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class de.charite.compbio.exomiser.cli.config.DataSourceConfig: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource de.charite.compbio.exomiser.cli.config.DataSourceConfig.dataSource()] threw exception; nested exception is java.lang.RuntimeException: Fail-fast during pool initialization

GitHub | Abdul59 | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0

    I had this problem with the test !!!

    GitHub | 2 months ago | Abdul59
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connection' defined in class de.charite.compbio.exomiser.cli.config.DataSourceConfig: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.sql.Connection de.charite.compbio.exomiser.cli.config.DataSourceConfig.connection()] threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class de.charite.compbio.exomiser.cli.config.DataSourceConfig: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource de.charite.compbio.exomiser.cli.config.DataSourceConfig.dataSource()] threw exception; nested exception is java.lang.RuntimeException: Fail-fast during pool initialization
  2. 0
    samebug tip
    You need to deploy aspectJ (aspectjweaver.jar) together with your application. Add it to your pom.xml
  3. 0
    samebug tip
    Add slf4j dependency to your pom.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration':

    Stack Overflow | 7 months ago | javatechnology
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor,java.util.List) throws java.lang.Exception; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.mkyong.config.SecurityConfig': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: javax.sql.DataSource com.mkyong.config.SecurityConfig.dataSource; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class com.mkyong.config.AppConfig: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.jdbc.datasource.DriverManagerDataSource com.mkyong.config.AppConfig.dataSource()] threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [${mysql.jdbc.driver}]
  6. 0

    Autoconfigure output overlaps with startup Exceptions

    GitHub | 3 years ago | tkruse
    factory.BeanCreationException: Error creating bean with name 'restTemplate' defined in class path resource [de/example/backend/config/ServiceConfig.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.web.client.RestTemplate de.example.backend.config.ServiceConfig.restTemplate()] threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonProcessingException -----------------

  1. Gatgeagent 4 times, last 5 months ago
  2. batwalrus76 3 times, last 4 days ago
  3. Andreas Häber 2 times, last 1 month ago
  4. treefolk 1 times, last 2 months ago
  5. mauritius 2 times, last 3 months ago
25 more registered users
70 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. org.springframework.beans.factory.BeanDefinitionStoreException

    Factory method [public java.sql.Connection de.charite.compbio.exomiser.cli.config.DataSourceConfig.connection()] threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class de.charite.compbio.exomiser.cli.config.DataSourceConfig: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource de.charite.compbio.exomiser.cli.config.DataSourceConfig.dataSource()] threw exception; nested exception is java.lang.RuntimeException: Fail-fast during pool initialization

    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate()
  2. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:188)
    2. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:590)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1113)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1008)
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:505)
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
    7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
    9. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    11. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:725)
    11 frames
  3. Spring Context
    AnnotationConfigApplicationContext.<init>
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
    3. org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:84)
    3 frames
  4. de.charite.compbio
    Main.main
    1. de.charite.compbio.exomiser.cli.Main.setUpApplicationContext(Main.java:117)
    2. de.charite.compbio.exomiser.cli.Main.setup(Main.java:90)
    3. de.charite.compbio.exomiser.cli.Main.run(Main.java:78)
    4. de.charite.compbio.exomiser.cli.Main.main(Main.java:74)
    4 frames