java.lang.IllegalArgumentException: Environment must not be null!

Stack Overflow | xt0f | 2 years ago
  1. 0

    java.lang.IllegalArgumentException: Environment must not be null

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

    does spring data jpa works with spring-core version 3

    Stack Overflow | 3 years ago | Prasad
    java.lang.IllegalArgumentException: ResourceLoader must not be null!
  3. 0

    Spring MVC MongoDB Configuration

    Stack Overflow | 1 year ago | Eray Tuncer
    java.lang.IllegalArgumentException: ResourceLoader must not be null!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    In spring-data-jpa,java.lang.IllegalArgumentException: Environment must not be null

    Stack Overflow | 1 year ago | Raju
    java.lang.IllegalArgumentException: Environment must not be null!
  6. 0

    Clarification about @EnableMongoRepositories

    Stack Overflow | 2 years ago | Alex
    java.lang.IllegalArgumentException: Environment 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

    Environment 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 Data Core
    RepositoryBeanDefinitionRegistrarSupport.registerBeanDefinitions
    1. org.springframework.data.repository.config.RepositoryConfigurationSourceSupport.<init>(RepositoryConfigurationSourceSupport.java:50)
    2. org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource.<init>(AnnotationRepositoryConfigurationSource.java:74)
    3. org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport.registerBeanDefinitions(RepositoryBeanDefinitionRegistrarSupport.java:74)
    3 frames
  4. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.annotation.ConfigurationClassParser.processImport(ConfigurationClassParser.java:394)
    2. org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:204)
    3. org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:163)
    4. org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:138)
    5. org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:284)
    6. org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:225)
    7. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630)
    8. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
    8 frames
  5. Spring TestContext
    CacheAwareContextLoaderDelegate.loadContext
    1. org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:120)
    2. org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
    3. org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100)
    4. org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
    5. org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:64)
    6. org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:91)
    6 frames