java.lang.IllegalArgumentException: DataSource must not be null

co.uk | 1 month ago
  1. 0

    DataSource must not be null

    Stack Overflow | 2 years ago
    java.lang.IllegalArgumentException: DataSource must not be null
  2. 0

    Spring Data repositories with multiple databases – Scattercode

    co.uk | 8 months ago
    java.lang.IllegalArgumentException: DataSource must not be null
  3. 0

    Spring Data repositories with multiple databases – Scattercode

    co.uk | 8 months ago
    java.lang.IllegalArgumentException: DataSource must not be null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Data repositories with multiple databases – Scattercode

    co.uk | 1 month ago
    java.lang.IllegalArgumentException: DataSource must not be null
  6. 0

    Spring+Hibernate+Tomcat - BeanInstantiationException

    Stack Overflow | 1 year ago | user2340345
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in com.di.ps.urls.core.jpa.config.UrlConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]: Factory method 'entityManagerFactoryBean' threw exception; nested exception is java.lang.IllegalArgumentException: DataSource must not be null

  1. batwalrus76 4 times, last 2 weeks ago
  2. serious2monkeys 1 times, last 2 weeks ago
  3. tvrmsmith 1 times, last 3 weeks ago
  4. fima 1 times, last 2 months ago
  5. dafman 2 times, last 2 months ago
8 more registered users
87 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. java.lang.IllegalArgumentException

    DataSource must not be null

    at org.springframework.util.Assert.notNull()
  2. Spring Core
    Assert.notNull
    1. org.springframework.util.Assert.notNull(Assert.java:112)
    1 frame
  3. Spring Framework
    SingleDataSourceLookup.<init>
    1. org.springframework.jdbc.datasource.lookup.SingleDataSourceLookup.<init>(SingleDataSourceLookup.java:40)
    1 frame
  4. Spring ORM
    LocalContainerEntityManagerFactoryBean.setDataSource
    1. org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.setDataSource(LocalContainerEntityManagerFactoryBean.java:238)
    1 frame
  5. com.myc.cc
    SearchPersonServiceImpl.findPnumberbyEM
    1. com.myc.cc.repository.PersistenceJPAConfig.entityManagerFactory(PersistenceJPAConfig.java:43)
    2. com.myc.cc.repository.PersistenceJPAConfig.entityManager(PersistenceJPAConfig.java:37)
    3. com.myc.cc.repository.SearchPersonPredicates.findIdByEM(SearchPersonPredicates.java:121)
    4. com.myc.cc.service.impl.SearchPersonServiceImpl.findPnumberbyEM(SearchPersonServiceImpl.java:70)
    4 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  7. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)
    2 frames
  8. com.sun.proxy
    $Proxy114.findPnumberbyEM
    1. com.sun.proxy.$Proxy114.findPnumberbyEM(Unknown Source)
    1 frame
  9. com.myc.cc
    SearchPersonController.searchPerson
    1. com.myc.cc.web.SearchPersonController.searchPerson(SearchPersonController.java:109)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames