java.lang.IllegalArgumentException: No DataSource specified

Stack Overflow | zix7 | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Scada-Lts - 'No DataSource specified' error

    Stack Overflow | 7 months ago | zix7
    java.lang.IllegalArgumentException: No DataSource specified
  2. 0

    Spring DataSource bean not autowiring properly

    Stack Overflow | 4 years ago | user2182000
    java.lang.IllegalArgumentException: No DataSource specified
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Mockito:: Null pointer exception for MockMVC exception for MockMVC

    Stack Overflow | 1 year ago | egaoneko
    org.springframework.dao.InvalidDataAccessApiUsageException: Target object must not be null; nested exception is java.lang.IllegalArgumentException: Target object must not be null
  5. 0

    JMS message listener error

    Stack Overflow | 1 year ago | user3649231
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appConfig': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.apache.activemq.ActiveMQConnectionFactory kr.ac.jbnu.sql.rded.config.AppConfig.amqFactory; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'amqConnectionFactory' defined in class path resource [kr/ac/jbnu/sql/rded/config/AppConfig.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [javax.jms.ConnectionFactory]: Error creating bean with name 'cachingConnectionFactory' defined in class path resource [kr/ac/jbnu/sql/rded/config/AppConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.jms.connection.CachingConnectionFactory]: Circular reference involving containing bean 'appConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'cachingConnectionFactory' threw exception; nested exception is java.lang.IllegalArgumentException: Target ConnectionFactory must not be null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cachingConnectionFactory' defined in class path resource [kr/ac/jbnu/sql/rded/config/AppConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.jms.connection.CachingConnectionFactory]: Circular reference involving containing bean 'appConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'cachingConnectionFactory' threw exception; nested exception is java.lang.IllegalArgumentException: Target ConnectionFactory must not be null
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.IllegalArgumentException

    No DataSource specified

    at org.springframework.util.Assert.notNull()
  2. Spring Core
    Assert.notNull
    1. org.springframework.util.Assert.notNull(Assert.java:115)
    1 frame
  3. Spring Framework
    JdbcTemplate.execute
    1. org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:97)
    2. org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
    3. org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:382)
    4. org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:428)
    4 frames
  4. com.serotonin.mango
    MangoContextListener.contextInitialized
    1. com.serotonin.mango.db.MySQLAccess.newDatabaseCheck(MySQLAccess.java:76)
    2. com.serotonin.mango.db.DatabaseAccess.initialize(DatabaseAccess.java:118)
    3. com.serotonin.mango.MangoContextListener.databaseInitialize(MangoContextListener.java:391)
    4. com.serotonin.mango.MangoContextListener.contextInitialized(MangoContextListener.java:106)
    4 frames
  5. Glassfish Core
    StandardContext.startInternal
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
    2 frames