SqlSessionDaoSupport.checkDaoConfig() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
Javadoc
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at org.springframework.util.Assert.notNull
(source)
at org.mybatis.spring.support.SqlSessionDaoSupport.checkDaoConfig
(source)

Typical Exception Messages

  1. Error creating bean with name 'testMapper' defined in file [/home/sossos/Projects/mockmvctest-ofspringboot-withmybatismapper/target/classes/com/wqk/mockmvctestofspringbootwithmybatismapper/mapper/TestMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
  2. Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
  3. Error creating bean with name 'deptContoller': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.sunline.sunfrm.controller.DeptContoller.setDeptService(com.sunline.sunfrm.serviceImpl.DeptService); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.sunline.sunfrm.serviceImpl.DeptService.setDeptDao(com.sunline.sunfrm.dao.DeptDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptDao' defined in file : Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
  4. Error creating bean with name 'deptContoller': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.sunline.sunfrm.controller.DeptContoller.setDeptService(com.sunline.sunfrm.serviceImpl.DeptService); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.sunline.sunfrm.serviceImpl.DeptService.setDeptDao(com.sunline.sunfrm.dao.DeptDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptDao' defined in file [D:\apache-tomcat-7.0.39\wtpwebapps\SunFrm\WEB-INF\classes\com\sunline\sunfrm\dao\DeptDao.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
  5. Error creating bean with name 'controllers': Unsatisfied dependency expressed through field 'adminService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminServiceImpl': Unsatisfied dependency expressed through field 'adminMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminMapper' defined in file [C:\项目\新建文件夹\springboot\out\production\classes\com\zhibo\springboot\springboot\mapper\AdminMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
  6. <No message>
  7. Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
  8. Error creating bean with name 'userMapper' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
  9. Error creating bean with name 'loginController': Unsatisfied dependency expressed through field 'sysUserDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserDao' defined in file [F:\work_proc\ares-admin\admin\target\classes\com\reizx\ares\admin\modules\sys\dao\SysUserDao.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

Origin

Assert.notNull() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.notNull
475Web pages

Similar

Specific cases

External results for this pattern (8)

  1. kigkrazyvia GitHub1 month ago
    Error creating bean with name 'loginController': Unsatisfied dependency expressed through field 'sysUserDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserDao' defined in file [F:\work_proc\ares-admin\admin\target\classes\com\reizx\ares\admin\modules\sys\dao\SysUserDao.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    Show stack trace
  2. Unknown authorvia nabble.com5 months ago
    Error creating bean with name 'userMapper' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    Show stack trace
  3. Unknown authorvia itpub.net5 months ago
    Error creating bean with name 'deptContoller': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.sunline.sunfrm.controller.DeptContoller.setDeptService(com.sunline.sunfrm.serviceImpl.DeptService); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.sunline.sunfrm.serviceImpl.DeptService.setDeptDao(com.sunline.sunfrm.dao.DeptDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptDao' defined in file [D:\apache-tomcat-7.0.39\wtpwebapps\SunFrm\WEB-INF\classes\com\sunline\sunfrm\dao\DeptDao.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    Show stack trace
  4. Unknown authorvia itpub.net5 months ago
    Error creating bean with name 'deptContoller': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.sunline.sunfrm.controller.DeptContoller.setDeptService(com.sunline.sunfrm.serviceImpl.DeptService); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.sunline.sunfrm.serviceImpl.DeptService.setDeptDao(com.sunline.sunfrm.dao.DeptDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptDao' defined in file : Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    Show stack trace
  5. Hain Bachvia Google Groups5 months ago
    Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    Show stack trace
  6. shamoyouhunvia GitHub6 months ago
    No message found for this stack trace.
    Show stack trace
  7. solidersvia GitHub6 months ago
    Error creating bean with name 'testMapper' defined in file [/home/sossos/Projects/mockmvctest-ofspringboot-withmybatismapper/target/classes/com/wqk/mockmvctestofspringbootwithmybatismapper/mapper/TestMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    Show stack trace
  8. Error creating bean with name 'testMapper' defined in file [/home/sossos/Projects/mockmvctest-ofspringboot-withmybatismapper/target/classes/com/wqk/mockmvctestofspringbootwithmybatismapper/mapper/TestMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    Show stack trace