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

Samebug tips

  1. ,
    Expert tip

    If you're unit testing, you should instantiate only the service and mock the dependencies. If you're testing integration, you should add all the mocking to the configurations file.

Solutions on the web

via Stack Overflow by zix7
, 1 year ago
via Stack Overflow by burt
, 5 months ago
No DataSource specified
via Stack Overflow by user2182000
, 2 years ago
via apache.org by Unknown author, 2 years ago
via Stack Overflow by Kevin Cruijssen
, 1 year ago
No SessionFactory specified
via apache.org by Unknown author, 2 years ago
java.lang.IllegalArgumentException: No DataSource specified	at org.springframework.util.Assert.notNull(Assert.java:115)	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:97)	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:382)	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:428)	at com.serotonin.mango.db.MySQLAccess.newDatabaseCheck(MySQLAccess.java:76)	at com.serotonin.mango.db.DatabaseAccess.initialize(DatabaseAccess.java:118)	at com.serotonin.mango.MangoContextListener.databaseInitialize(MangoContextListener.java:391)	at com.serotonin.mango.MangoContextListener.contextInitialized(MangoContextListener.java:106)	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)