java.lang.IllegalArgumentException

evaluationContext must not be null org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sftpMessageSource_DebitNotification_SE' defined in com.canaldigital.tsi.bank.xml.config.BankFtpListner: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: evaluationContext must not be null

Samebug tips1

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web32854

  • evaluationContext must not be null org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sftpMessageSource_DebitNotification_SE' defined in com.canaldigital.tsi.bank.xml.config.BankFtpListner: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: evaluationContext must not be null
  • via GitHub by ericbottard
    , 1 year ago
    EvaluationContext must not be null
  • via GitHub by trisberg
    , 1 year ago
    EvaluationContext must not be null
  • Stack trace

    • java.lang.IllegalArgumentException: evaluationContext must not be null org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sftpMessageSource_DebitNotification_SE' defined in com.canaldigital.tsi.bank.xml.config.BankFtpListner: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: evaluationContext must not be null at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766) at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361) at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134) at com.canaldigital.tsi.core.CoreRunner.run(CoreRunner.java:29) at com.canaldigital.tsi.bank.xml.App.main(App.java:18) Caused by: java.lang.IllegalArgumentException: evaluationContext must not be null at org.springframework.util.Assert.notNull(Assert.java:115) at org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer.afterPropertiesSet(AbstractInboundFileSynchronizer.java:154) at org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizingMessageSource.afterPropertiesSet(AbstractInboundFileSynchronizingMessageSource.java:151) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ... 16 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 month ago
    Unknown user
    Once, 1 month ago
    18 times, 1 month ago
    16 times, 1 month ago
    Once, 2 months ago
    190 more bugmates